Hi i believe you can get normal in point of intersection with mirror with getWorldIntersectNormal() method of intersection, calculate reflected ray and start new intersection query with new ray
Cheers. 11.02.2013, 22:16, "Julian Schindler" <julian.schind...@dlr.de>: > Hi all, > > In my scene I am sitting in a car driving around. My car has mirrors, which > are implemented with camera-Nodes rendering to the texture of the mirror > geometry. > Now I want to know if the driver is looking at a car in front of me or in the > mirror. > For this purpose, I have the exact pixel position in window coordinates, the > driver is looking at. I am using a LineSegmentIntersector with this pixel > position like shown in the osgkeyboardmouse example. It works fine with the > world around the mirror, but when looking at the mirror I (of course) get the > geode of the mirror as result. > > So: Is there a way of continuing the ray into the pre-rendered world shown in > the texture? I have no clue on doing this... > > I already found some Forum topics on calculating texture colors or of setting > the ray start into the world, but I am not sure if those ways may help me... > > Thank you! > > Cheers, > Julian > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=52313#52313 > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org