Terrain access

Posted By: jenGs

Terrain access - 08/23/12 13:37

Hi,
How do I access every vertex of a chunked terrain.
I am loading a heightmap and want to deform it on base of this data.
I success with a normal model file, but not with a terrain.
I am using ent_getvertex/ent_setvertex and the contact struct.
My problem with my first try is, that not every vertex is modified as if ent_getvertex count's the double verts of the terrain. But the manual say's it shouldn't.
Another problem is, that ent_fixnormals only fixes the first chunk.
Does anybody have some experience with this.
Gruß,
Patrick
Posted By: sivan

Re: Terrain access - 08/24/12 20:54

yes, it does not work properly in latest A8.40.1 beta too, but I placed a post and a terrain deformer demo in that thread, and as I see in the "Bug List", it will be okay in A8.40.2. moreover in that demo you can find a temporary solution for your problems...
Posted By: jenGs

Re: Terrain access - 08/24/12 22:53

Thank you, nice to know that this is going to be fixed.
Your answer was very helpful. I just noticed your post in the update forum.
© 2024 lite-C Forums