Recent Posts

Pages: 1 ... 5 6 [7] 8 9 10
61
Support / Re: Interact2D
« Last post by AGP on January 17, 2018, 09:29:51 pm »
I have x and y in screen coordinates, so about which z are you talking? And could you show me a snippet?
62
Support / Re: Memory consumption with Config.maxPolysVisible
« Last post by EgonOlsen on January 17, 2018, 08:05:00 am »
Still, I don't see why you need such a large list. Not all polygons will be visible at once, or will they?
63
Support / Re: Interact2D
« Last post by EgonOlsen on January 17, 2018, 08:03:48 am »
That method assumes the z coordinate to be 1. I don't think that's what you want here. Either set it to the proper value or use the resulting vector as a direction vector and calculate the intersection point with the ground plane in some other way.
64
German corner / Re: Can't deserialize object
« Last post by EgonOlsen on January 17, 2018, 07:46:05 am »
No, zip is zip. How large is your file?
65
German corner / Re: Can't deserialize object
« Last post by ruidge on January 17, 2018, 04:32:39 am »
can you get the solution, i meet the same problem.use serial file is OK, guess maybe ZIP tool are different between javaSE and AndroidLib ??
66
Support / Interact2D
« Last post by AGP on January 16, 2018, 08:38:03 pm »
I'm trying to make a little level editor. Right now, all it will do is to allow you to position some enemies by clicking on the 3d map. I'm not very interested in the y coordinate, because they will place themselves relative to the floor's height). But the following code always places the enemiies in the same (marked) spot:
https://www.dropbox.com/s/r73iukqn0wdtcjs/LE.jpg?dl=0

Code: [Select]
     public void mouseClicked(MouseEvent e) {
Point p = e.getPoint();
SimpleVector p3d = Interact2D.reproject2D3DWS(camera, buffer, p.x, p.y);
System.out.println("p3d: "+p3d);
p3d.y = -2000f;
objects[numberOfObjects++] = Primitives.getCube(100f);
objects[numberOfObjects-1].build();
objects[numberOfObjects-1].translate(p3d);
theWorld.addObject(objects[numberOfObjects-1]);
     }
67
Support / Re: Memory consumption with Config.maxPolysVisible
« Last post by Jamiro on January 16, 2018, 05:54:47 pm »
No, ATM just only one big object with 262.144 polygons, and only 1 texture, not mipmapped with 16 bits (but even that won't make any difference being only 1 so far).

the problem is that I'm running on a 32-bit vm system, and can only get 1500 MB of memory to the max.

I could switch to a 64-bit but this project was trying to be compatible due to its specs.

Results:

Config.maxPolysVisible = 100000;  -> yields Memory Used: 367MB
Config.maxPolysVisible = 1000000; -> yields Memory Used: 721MB
Config.maxPolysVisible = 10000000; -> java.lang.OutOfMemoryError: Java heap space

using xms = 1200 MB and xmx = 1200 MB

so I can assume that each zero will boost up exponentially, which was the issue with the memory. So far it's not a problem, but later on it will be when I need more textures and non-vbo objects (they are this way so that I can work with vertices and texture maps in real time). S I was getting a bit scared. But seeing there is no possibility to ingore this property checking, I don't know what to do to.
68
News / Forum upgraded to 2.0.15
« Last post by EgonOlsen on January 16, 2018, 05:29:27 pm »
No text!
69
Support / Re: Memory consumption with Config.maxPolysVisible
« Last post by EgonOlsen on January 16, 2018, 05:28:53 pm »
No, but that list actually isn't that expensive. I'm really wondering where all your memory is gone!? Are you using very large textures or something like that.
70
Support / Re: Memory consumption with Config.maxPolysVisible
« Last post by Jamiro on January 16, 2018, 04:30:34 pm »
Well, memory is maxed up already, and I'm already using compiled objects, as well as not using mipmaps, already using 16-bit texture and so on.... all efforts for minimal memory usage were done, but still if I want to give just another zero to the max polygon visibile, it will just give me too much memory consumption followed by the memory heap space problem.

it seems that it can reach 1500+ MB memory usage.

is there any possibility to bypass this visibility list, and take the responsability on my own? It would be awesome if it would.

Regards
Pages: 1 ... 5 6 [7] 8 9 10