Alan Hudson wrote:
Kelvin Chung wrote:


Alan Hudson wrote:


It is just a counter starting from 1. Prior to v1.3 this
counter is not reset when Texture detach from BranchGroup but
this is fixed in v1.3.

Can you recommend a safe way to allocate a texture name?


Set the ID to number larger than current texture exists in the
scenegraph should work.

I tried using 2^32-6 as the textureID.  This works fine for some
content, but then other content overwrites this value.  Dropping about
6000 below 2^32 seems to work.  Is something in Java3D also starting to
grab numbers from the top and working its way down as well?
No, Java3D just mention a reusable link list of texture ID (starting
from 1). When texture free the ID is return to this link list.

The texture ID is integer type and is 32 bit on most system
so 2^32 may be too big or consider negative number is some
driver implementation. Try to use textureID below 2^31.

> If so, can
you tell me the case its doing it, ie I'm trying to figure out how fast
these numbers will decrease verses the counter increasing from 1.

- Kelvin
--------------
Java 3D Team
Sun Microsystems Inc.

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