A texture coordinate set value of -1 is only valid if
TexCoordGeneration is enabled. Java 3D requires texture coordinates to
be available for all texture units, either explicitly, via a
non-negative value in the texcoord set map that refers to a valid
texture coordinate set in the geometry array, or implicitly, via
TexCoordGeneration.
--
Kevin Rushforth
Java 3D Team
Sun Microsystems
[EMAIL PROTECTED]
>Date: Wed, 19 Sep 2001 11:38:54 +0200
>From: Allan Andersen <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Semantics for texCoordSetMap - Strange colorisation?!
>To: [EMAIL PROTECTED]
>
> I don't use TexCoordGeneration in the texture unit states. I generate the
> texture coordinates "by hand" when I calculates normals and coordinates
>when
> I build the content of the geometry array.
>
> Creation of the TextureUnitState:
>
> TextureUnitState vTextureUnitState = new TextureUnitState();
> vTextureUnitState.setTexture(pTexture);
> vTextureUnitState.setTextureAttributes( .... );
> .... No usage of TexCoordGeneration
>
> Building of geometry array:
>
> // coordinates and normals....
> vGeometryArray.setCoordinate(..);
> vGeometryArray.setNormal(...);
>
> // texture coordinates
> for each texture unit state defined in Appeareance {
> vGeometryArray.setTextureCoordinate(vCurrentTextureSet,
> vGeometryArrayIndex,vTextureCoordinate);
> }
>
> If the elements are -1 I get the same colorisation no matter if texture
> coordinates generated or not, when the geometry array are build.
>>
>> ----- Original Message -----
>> From: "Charmaine Lee" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Tuesday, September 18, 2001 8:44 PM
>> Subject: Re: [JAVA3D] Semantics for texCoordSetMap - Strange
>colorisation?!
>>
>>
>> > Allan,
>> >
>> > Did you specify TexCoordGeneration for the two texture unit
>> states?
>> >
>> > Charmaine Lee
>> > Java3D Team
>> >
>
>===========================================================================
>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".
===========================================================================
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".