Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - volpesfuggente

Pages: [1]
Bugs / View Problems with very large objects
« on: November 30, 2011, 12:56:18 pm »
I am using JPCT for the visualization of very big objects.
Initially I have tried to create two cylinders with height around 6000000 and radius 3000000.
I get some visualization artifacts, even if I have increased the value for the attribute in setClippingPlanes();

Any ideas?

Support / Re: Too many Objects3D and Java heap space
« on: August 27, 2010, 04:00:15 pm »
64mb is default (the 128mb mentioned in the link are wrong IMHO), which is pretty low. Try 512mb or even 1024mb...depending on the memory capacity of your machine. And 50000 objects is pretty high and so is a visibility list of 512000. I suggest to compile the objects ( if possible, if they can share the same mesh, make them share and if they share and can be compiled, call shareCompiledData(<Object3D>); on them.
Compiled objects are faster and you can reduce the size of the visibility list too, because for compiled objects, it contains only one entry/part, which (for simple objects) is one entry/object in a lot of cases.

I've just use the command compileAndStrip() on my Obj3D...
This command is useful only on OpenGL Renderer, isnt'it?
Up to now, I'm using the software render, but I'm trying to convert to the OpenGL (I've some problems to catch the mouse events. In the software renderer I use the Jframe and it is easy... Any suggestions?)

Support / Too many Objects3D and Java heap space
« on: August 26, 2010, 02:16:25 pm »
I have several problems with my simulator.
I have to create a large number of 3D objects (about 50000).
when the program runs I receive the following error message:

Code: [Select]
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at com.threed.jpct.Vectors.<init>(Unknown Source)
at com.threed.jpct.Object3D.init(Unknown Source)
at com.threed.jpct.Object3D.<init>(Unknown Source)
at com.threed.jpct.Primitives.createLatheObject(Unknown Source)
at com.threed.jpct.Primitives.getEllipsoid(Unknown Source)
at com.threed.jpct.Primitives.getSphere(Unknown Source)
at com.threed.jpct.Primitives.getSphere(Unknown Source)

The Object3D are spheres. I've tryed to use this configuration parameters:
Code: [Select]
Config.glAvoidTextureCopies = true;
Config.maxPolysVisible = 512000;  

I tryed to reduce the number of Objs to 500, but I receive the same error message.
Then, if I set Config.maxPolysVisible = 128000;   (instead of 512000), the program runs, but I receive the WARNING: You've exceeded the configured triangle limit for the visibility list. Consider adjusting Config.maxPolysVisible!

In any case there is no way to get it working with 50000 objects...

Any ideas?

Support / Re: Camera zoom and disappearing objects!
« on: August 04, 2010, 01:04:20 pm »
I've just tried, It works with large values of farPlane. Thanks!

Support / Re: Camera zoom and disappearing objects!
« on: August 04, 2010, 12:42:40 pm »
P.S. I've tryed to increase the Config.maxPolysVisible, but there aren't any changes...

Support / Camera zoom and disappearing objects!
« on: August 04, 2010, 12:39:21 pm »
I'm trying to draw some spherical objects with a radius=100.
I've positionated a camera in front of one sphere and I would zoom out for view more objects, but It don't works as I would. The original sphere gradually disappears. It seem that at some point all object at that distance are cut by a plane...
I must configure the camera, the world or the buffer in some way?

Support / Re: Object disappearing... too many objects??
« on: June 22, 2010, 06:23:10 pm »
I'm sorry, I have search in the forum for my problem, but I haven't found anything before writing this post.

Continuing my search I've found the solution!!!

The answer for my question is here:,375.0.html

This post can be closed I suppose...  ::)

Support / Object disappearing... too many objects??
« on: June 22, 2010, 06:14:52 pm »
I must to create many objects in my simulation.
I have tryed to create over than 50 spheres adjacent on the 3 axis (x,y,z).
Many Objects disappear on camera's movement and most of them is not visualized at all. Moving the camera, some appear and other disappear. Are there any limits on the visualizable objects?

Pages: [1]