www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: MichaelJPCT on June 27, 2017, 10:16:56 am

Title: render order of opaque objects?
Post by: MichaelJPCT on June 27, 2017, 10:16:56 am
if several opaque object3d are added to a world in particular order, can i assume they are rendered in that order?
Title: Re: render order of opaque objects?
Post by: AeroShark333 on June 27, 2017, 02:18:37 pm
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
Title: Re: render order of opaque objects?
Post by: EgonOlsen on June 27, 2017, 08:29:44 pm
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.
Title: Re: render order of opaque objects?
Post by: MichaelJPCT on July 06, 2017, 02:27:05 pm
here's another question: in a World, are transparent objects rendered after (speaking of time) all opaque objects?
Title: Re: render order of opaque objects?
Post by: EgonOlsen on July 06, 2017, 02:31:59 pm
Yes, of course. Otherwise, the pixels from the opaque objects won't shine trough but overdraw them.