Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: how to get terrain with points?

  1. #1
    Guest

    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. #2
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    13

    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. #3
    Guest

    Re: how to get terrain with points?

    Originally posted by Mad_Musician:
    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. #4
    Senior Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    340

    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. #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. #6
    Senior Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    625

    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. #7
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    26

    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. #8
    Senior Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    625

    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. #9
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    26

    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. #10
    Senior Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    625

    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 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 10-30-2013, 02:58 PM
  2. Terrain Generation / Displaying terrain
    By _Syndic in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 05-06-2013, 04:29 AM
  3. Replies: 3
    Last Post: 01-01-2002, 01:23 PM
  4. knot points and control points in NURBS
    By kkher in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 12-19-2000, 07:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean