Draw a surface based on a set of points?
Hi Everybody,
I have a set of points. X, Y, Z. I want to draw a surface based on these points. How may I do that in OpenGL?
Thank you,
Ali
Hi Lantz,
Right now they are 373 points. But the number of pionts would be different each time.
Thanks
Right now they are 373 points. But the number of pionts would be different each time.
Thanks
Are the points fairly random or is there any other data that indicates the relationship between the points? If the answer is no then your best bet is a delauny triangulation (I pulled one off once but it was very slow on large data sets). With the triangulation, your odds of getting exactly what you want (unless its a 2d surface) is fairly slim.
Good Luck,
- llvllatrix
Good Luck,
- llvllatrix
Hi Everybody,
You all helped a lot. My program works great.
Thanks llvllatrix that was perfect answer, and thanks to CoffeeMug as well.
Cheers,
Ali
You all helped a lot. My program works great.
Thanks llvllatrix that was perfect answer, and thanks to CoffeeMug as well.
Cheers,
Ali
Hey alimarandi, how did you manage to do it?
I'm interested in something similar.
cheers
I'm interested in something similar.
cheers
If it is a 2d surface that has a high resolution, like a terrain, it is easy. Just do triangle strips between the points in a loop. If you have the points indexed in an array the right way, it is really easy. If you need a bezier curve that is smoothened out like a curvy hill, I don't know how to approximate it but I know that OpenGL has support for Bezier Curves which should do the trick.
Thx for the reply, but I'm talikng about 3d (I have tried the triangle_strip but did not work in the way that i want).
I have a set of X,Y,Z points and want to draw the surface of the object created from these points.
cheers
I have a set of X,Y,Z points and want to draw the surface of the object created from these points.
cheers
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement