Hello Ulrich,

An infinite plane is a little hungry on resources ;-)

I was considering contributing a working osg::InfinitePlane drawable for a little while now... It's a useful primitive to have in many cases. The way I would have implemented it is to create a few polygons which are bounded by the view frustum (therefore it is not really infinite, but as infinite as needed :-) .

The difficulty would be translating texture coordinates as the view frustum moves, so that the textures on the plane don't look like they're moving with the viewpoint. But even that isn't very hard I would think.

I haven't actually gotten around to doing that. Maybe in the near future, as I'm working on a raytracer integrated into OSG, and the infinite plane is a classic primitive in raytracing.

J-S
--
______________________________________________________
Jean-Sebastien Guay     [EMAIL PROTECTED]
                        http://whitestar02.webhop.org/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to