Ravi,
        You need to increase the Java heap size to execute your program,
eg. java -Xmx128m Foo ( type "java -X" for more info. )
        As of performance and memory footprint issues, you should download
the latest java3d1.3beta1 release.

To download Java 3D, Version 1.3, Beta 1, go to:

        http://java.sun.com/products/java-media/3d   and click on:

        Java 3DTM API 1.3 Beta 1: Now Available for Download


- Chien Yang
  Java 3D Team.


> Delivered-To: [EMAIL PROTECTED]
> MIME-Version: 1.0
> Date: Tue, 20 Nov 2001 15:53:50 +0530
> From: "Durga.Banda" <[EMAIL PROTECTED]>
> Subject: [JAVA3D] java.lang.OutOfMemoryError
> To: [EMAIL PROTECTED]
>
> Hai All,
>
> When I am executing the following Code I am getting the following error
> java.lang.OutOfMemoryError      <<no stack trace available>>
>
> How can optimize this code and Improve the Performance.
>
> /***********
>
> TransformGroup ballStickTransGrp = new TransformGroup();
> Transform3D translate = new Transform3D();
> Appearance app = new Appearance();
>
>  for(int i = 0; i < 24000; i++)
>  {
>             v3f.x = 0.0f;
>             v3f.y = 0.0f;
>             v3f.z = 0.0f;
>
>             translate.setTranslation(v3f);
>
>             TransformGroup transformGroup = new TransformGroup(translate);
>             transformGroup.addChild(new Sphere(0.5f,
> Sphere.GENERATE_NORMALS, 10, app));
>
>             ballStickTransGrp.addChild(transformGroup);
>   }
>
> ***************/
>
>
> Thanks and Regards
> Ravi Sankar
>
> ===========================================================================
> 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