Is there any way to customise the rendering order of transparents?

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
GingerBreadHero
Gnoblar
Posts: 1
Joined: Thu Sep 09, 2021 12:27 pm
x 1

Is there any way to customise the rendering order of transparents?

Post by GingerBreadHero »

Hello,

I'm evaluating Ogre for our project. It involves rendering multiple translucent surfaces where each surface also has sub-entities that are overlaid on top of the base surface. It is quite a difficult problem that we are only able to do correctly by using depth peeling or some similar advanced technique. However this post is not about that, since we also try and provide a fixed function solution for customers on ancient hardware that is not completely terrible. We do this by subdividing the surfaces and sorting the subdivided entities back to front in the conventional way, but with some modifications based on the known facts about the different entity types and their rendering priority.

So my question about this fixed function solution, is there any way for me to modify or override the way in which Ogre sorts transparents?

Thanks.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1993
Joined: Sun Mar 30, 2014 2:51 pm
x 1073
Contact:

Re: Is there any way to customise the rendering order of transparents?

Post by paroj »

take a look what the Transparency sample does when WBOIT is enabled.
Post Reply