# Thread: how to get terrain with points?

1. ## how to get terrain with points?

I have got some points with Z value(random), and how to draw terrain with these points? thanks

2. ## Re: how to get terrain with points?

HI!!
I think you can start to use Bezier patches, then u have to learn how to apply textures on it. For that u need a vertex arrayand then i would read some of super bible there are are nice examples there...
i hope this help bye

3. ## Re: how to get terrain with points?

HI!!
I think you can start to use Bezier patches, then u have to learn how to apply textures on it. For that u need a vertex arrayand then i would read some of super bible there are are nice examples there...
i hope this help bye
Thanks
but the points I get is random,not as array in x or y direction, then how should do?

4. ## Re: how to get terrain with points?

You're saying that your points are not regularly placed on a grid, right?
You should look for Delaunay triangulation.
You might start here : http://goanna.cs.rmit.edu.au/~gl/res.../delaunay.html

5. ## Re: how to get terrain with points?

u could also try out the ROAM algorithm.
i don't have the exact link but tutorial 8 at www.naturewizard.com links to it. Its not exactly what u want but u could give it a try

Regards.

[This message has been edited by abhijeet_maharana (edited 07-17-2003).]

6. ## Re: how to get terrain with points?

"but the points I get is random,not as array in x or y direction, then how should do?"

You said you have the Z for each point. There should be no problem putting it in the right vertex coord.

If you are unable to figure out what Z belongs to what point then you're in bad trouble - this means you don't know your data!
Are you trying to generate the terrai procedurally? What is the problem? Can you provide more info? If you don't have them in an array, from where the Z samples come?

If they are just random, in the meaning you generate them calling rand() or stuff like that then you simply have to decide how much detailed your terrain will be and then sample it correctly - but I guess this is not the case.

7. ## Re: how to get terrain with points?

i see no reason for not using heightmaps...or generating some bye perlin noise etc. but it depends on your needs, for a flight simulator...of course, heightmaps were not very useful

bye

8. ## Re: how to get terrain with points?

Originally posted by apocalexiz:
... for a flight simulator...of course, heightmaps were not very useful...
I'm interested in this. Why not?

9. ## Re: how to get terrain with points?

because hightmaps got a limited size with the other algorithms, triangulation, fractal terrain generation you r able to create endless terrains at runtime...IMHO

bye

10. ## Re: how to get terrain with points?

Ok, but they are not as controllable... oh well, it does not matter.

I still have to see a noise-based terrain renderer at decent speed however. Got a link?

Page 1 of 2 12 Last

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•