It means what it says "Cannot do lighting without specifying normals in geometry object"

I've run into this before myself, especially when trying to apply an appearance object to a PointArray which is still a geometry object, but one where normals aren't useually used.

Anyway......

Look in your Appearance definitions, if you are trying to use an appearace with materials, or some other "shading attributes" you must incoorperate normals into your geometry. A normal is a vector which is exactly perpendicular to the surface(useually at each corner of every triangle in a mesh). Without knowing this vector shading cannot be done.

If you need to let the computer figure your normals out for you, take a look at the GeometryInfo utility Class.
 

JayT wrote:

hi,anyone have any idea what this means? javax.media.j3d.IllegalRenderingStateException: Cannot do lighting without specifying normals in geometry object
        at javax.media.j3d.RenderQueue.insert(RenderQueue.java:351)
        at javax.media.j3d.Traverser.insertRenderObjects(Traverser.java:599)
        at javax.media.j3d.Traverser.run(Traverser.java:2111) thanks,Jay

Reply via email to