Hello.
Getting into 3D I was wondering if there exists a similar efficient algorithm for drawing 2d sprites with z-culling. Ie. not drawing things that are behind other things unnecessarily.
Is this available in Java2D? What I’ve been doing previously is just drawing objects (and their images) based on their depth value that I store in an arrayList ( and sort as new objects are added to keep it in order ). This has worked fine… to some extent.
What about when using an OpenGL library, is it as simple as turning some z-culling switch ON and giving Textures a depth value of some sorts?
Thanks,
jon