Ravi,
I've 2 more to add to Paul's list :
1) Share Appearance wheneven possible.
2) If you decided to use our Sphere class, remember to share geometry;
it is share by default.
You'll see significant drop in memory footprint with the coming Java3d1.3.
- Chien Yang
Java 3D Team.
>Delivered-To: [EMAIL PROTECTED]
>X-Accept-Language: de
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Date: Fri, 9 Nov 2001 12:39:44 +0100
>From: "Dipl. Ing. Paul Szawlowski" <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] OutOfMemory error
>To: [EMAIL PROTECTED]
>
>just my 2 cents:
>
>1) reducing the the number of triangles per sphere
>2) reduce number of TransformGroups by precalculating the real world positions
>of the vertices (if positions stay fixed) -> put them all in one Geometry
>object.
>3) reuse the Geometry objects
>
>Probably you cant't use the Sphere class of the utils package to make use of
>these suggestions.
>
>4) use -Xmx option of the java VM to increase memory which will be used
>5) put more memory into the machine
>
>regards
>Paul
>
>"Durga.Banda" schrieb:
>
>> Hi All,
>>
>> We are working on a tool to display macro-molecular structure. It sometimes
>> involve drawing thousands of sphere(for a ball & stick model). Because we
>> need to create those many TransformGroup and Sphere objects. It gives us a
>> OutOfMemory error.
>>
>> Is there any alternative way to create such a model?
>>
>> Any help or pointers will be highly appreciated
>>
>> Regards,
>> Ravi
>>
>> ===========================================================================
>> 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".
===========================================================================
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".