Some things I have noticed:
1-It looks like the all texture sets are applied at every vertice
2-You can control the texture coordinate for each vertice, for each set
3-The texture sets are modulated together at runtime.
4-You cannot "shut off" a texture set on some verticies.
Based on this information I don't think you can switch from grass to sand,
or from rock to snow in one texture.
I originally thought that you assigned the texture coordinate for one set or
the other at each vertex, thus causing the texture shown to the user to
seemlessly move from one texture to another in the same object. But instead
you have to assign texture coordinates for ALL sets at EVERY vertex, and the
resultant display is a merging of the sets.
Or is this the bug?
Thanks,
Dave Yazel
> ----------
> From: Charmaine Lee[SMTP:[EMAIL PROTECTED]]
> Reply To: Charmaine Lee
> Sent: Thursday, August 24, 2000 1:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Multiple Textures in an Object
>
> Hi David,
>
> There is a bug in Java3D 1.2 in using two tex coords sets. Try
> using the same tex coord set for both texture units and see if it is
> any better. Will you also send us a test program to verify that
> the problem you described is indeed fixed in the upcoming Java3D 1.2.1
> release?
>
> Thanks,
> Charmaine Lee
> Java3D Engineering Team
>
>
>
> > MIME-Version: 1.0
> > Content-Transfer-Encoding: 7bit
> > X-Priority: 3
> > X-MSMail-Priority: Normal
> > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
> > Date: Wed, 23 Aug 2000 21:17:49 -0400
> > From: David <[EMAIL PROTECTED]>
> > Subject: [JAVA3D] Multiple Textures in an Object
> > To: [EMAIL PROTECTED]
> >
> > Hi all!
> >
> > Perhaps this does not do what I thought it would do. Or perhaps I am
> using
> > it wrong.
> >
> > 1. I have defined a triangle strip array
> > 2. I have two tex coord sets defined, mapped to tex units 0 and 1
> > 3. I have a terrain mesh. As I am building the vertices I am specifying
> the
> > texture coordinates.
> > 4. Based on certain criteria for each vertex I either set the texture
> set to
> > 0 or 1, with an appropriate texture coordinate
> > 5. I am creating the appearance with two texture units, one specified
> with a
> > "grass" texture, the other with a "sand" texture
> > 6. All of the vertices are colored grey
> > 7. Texture attributes on both texture units are set to modulate
> > 8. I have directional lights and a ambient light
> >
> > My terrain comes out very odd. First of all the "sand" area is coming
> out
> > green. Secondly I am not convinced it is applying the texture at all in
> > those areas. Also there is massive "warping" in the "sand" areas. The
> > grass areas look normal.
> >
> > First question: Can I do what I am trying to do here? have the
> textures
> > change from grass to sand in a single mesh?
> > Second question: If I can the what am I doing wrong?
> >
> > I am not creating the texcoordarrays and setting them in the geometry, I
> am
> > just setting them at the vertex level as I make the mesh. I am assuming
> the
> > contructor to the triangle strip array will make them for me of the
> proper
> > size.
> >
> > This works fine if I only reference the first tex coord set.
> >
> >
> > Dave Yazel
> >
> >
> ==========================================================================
> =
> > 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".
>
===========================================================================
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".