Hi Dženan,

The effect you are getting is typical of transparent scene that is not
depth sorted in a sufficiently fine grained way. To render transparent
objects in the standard way you need to depth sort the geometry and
then render the transparent objects from back to front.

There are lots of different techniques you can use to tackle them,
which is ideal depends upon the particulars of your application and
the types of models you will be tackling.  The topic has been
discussed lots in the OSG community over the years, and there is a lot
of online resources on the issue of rendering transparent objects so
I'd recommend doing some background research on the topic.

Robert.

2010/8/17 Dženan Zukić <[email protected]>:
> Hi,
>
> I have a scene shown in osgViewer. Scene contains opaque and translucent 
> polygons. Translucent polygons render significantly differently depending on 
> the angle of viewing.
>
> Attachments show this. Color of the problematic polygons is 
> Vec4(0.55,0.60,0.55,0.3). The whole scene consists of small triangles, even 
> the large flat surfaces.
>
> Is this the expected behavior? And how do I fix it?
>
> Thank you!
>
> Cheers,
> Dženan
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=30833#30833
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/viewangle3nt_143.png
> http://forum.openscenegraph.org//files/viewangle2nt_457.png
> http://forum.openscenegraph.org//files/viewangle1nt_146.png
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to