get polygons at point x, z
Posted by Poehli on Sep 27, 2014; 4:34pm
URL: https://forum.jogamp.org/get-polygons-at-point-x-z-tp4033221.html
Hi everyone,
I'm new to j3d and am trying to programm a game, where I need to run on a uneven surface.
for that purpose I added every single polygon of the worldmap to an ArrayList<Polygon>, where Polygon is a self written class which contains some important methods.
But with this setup, it's not only way too slow, but also uses tons of memory. In fact, I get a OutOfMemoryException when I load an object with about 3million polygons, which is a nogo ;).
Now I'm looking for some alternative to get the polygon from x and z coodinates of an object I created in blender. I'm sure, that this polygon is in rendering region, but how to read this region?
Hope you guys can help me here :)
Poehli