render order of opaque objects?

Started by MichaelJPCT, June 27, 2017, 10:16:56 AM

Previous topic - Next topic

MichaelJPCT

if several opaque object3d are added to a world in particular order, can i assume they are rendered in that order?

AeroShark333

I don't think it works that way... I thought there would be some depth checking for the Object3D's when it comes to rendering order

EgonOlsen

Depth is only relevant for translucent objects. Anyway, it doesn't work for opaque either, because they are sorted by state to minimize state changes. So: No, you can't assume that.

MichaelJPCT

here's another question: in a World, are transparent objects rendered after (speaking of time) all opaque objects?

EgonOlsen

Yes, of course. Otherwise, the pixels from the opaque objects won't shine trough but overdraw them.