d0lph1n
06-03-2010, 04:27 AM
Hi everyone..
I was hoping you guys could help me with a little problem i'm having.
I'm trying to make a contourplot and my inputdata is:
measured points (red dots in pics)
and to complete the grid i've created 150X150 points that get their value based on the measured points(invers distance interpolation)
The whole mesh is drawn polygon by polygon. I'm going to use vertexbuffer later on but to get the selectionmode to work I'm had to do it this way.. (theres probably a better way)
I want to have contourlines drawn on the mesh... I tried 1d texturing with gltexgen to get the lines but the result is not what i wanted, as you can see on the first picture
i get these large black fields when top/bottom of the mesh hits one of the lines. I was hoping to get thin nice lines..
Picture of mesh with 1d contourtexture
http://i50.tinypic.com/zmz89j.png
Picture of the mesh
http://i50.tinypic.com/2iapth5.png
Picture of mesh + wireframe
http://i49.tinypic.com/2ngsrr7.png
Picture of wireframe
http://i47.tinypic.com/kbar7l.png
I was hoping you guys could help me with a little problem i'm having.
I'm trying to make a contourplot and my inputdata is:
measured points (red dots in pics)
and to complete the grid i've created 150X150 points that get their value based on the measured points(invers distance interpolation)
The whole mesh is drawn polygon by polygon. I'm going to use vertexbuffer later on but to get the selectionmode to work I'm had to do it this way.. (theres probably a better way)
I want to have contourlines drawn on the mesh... I tried 1d texturing with gltexgen to get the lines but the result is not what i wanted, as you can see on the first picture
i get these large black fields when top/bottom of the mesh hits one of the lines. I was hoping to get thin nice lines..
Picture of mesh with 1d contourtexture
http://i50.tinypic.com/zmz89j.png
Picture of the mesh
http://i50.tinypic.com/2iapth5.png
Picture of mesh + wireframe
http://i49.tinypic.com/2ngsrr7.png
Picture of wireframe
http://i47.tinypic.com/kbar7l.png