Main Menu
Menu

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.

Show posts Menu

Messages - volpesfuggente

#1
Bugs / View Problems with very large objects
November 30, 2011, 12:56:18 PM
Hi!
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?
#2
Support / Re: Too many Objects3D and Java heap space
August 27, 2010, 04:00:15 PM
Quote from: EgonOlsen on August 26, 2010, 08:01:18 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 (http://www.jpct.net/wiki/index.php/Compiled_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?)
#3
Support / Too many Objects3D and Java heap space
August 26, 2010, 02:16:25 PM
Hello.
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:

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:
Config.glAvoidTextureCopies = true;
Config.saveMemory=true;
Config.maxPolysVisible = 512000;  
Config.useMultipleThreads=true;


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?
Thanks.
#4
Support / Re: Camera zoom and disappearing objects!
August 04, 2010, 01:04:20 PM
I've just tried, It works with large values of farPlane. Thanks!
#5
Support / Re: Camera zoom and disappearing objects!
August 04, 2010, 12:42:40 PM
P.S. I've tryed to increase the Config.maxPolysVisible, but there aren't any changes...



#6
Support / Camera zoom and disappearing objects!
August 04, 2010, 12:39:21 PM
Hi!
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?





#7
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:
http://www.jpct.net/forum2/index.php/topic,375.0.html

This post can be closed I suppose...  ::)
#8
Support / Object disappearing... too many objects??
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?