Hi David,

Geometry that changes colours/lighting randomly as the vieweing
position or other state changes is almost always down to geometry in
the scene not being completely defined, something like a missing
colour or normal array on the fence geometry.  If this arrays are
missing then this state will be inherited from other geometry that do
define it.

Your own shader is probably masking this lack of state because the
shader itself is not relying upon this arrays.

Robert.

On Jan 8, 2008 7:09 AM, 赵明伟 <[EMAIL PROTECTED]> wrote:
> Hi, EveryOne!
>
>     In my Application, I use shader just like the shader in the example
> osgforest to render many trees, and there is a transparent fence. Then the
> color of the fence will turn to other unexpected color sometimes. while,
> when I don't use the shader, the wrong phenomenon disappeared. The problem
> seems to be related with the render sequence. I have no idea to solve this
> problem. Any one can help one?
>
>     Thanks.
>
>
> _______________________________________________
> 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