Kevin Rushforth wrote:
> This is a known limitation in Java 3D. For Java 3D 1.3 we are going to
> add an explicit attribute (in the View) to control separate specular
> color. Btw, some OpenGL cards may not support this feature since it
> requires an OpenGL extension. On those cards, the separate specular
> color enable will be ignored.
There is a way to emulate it with multipass rendering. By render a version
with diffuse and texture only, no specular. Then render a second pass with
specular and no diffuse, blending it with the color as the blending factor
using additive blending.
I've tested this with certain video cards from intense3d (that didnt support
second specular), and the only way to do it is with multipass rendering, and
it did it with pretty good performance (not much of a loss). On the other
hand I have also tested this on an NVidia TNT2 card, and there was a much
larger performance hit (it might have been.
Also in OpenGL 1.2, its no longer an extension, its now part of the spec...
http://www.opengl.org/developers/documentation/Version1.2/1.2specs/separate_sp
ecular_color.txt
But Im not sure how common 1.2 is now, it may not be worth it if most
platforms dont support it yet.
Leyland Needham
===========================================================================
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".