Hi Chris,
I tried your example, commented out the point light and uncommented
the directional light. It worked for me. It seems it is not a
problem with Java 3D (at least for the setup I have).
I am running on Win95 Java 3D 1.1.2 Open GL (software render).
I hope this helps. Good luck.
Dennis
Chris Wewerka wrote:
>
> Hi all,
>
> there were some mails in the beginnig of may in this list about the problem
> vertex-color and lighting.
> I do have the same problem as Frederic:
>
> When I specify per-vertex-color and attach a material object to the
> appearance I cannot see any color. Changing the parameters of the
> ambient(color) and the directional(intensity and color), as someone
> suggested, does not have any effect for me, i.e. there are no colors.
> But if I use a point light instead of the directional light the colors are
> shown and correctly shaded.
>
> Is this a bug?
> I use Java3d 1.1.2(openGL version) on a Win NT 4.0 sp4 machine with a
> Diamond Viper v550.
>
> I attach a modified version of Frederic's example. The directional light is
> commented and a point light source has been added. --> works fine. Uncomment
> the directional light and comment the point light source in
> HelloUniverse.java and you will loose colors.
>
> Thanx
> Chris Wewerka
>
> ------------------------------------------------------------------------
> Name: lighting.jar
> lighting.jar Type: Java Archive (application/java-archive)
> Encoding: base64
--
-----
Dennis J Bouvier
[EMAIL PROTECTED]
Find the Java 3D Tutorial "Getting Started with the Java 3D API" at
http://sun.com/desktop/java3d/collateral
===========================================================================
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".