[osg-users] problem on render order

ufuk gun ufuk.osg at gmail.com
Thu Sep 18 07:30:39 PDT 2008


  hi i have problem about rendering my roads and trees. i produce them by
using shaders...

but the problem is their rendering order. Even roads are far away from the
trees, they render as they are close to camera.

since they have texture with transparency i changed render Bin number of
trees and roads.i gave larger render Bin number to trees geometry. this time
i totally lost my trees if there is a road on the screen.
if no road i can see them.

i'm sending you 3 screen shots.
same_render_bin.png => they have same render bin number and there is a
problem on rendering order.
different_render_bin_1.png => screen shot of trees without any roads on the
screen...
different_render_bin_2.png => screen shot of trees with a corner of a road
on the screen... (trees are lost)


so do you have any idea about it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080918/8f306e26/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: same_render_bin.png
Type: image/png
Size: 71828 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080918/8f306e26/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: different_render_bin_1.png
Type: image/png
Size: 43585 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080918/8f306e26/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: different_render_bin_2.png
Type: image/png
Size: 33116 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080918/8f306e26/attachment-0011.png>


More information about the osg-users mailing list