addBranchGraph method doesnÂ´t work
I have a problem with the addBranchGraph method: It doesnÂ´t work when my BranchGroup object is big, I mean, when my scene has about 100000 boxes.
My scene is created from a 3 dimensions boolean array. If an element of the array is true, then I add a box, with his TransformGroup object, to the BranchGroup object (root of the scene). Of course, I use the compile method to compile the BranchGroup object.
My program works when my scene has less boxes.
I tried to solve the problem by increasing the memory of the Java Virtual Machine, but it didnÂ´t work.
Can anybody help me?