Hey, I suppose in many way this is comparable to large data sets of terrains. I use a fairly large data set for my terrain by perform culling by hand. It all really depends on whether you need to see the "whole" molecule at once. If you do, you'll need a more powerful machine. However, if as I expect, you only look at sections at a time, only create the shapes for the one you can see. A useful way to do this is to "pool" shapes for atoms and reconfigure them as you use them.
Not sure this is tool clear, Create 1000 atoms which can be reconfigured, e.g. allow capability for read and write of geometry and appearance As atoms come on the view area pull one out from the pool and configure it for the atom, As atoms leave the screen take their shape and return it to the pool. Another alternative would be to share shapes between atoms with the same characteristics. However, you only want to share between atom that were relatively close. I hope this is of some help, Kevin Ranjan.George wrote:
Hi All, Been struggling with this issue for quite a while now. Requirement: To be able to display a molecule using spheres (for atoms) and cylinders (for bonds between the atoms) on the Canvas3D. The size of the molecule can range from 1000s of atoms to 10000s of atoms. Number of bonds per atom can be averaged at 2 to 3 per atom. Am giving you these figures so that you have an idea as to how huge and complex the molecule can be. I need to be able to make this molecule display on a machine with a basic configuration of 128MB RAM. Hence I performed the profiling for the following graph: BG->TG(n numbers)->Shape3D(n numbers)(No Geometry or Appearance added) Note that each of the Shape3D was added to a TG and then the TG was added to the BG. So the BG has n TGs with a Shape3D in each. The following were the results: n Memory Used (MB) ====================== 1000 3.7 2000 8.1 3000 12.5 28000 115 The last one probably representing a molecule size of 7000 to 8000 atoms and gives OutOfMemory exception unless I give the -Xmx option to the JVM. NOTE THAT EVEN THE GEOMETRIES OR APPEARANCE HASNT BEEN ADDED AND I CANNOT SHARE SHAPES AS EACH ATOM MAY HAVE A DIFFERENT APPEARANCE. Even with the -Xmx option the system becomes pathetically slow as memory is used from the hard disk. How do I solve this problem and minimize my memory utilization?? Any thoughts on the above will be most welcome as I have tried all sorts of things. The root of the whole problem seems to be becos Java3D does not give an option of working on persistant data and neither provides any interfaces which allow you to enable it to do so. I know this is a long mail. Hope you have the patience to go through it. Thanks in advance. Ranjan =========================================================================== 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".
