Allen McPherson wrote:
> 
> Frederic Gillet wrote (quoting from Java 3D Tutorial):
> 
> >  Geometry color ALWAYS takes precedence over ColoringAttributes or Material color.
> 
> >  If present, per-vertex color overrides the diffuse Material color.
> 
>         I was not aware of that.  Would someone from the Java 3D team
>         comment on why that decision was made?  It seems to me that
>         the two should be orthogonal.  Also, where is the override
>         mentioned?  Perhaps I missed it, but I didn't catch it in
>         the spec (probably right under my nose).
> 

This information is not in the spec.  (One of the advantages of checking
out the tutorial.)

Obviously, the per-vertex specification of color gives the programmer
more flexibility in coloring an object.  Otherwise, if you had an object
that you wanted shaded, but not a solid color, you would have to make
multiple visual objects to represent it.

The operation is analogous to the glColor() operation in OpenGL.


my $0.02
Dennis

-- 
-----
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 subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to