We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey guys, I am currently trying to make a mc skin editor (yeah kill me). I know that processing is just for small sketchest but I am srsly to lazy to learn anything about OpenGL. Anyway, I will porbably use some transparent elements and therefore it would be noice to have a hint(ENABLE_DEPTH_SORT);
The thing is that I am hardly getting 2fps when I use depth sort. I mean I did not imagine 6x6=36 squares with opacity to slow down the program so badly...
Ik I did not post any code here but is there anything I should know about the depth sort thing or does anybody know anything about this problem?
Thx in advance som dude
Answers
you should post an MCVE anyway.
@nabr mhhh... I forgot about some spheres I placed in the middle of each block. since they are made of a whole lot of triangles they may cause problems in combination with depth sort...
Look at sphereDetail in the reference for the spheres
General question: what’s the purpose of hint(ENABLE_DEPTH_SORT);? I thought P3D would sort the objects correctly in 3D space by default anyway?
@Chrisir well if you work with opacity just drawing the top elements is not enough, some have to be drawn first and some later
i think this should show it nicely, just the other way around xD
@someDude
Okay, i understand now, i out of time "on vacation".
Make sure you optimize your code.
Here is the Low Level implementation of Alpha Blending without ENABLE_DEPTH_SORT (i already was preparing, and then you posted your pics)
Maybe you find a tutorial, and can fix it be your self. Would be the best :)
like here http://www.alecjacobson.com/weblog/?p=2750
Maybe you can also post that simpel Cube example you posted as pic. Would help for debug.
Thanks!