[osg-users] Lighting an HeighField.

2010-09-22 Thread BARRAL Adrien
Hello, I am creating a scene composed of two objects : - A (yellow) submarine, and a osg::ShapeDrawable created from an osg::HeightField : The Seabed. I use a spot light to illuminate this scene. The spot light is positinoned 1 meter above the submarine, the submarine is 10 meters above the se

Re: [osg-users] Lighting an HeighField.

2010-09-22 Thread Robert Osfield
Hi Adrian, The osgspotlight example that illustrates the use of multi-texturing to do a spot light, rather than just using OpenGL lighting to do the spot light. >From your explanation I can't work out whether the osgspotlight example is working correctly on your system. When I run the example wh

Re: [osg-users] Lighting an HeighField.

2010-09-22 Thread BARRAL Adrien
Thanks for your answer... Now, osgspotlight example is working on my computer... (I didn't download the ressources file, shame on me). I will try to do exactly like in this sample, and I hope all wil be right ! So in this sample, they use a HeighMap and a osg::ShapeDrawable. You said that's no

Re: [osg-users] Lighting an HeighField.

2010-09-22 Thread Robert Osfield
Hi Adrian, On Wed, Sep 22, 2010 at 10:32 AM, BARRAL Adrien wrote: >> Personally I wouldn't use ShapeDrawable's for this type of work as they are >> just very primitive  convenience classes, they don't scale well to handle >> complete rendering requirements or provide best performance > > What k