Hi
I'm trying to create a pixel representation of a room in 3d space, and for that I create a 3d array 'pixelArray[width][height][depth]', where width = 800, height = 700 and depth = 400.
When i try to run the porgram, it gives me the exception "java.lang.OutOfMemoryError:
Java heap space".
Now before dealing with the exception, I wanted to see if my approach to creating such a big 3d array to represent a 3d room is a good practice or not. Is there a better way to solve my problem?
If it is the best way to approach this problem, how do I increase the heap space? I'm using eclipse as my
IDE, and I tried changing the -Xms and -Xmx values to 512 in eclipse.ini, and also in the run configurations of my project, but they don't seem to be working since I still get the same error.
Thanks in advance