Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt/3D - Simple Terrain Modelling

Qt/3D - Simple Terrain Modelling

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goocreations
    wrote on last edited by
    #1

    I have a simple task to do, but I'm not sure Qt is able to do this.

    I have a normal image (eg: jpeg) and a heightmap (also a jpeg) with values -1 to 1. I want to create a 3D terrain with the 2 jpegs.

    I've noticed there is something like Qt/3D, but I'm not sure this module will be able to handle something like that. Can someone confirm if Qt is able to handle such rendering or if I should rather go OpenGL. If Qt can handle it, is there any tutorial or demo program that does this?

    Just to indicate, I have NO OpenGL/DirectX knowledge and I don't want to sit for weeks trying to figure out how to manage this.

    Any advice would be appriciated.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      I believe that you'll have to code the mapping stuff yourself, regardless of what display method you're using.

      As an aside, be wary of using jpegs (especially for your height map data), as they use lossy compression and, as such, can introduce artifacts in your data, which is probably something you wish to avoid. Consider using pngs, which will maintain your original image data.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        I think the pixelater example can be of good use for you. There they use the grey value of color pixels to determine the diameter of circles replacing the pixels.

        In your case you could translate them to z-values.

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved