I'm trying to draw an object in Java3D - I have a space of 500*500*250 pixels.
I am only interested in the visible voxels, so I have about 300 000 voxels. When trying to draw them, I get a heap space error (or sometimes OutOfMemoryError). Is this too many objects for Java3D to hold - I don't think that should be the case, I am probably doing something wrong in the code.
thank you - this is what I am trying to achieve ... I have tried using only one Appearance and ColoringAttributes (each voxel will need its own color, though), but I can not achieve the same with other objects - each Box needs to have its own transformation (each is on its own location). Still got the same error ...
As I really got no idea about java3d, (I used jogl though) my last idea would be trying to increase the memory available to your jvm.
You should check at what iteration of your code the error arises though.