Lally Singh wrote:

Hi, I'm trying to put some basic lighting into a scene that's got lots of
VRML objects in it.  Each VRML model I'm loading is real simple (a lego
brick, a cone, etc).  As I understand, one has to generate normals to get
lighting to work, and to do that, I need to use a NormalGenerator, which
needs a GeometryInfo.  But, I can't seem to get a GeometryInfo from a
SceneGraph I load from VRML.

Has anyone loaded a VRML object and lighted it?  How'd you do it?

Thanks in advance!

-ls


Chances are that your models already have normal information included.

To turn on lighting, you need to make sure you do two things:

-include lights in your scene graph.  This can either be in the VRML or
added to your scene graph later.

-Make sure you call setInfluencingBounds() on the light.  Otherwise the
ligth will not light up any objects.

Mark McKay

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to