This is a question for the Sun engineers.

1. If you have two shapes which have different appearences, but the same
material, do you sort and then only send the material once if possible?
2.  Do you sort materials, etc based on their values or the actual
instantiation of the Java object?  So if I have two materials which are
equivelent, but 2 different instantiations of materials do I still get the
optimization?
3. I was thinking of writing a caching system where after I build something
like a Material I would say Material m = checkMaterial(mm), whereupon it
would look in a cache of already instantiated materials and if it finds a
match it would return the original and discard the new one.  Do you see any
issues with this approach? I am planning on doing this for
renderingAttributes, transparencyAttributes, coloringAttributes,
polygonAttributes and materials.  I already cache textures.

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

Reply via email to