We use that technique in several places right now and have found there to be
a performance hit also.  The biggest hit is sliding the cloud textures, so
much so that we now move the clouds less frequently than we would like.
Does anyone know if this transform is being done on the 3d card or if Java3d
is manually transforming the tex coords and resending the geometry?  Funny
thing is I suspect that using by-ref geometry and updating the tex coords
every frame would be faster than the setTextureTransform.

Dave Yazel

----- Original Message -----
From: Shawn Kendall <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 14, 2001 12:07 AM
Subject: [JAVA3D] setTextureTransform performance problem


We are having a setTextureTransform performance problem in our GDC demo.

We are setting 10 different texture transforms for about 200-300 vertices.
The code is simple:

texTrans.setTranslation( new Vector3d( cur[0].getFloat(),
cur[1].getFloat(), 0.0f ));
myTexAtt.setTextureTransform( texTrans );

Aside from the new Vector3d every time, there's little happening here in
our code.

When we disable just this code, we get a 20% increase in frame rate.
That is we go from 60 to 80 fps.

Any ideas on this one?
Is there any know bugs with TextureAttribute.setTextureTranform() that
would slow things down this much?

Thanks all

--
___________________________________________________________

Shawn Kendall               Full Sail Real World Education
Course Director             3300 University BLVD
Real Time 3D for Gaming     Winter Park FL 32792
[EMAIL PROTECTED]       http://www.fullsail.com
___________________________________________________________

===========================================================================
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".

Reply via email to