Author Topic: Edit Plane surface vertexVector, not rendered  (Read 117 times)

Timothy Generoe   «   on: October 21, 2011, 01:25:45 AM »
I used the displacement-map-example for this one. I want to see how fast flare can change the plane-mesh and render it.
I added a Timer, 1000ms.
In the TimerEvent-handler, I apply the "createTerrain" function from the example.
The mesh does not change shape.
I tried to do "draw()" and "updateTransforms()" on the Plane, but it does not change shape.
How do I tell the renderer to update the shape?

Timothy Generoe   «   Reply #1 on: October 25, 2011, 08:19:48 PM »
It can't be that difficult a question... :(

Ariel Nehmad   «   Reply #2 on: October 26, 2011, 07:20:36 AM »
Hi Timothy, are you changing the texture each time you call to createTerrain? or are you using random values?

because otherwise, you'll get always the same terrain.

Timothy Generoe   «   Reply #3 on: October 26, 2011, 06:36:05 PM »
Good question :) No, I actually use a different bitmap each time.

Timothy Generoe   «   Reply #4 on: October 30, 2011, 07:49:05 PM »
So I'm doing this totally the wrong way or nobody is updating the mesh dynamically?