Posted By: annonymie
Chunked terrain don't works. - 04/04/11 18:39
Hi,
after one day trying, I need to ask...
This is my terrain. The terrain is completely flat and then I deform it with
terrain_chunked is set to 32.
After the first 32 meshes, the terrain ist cutted in x and y direction
The rest of the terrain looks, like it should...
Why the cut after the first chunk?
What do I wrong?
Hoping for help. Thanks
after one day trying, I need to ask...
This is my terrain. The terrain is completely flat and then I deform it with
Code:
function deform_terrain(ENTITY* terr) { var i = ent_status(terr,0); // number of vertices CONTACT* c; set(terr, PASSABLE); for(; i>0; i--) { c = ent_getvertex(terr,NULL,i); c.v.y += random(50); ent_setvertex(terr,c,i); } reset(terr, PASSABLE); }
terrain_chunked is set to 32.
After the first 32 meshes, the terrain ist cutted in x and y direction
The rest of the terrain looks, like it should...
Why the cut after the first chunk?
What do I wrong?
Hoping for help. Thanks