If they are the same shape then you could use a SharedGroup.  You can then
have each shape with its own transform with a link to the shared group
underneath it.  The transform can both move and scale the object.  That will
considerably reduce the memory you are using.

Dave Yazel
http://www.cosm-game.com



-----Original Message-----
From: Mantes Athanasios [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 10:12 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Memory Optimization


Hi there!

I'm new to java3D and I want to create an application which will show
2000 identical in appearance sphere objects with various scales and
positions. I have managed to see my 2K spheres, but my application
consumes almost 160MB of memory. How can I make my application use
significantly less memory and run faster? Is the amount of memory
consumed normal for so many objects ?

Thanks
Nasos

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