Hi Kevin > I'm having some problems lighting my scene. I need to use per vertex > colors to colour my scene but also want to use lighting. I find if I > apply a Material the colours in the Material override that of my per > vertex colors. I noted that in RenderingAttributes there is a method to > define whether to override per vertex colouring or not, but its default > should be correct. I did experiment with setting this value to true and > false but with no visible effect. > > Anyone else tried this?
The problem is you can't have both at the same time, this is a restriction in the underlying library OpenGL either supports lighting over materials or seting a per-vertex color but not both at the same time, I think DirectX is similair the only thing you could do is to implement the lighting code yourself by using a GeometryUpdater EOF, J.D. -- Explore SRT with the help of Java3D (http://wwwvis.informatik.uni-stuttgart.de/relativity/minkowski) (http://www.antiflash.net/java3d/relativity (mirror) =========================================================================== 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".
