Results 1 to 2 of 2

Thread: Please correct me if Im wrong...

  1. #1
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Please correct me if Im wrong...

    I am about to start creating a terrain engine. From what I gather, there are 2 ways, heightmap, or random height allocation. Heightmap simply reading a greyscale image and converting it to 3d, while random height allocation, simply assigning a random y value to a matrix of x,z points. Am I correct?? I plan to implement the latter, random height allocation. Is this wise? Also, are there any better ways?
    :: Sleep is a poor substitute for caffeine ::

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,574

    Re: Please correct me if Im wrong...

    Internally, they are both the same. Both methods are used to generate a heightmap. A height map isn't so much a greyscale image; that's just a means of generating one. A height field is just an array of height values whose indices serve as the other two coordinates for the vertices. Assuming the height direction is the y axis, the indices are mapped into x and z.

    There are plenty of ways of generating a height field. I would first concern myself with rendering a height field, since if you can render one, the rest is simply a matter of calculating the height values.

    As to questions of how you generate the field, it really depends on what you're going to do with the height field. Certainly, using an image is always helpful at getting the exact look you're searching for.

Similar Threads

  1. Replies: 0
    Last Post: 01-10-2017, 07:37 AM
  2. Getting the correct x y and z
    By Formatwizard in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 03-02-2011, 02:10 PM
  3. Is this correct?
    By MikeTS in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 05-12-2004, 07:53 PM
  4. in MDI in MDI how do I get correct DC
    By REM in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-25-2002, 05:28 AM
  5. Correct me if I’m wrong…
    By ToolChest in forum OpenGL: Advanced Coding
    Replies: 18
    Last Post: 09-18-2002, 11:09 AM

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