On Tuesday 06 June 2006 18:22, David Lascombe wrote:
> Thanks but I am not sure to understand how and when to start the
> traversal.. Actually the database is already earth centered, I am not
> changing its coordinate system but I compute new coordinates for each
> entity so that they are earth centered too.
>
> ...
Well, the idea is that you have surface tiles below a transform node, where 
the transform node is just a translation from the earth centered coordinate 
frame to a tile centered coordinate frame. That transformation should be done 
with doubles.
In this case you need to transform your intersection start point to that tile 
centered coordinate frame (still in double values).
If you have reasonable tile sizes, you should be near enough to continue with 
floats. At this point you can take the intersect visitor and use its hit 
values.

   Greetings

             Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to