DoubleM
Member
|
Can't access terrain vertices
Hello everyone
I'm not sure whether this is the right section for this question but I hope so.
I would like to blend between materials as allready discussed here.
But in the part where the blend values are set I get an access violation error.
Code:
World.areaActive(World.worldToAreaPos(Cam.at.xz()))->getData()->mshg.meshes[i].parts[j].base.vtx.material(0) = Color(255, 255, 255); // for testing purposes only, i & j because i loop through all meshes and parts
Further I found out that
Code:
World.areaActive(World.worldToAreaPos(Cam.at.xz()))->getData()->mshg.vtxs()
allways returns 0. So there seem to be no vertices?!
How else should I access the vertices?
Anyone got an idea what I'm doing wrong?
Greetings,
DoubleM
|
|
10-28-2011 08:36 PM |
|
Esenthel
Administrator
|
RE: Can't access terrain vertices
terrain has only meshrender
|
|
10-29-2011 02:28 PM |
|