[osg-users] Mirror transformation

Ale Maro sasha71 at teletu.it
Wed Sep 13 08:51:17 PDT 2017


Hi Robert,

thank you for the quick answer.

I use this scene graph structure to set some standard rendering features to scene objects... so it is not easy to change it for me.
Anyway I tried to export the scene in osg format and change manually all groups that can give problems (clipnode, outline, shadow) to simple "Group".
After loading the modified file with osgviewer the result is the same the object is black.
I see now that moving the object (so light intersect the object with a different angle) the object is still dark but I can see the interior material (instead of exterior one)

So I guess if the solution is to reverse vertices, normals and primitive set or do you expect it works just using transformations?

And also... you said "apply the rescale normal". I apply it using a stateset. Do I have to refresh in some way the normals or it is done automatically after set the parent transformation to the mirror?


Ale

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71710#71710







More information about the osg-users mailing list