Water sorting with open mesh skins fix
by Eric Hartman · in Torque Game Engine · 05/02/2005 (11:53 am) · 5 replies
I have found that water does not sort properly with skinned characters that have open meshes. I got around this by changing the sort type of the water from "Plane" to "Normal"
In the file terrain/waterBlock.cc, in the function WaterBlock::prepRenderImage(), find this line:
and change it to this:
I have not noticed any side effects or performance decrease.
In the file terrain/waterBlock.cc, in the function WaterBlock::prepRenderImage(), find this line:
image->sortType = SceneRenderImage::Plane;
and change it to this:
image->sortType = SceneRenderImage::Normal;
I have not noticed any side effects or performance decrease.
About the author
#2
05/02/2005 (1:07 pm)
Alrighty
#3
05/02/2005 (10:08 pm)
Well actually.. scratch this... it doesnt play nice with the other transparent things. I think the problem is with my model actually.
#4
If it turns out it was just a model issue, can you blast your resource? (Or let me know, and I can do it... not sure if 'normal members' have rights to delete resources.)
05/02/2005 (11:10 pm)
Hey Eric,If it turns out it was just a model issue, can you blast your resource? (Or let me know, and I can do it... not sure if 'normal members' have rights to delete resources.)
#5
My model had a transparent material assigned to it (for the eyelashes) and since the body was all one skin, the entire mesh was drawn on top of the water. The problem with sorting transparent things with the water still exists.
Since my resource doesn't identify the problem correctly or offer a proper solution, you should probably blast it.
05/03/2005 (1:11 am)
Well the problem isn't with open meshes like i first thought. The problem is that transparent objects are drawn completely on top of the water when you're supposed to be half in/half out.
My model had a transparent material assigned to it (for the eyelashes) and since the body was all one skin, the entire mesh was drawn on top of the water. The problem with sorting transparent things with the water still exists.Since my resource doesn't identify the problem correctly or offer a proper solution, you should probably blast it.
Torque Owner Chris Labombard
Premium Preferred