Advertisement

Draw a surface based on a set of points?

Started by December 07, 2004 01:58 PM
13 comments, last by cockney 19 years, 11 months ago
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
How many points? Three?
Advertisement
Hi Lantz,

Right now they are 373 points. But the number of pionts would be different each time.

Thanks
Surface Reconstruction.
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
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
Advertisement
Hey alimarandi, how did you manage to do it?

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
Guys any ideas? I have a set of points and want to draw an object and apply to it a texture. Any thoughts?

cheers

This topic is closed to new replies.

Advertisement