Inconsistent behaviour with VertexController on plane edge

Started by altwho, May 29, 2012, 07:09:52 PM

Previous topic - Next topic

altwho

I'm trying to draw terrain from a heightmap by using a VertexController applied to a plane. I get abnormal behaviour when applying height values to the vertices on the starting edge of a plane.

Screenshots:
Picture 1 (what I want to happen):http://dy.fi/7m0
Picture 2 (the problem):http://dy.fi/3ci

The plane is modified using nearly identical code, by setting a single row of the heightmap to a contain the same value in all of its columns. The only difference is on which row of the heightmap the same height value is. The artifacts in picture 2 only appear when applying height values to the first [quads*2] vertices of the plane. Basically in a nutshell I need the heightmap to apply consistently to all the vertices in the plane.
Sorry if I'm being too brief, but I lost my previous message when the forum logged me out because of the default timeout.

EgonOlsen

I'm not sure if i understand the problem correctly...these pictures are very different in viewing angle and pretty low on contrast. Maybe you can draw the wireframe on top!?

altwho

Yes, you're probably right about the wireframe  :)
Pictures with the correct behaviour: http://dy.fi/8f2 and overview http://dy.fi/3cl
Pictures with the wrong behaviour: http://dy.fi/3c8 and overview http://dy.fi/3cf

EgonOlsen

...and the correct structure is continuous and the faulty one has gaps is part of the problem...or not?

altwho


EgonOlsen

I've no idea how you are using the controller and apply the heightmap, so it's hard to find out what's wrong here. I'm not aware of any problem with using the controller, so my first guess would be that your code does something that it shouldn't when applying the actual height. A test case would be helpful...