Results 1 to 6 of 6

Thread: Quick question. Close approximation of height information from a drawn map for 3D?

  1. #1
    Guild Novice Facebook Connected
    Join Date
    Mar 2013
    Location
    United Kingdom
    Posts
    5

    Default Quick question. Close approximation of height information from a drawn map for 3D?

    Hi there! I feel it's best to come and ask the experts of such a concern.

    I am with a group of close friends working on an open world fantasy sandbox game which has been in 'hobby' development for a few years now. We are currently trying to wrack our brains over how to as accurately as realistically possible, transfer height information over from a drawn 'painted' style map, a-kin to the many maps on this site, onto a height map for use as a base to shape the 3D terrain of the game world.

    We have the world map in the form of a drawn map, and wish to create an accurate 3D terrain of this map. I am wondering if there is any information how to go about performing this process. We have tried so far to generate a normal map from the image and then convert that to a height map. This is a fairly close approximation but problems arise due to the normal mapping, which takes vertex normal direction as colour information, where as a height map takes absolute pixel height information (as a binary integer between 1 and 255) per pixel as colour information.

    Basically this means that a mountain on the original map will actually make a smaller mountain, offset slightly, and a gully next to it, as the 'height' on the height map will actually be a generated from the lighter colour for 1 side for the mountain, and a darker for the other based on normal information, not 'height' information. It basically means that a height map from a normal map is a weird sort of scewed reflection, instead of a direct representation.

    It works, sort of, and has been the best results so far but it is still a long way from something we would be happy with.

    I am wondering if there is any information available about the general workflow of retaining and transferring topological detail as formed in classical map creation, over into crafting a height map for 3D terrain generation of the originally created topology in the map.

    We are making acceptable progress in experiments, but as ever, asking the professionals about any information regarding this concern is a no brainer

    Thanks in advance for any advice!

  2. #2
    Guild Adept monks's Avatar
    Join Date
    Dec 2007
    Location
    Manchester, UK
    Posts
    291

    Default

    Hi, I'm sure there must be at least one tutorial on here somewhere that will help. Can you post an image of your map, or some representative section of it?

    monks

  3. #3
    Guild Novice Facebook Connected
    Join Date
    Mar 2013
    Location
    United Kingdom
    Posts
    5

    Default

    Thanks for replying. Sure!

    Here's the over all world map

    Here's the Southern Continent, close up.

    Here is the south western peninsula of the southern continent that outlines the focal points of the civilizations and landscaping details existing in that area. (the border between the blue and red overlays marks the frontier between the Amaducan (red) and Vihuali (blue) Empires.)

    Here is a concept piece of 'mount Osunas' (labeled Osunas on the previous overlay).

    Here is the south western continent without the overlay, that we have been using as a base for conversion attempts.

    Hope this is of use to any possible help.

  4. #4

    Default

    I have not yet encountered an algorithm that can do what you describe: Take lighting information and turn it into height or depth information (from the way you describe it, I assume you're working from some kind of shaded relief original map). It's actually something that I looked for pretty hard about a year ago, when I was investigating new ways of converting movies to stereo 3d. Intuitively, it seems like something that shouldn't be too difficult, but I suspect that accounting for non-planar shadow-catching surfaces makes it a great deal more complicated.

    I think if I were approaching this task, I'd use the original map as a template and paint the heightmap over it. Gimp has a nice gradient feature, where if you draw a selection, it will create a gradient from the center out to the edge. That would probably be a good tool to start with. After painting it up, I'd then run it through Wilbur, which is a free utility that can perform erosion simulation.
    Bryan Ray, visual effects artist
    http://www.bryanray.name

  5. #5
    Administrator waldronate's Avatar
    Join Date
    Mar 2007
    Location
    The High Desert
    Posts
    3,549

    Default

    Shape from Shading algorithms exist, but how well they work depends on the nature of your surface and how much quality you require in your output. As Midgardsormr suggests, however, the fastest and highest-quality results will likely be from painting your image directly.

  6. #6
    Community Leader Guild Sponsor Korash's Avatar
    Join Date
    Nov 2008
    Location
    Montreal, Canada
    Posts
    1,600

    Default

    Chin Swift, it seems that we can not access your drop box files......We can host images here at the guild as well, and it makes it easier to see them and the posts containing them don't usually get moderated (which yours did). If you want to post the images here all you have to do is use the Go Advanced button located below and to the right of the text box. That will bring you to an expanded text box with added options - and just to the right of the smiley icon is the button for attachments. Click that and follow the instructions and your post will automatically have a thumbnail of the image. There are size restrictions for images based on what type of file they are, and I believe you can find those in the FAQ near the top of the page.
    Art Critic = Someone with the Eye of an Artist, Words of a Bard, and the Talent of a Rock.

    Please take my critiques as someone who Wishes he had the Talent

Posting Permissions

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