Slashdot Mirror


Landscape Projection with Blender?

polyp2000 asks: "I am working on a project that requires me to generate 3D terrain maps from bitmapped contour files. I need to then be able to apply a texture over the top of the terrain. I've been looking for a utility that will enable me to convert from bitmap to 3D landscape projection that can be imported into Blender (either VRML or DXF). After googling around I haven't really come up with anything useful. Might seasoned Slashdot readers know of a solution?"

29 comments

  1. Height Modeling by glk572 · · Score: 5, Informative

    http://www.linuxgraphic.org/section3d/blender/page s/didacticiels/paysages/index-ang.html

    Is, I think, exactly what you're looking for, just replace his step of generating the map, with your own to create the image that you need, and out pops your image ready to be textured.

    --
    Well art is art isn't it, but then again water is water; and east is east; and west is west; and if you take cranberries
  2. Surfer by Golden Software by WhiteBandit · · Score: 1

    A program we use in the labs at school is called Surfer. I'm not sure if it can read a graphic file and turn it into a 3D contour map, but it seems to have enough options that it should.

    We took quite a few field measurements using a Total Survey Station, plugged them into a spreadsheet and had Surfer read them, it then created contour and 3D surface images for us to use and characterize the terrain with. Best of all, the data can be exported in DXF format.

    The one drawback may be the price tag... $599 USD. :-/

  3. GMT by Zapper · · Score: 2, Informative
    I'm sure that Generic Mapping Tools will do all that you want and more.

    It may take some time to learn to use it properly though...

    --
    So much to do, so little bandwidth.
    --
    Try Mozilla
  4. povray by krymsin01 · · Score: 3, Informative

    If all you have to do is render it, try povray It's excedingly easy to do what you describe in it. Also, I think there are povray -> blender converters, not sure though.

    --
    stuff
    1. Re:povray by klaasvakie · · Score: 2, Informative

      I have done what you want before, povray is a excellent tool for this.

      If you go to the blender scripts page you can get a pov->blender converter.

      --
      # ssh -l neo the_matrix; killall -9 agent_smith
  5. Terragen by BigT · · Score: 2, Informative

    It's a Windows app, but Terragen may do what you need. There are several plugins to it that allow you to use various things, such as bitmaps, to generate the terrain. The plugins also output in a variety of formats.

    --
    Is it weird in here, or is it just me?
  6. Vista Pro by DZign · · Score: 1

    Search for Vista Pro..
    this program exists for about 10 years now,
    I remember using it on the Amiga and then there
    was also a program available to convert bitmaps to
    the maps VP could use.

    1. Re:Vista Pro by raygundan · · Score: 1

      Wow, that's a flashback. I used to run that from floppy on my Amiga 500. It took all day to render a mountain that would be far below-average by today's gaming standards, but it was SO DAMN COOL. Especially since they included bitmap data for Olympus Mons on mars along with the nifty fractal landscape generator.

  7. Is there anything in OziExplorer 3D? by ivi · · Score: 1


    It's proprietary... It's Windows-based
    (at least, last I heard)... but - if
    none of the others do it... have a look. ;-)

  8. blender won't work by wazlaf · · Score: 1

    You will probably have problems using blender. Even if there is a way to import landscape heightmaps, you will be severely limited by the maximum 64K vertices per mesh, which is way to low to create a high-resolution landscape. If you have access to windows or use wine, have a look at TerraGen, it will do the job.

    1. Re:blender won't work by Vizionary · · Score: 5, Informative
      BTW, the 64k limit was resolved back in v2.32

      Here's an excerpt from the release notes for Blender 2.32...

      "- Blender Meshes now have a limit of 2 Billion faces (instead of 64k). This doesn't break backward or upward compatibility, but will cause .blend files to grow about 30% in size. "

      Also, in case you're interested, they've recently released Blender 2.33a which can be downloaded here.

      There are TONS of new features...

      Enjoy!

    2. Re:blender won't work by xlyz · · Score: 1

      btw 64k verticles are enough for a lot of terrain type (empty salt lake anyone?)

  9. MOD PARENT UP by Picass0 · · Score: 0, Redundant

    +1 informative

  10. what for? by theMerovingian · · Score: 2, Informative


    What is the purpose of creating 3d terrain maps? What type of textures or data do you want to overlay? Is there any economic value to your project? Do you want to be able to do a virtual walkthrough, or just generate static images?

    If you are trying to program a flight simulator, your needs are totally different than if you were trying to do mapping or GIS analysis. Also, you could just be trying to make a pretty picture.

    Pretty picture:
    Use terragen (as mentioned by previous poster)

    Mapping/GIS analysis of geospatial data:
    ArcView (not cheap)

    Architectural rendering:
    Lightwave (not cheap) or RapidSite 3d (not sure if they are still making this one)

    Goofing around with flight sim:
    some game engine

    You might want to take a look at this site:
    Vterrain is a pretty cool place to get started. The community is pretty helpful - some French dude who programs flight sims gave me some pointers in developing a commercial 3d mapping application.

    Finally, if you need a source for terrain maps, check out the USGS's National Elevation Dataset (NED). This is the best thing since sliced bread in the GIS community.

    Good luck...

    --
    "If you think you have things under control, you're not going fast enough." --Mario Andretti
    1. Re:what for? by ahfoo · · Score: 1
      Thanks for bringing up the National Elevation Dataset. You say it's the best thing since sliced bread for the "GIS community." But what does "community" mean here? I found it rather offensive that my government spent all this tax payer money on creating maps that only work with one particular commercial application. Sure, it's an awesome resource but only for those in the "community" that consists of the priveleged group having enough bucks to buy proprietary software at a thousand bucks a seat.

      Did ESRI pay for that satellite imaging? Hell no. That's taxpayer money. Why are they, and their Win2K required software mandated to access data aquired with taxpayer money.

      Oh, yeah, if you have a copy of ArcView then you're free to export into DXF. What the hell kind of subsidy is that?

      Okay, end of rant. But I am sure few people outside the GIS "community" are aware of this gross misdirection of public funds. Yeah, satellite maps are great and space technology is wonderful, but let's not skip the real details of how this fails to actually benefit 99% of the public in the way that it could.

    2. Re:what for? by theMerovingian · · Score: 1

      You definitely raise some valid points. Although, I think the USGS actually distributes the NED data in SDTS format.

      SDTS is crappy - it isn't directly loadable by any software that I know of. (there might have been an ArcView 3.x extension to view it, I don't remember)

      It's possible to export it from GRID to ASCII in ArcInfo command line. I've heard of people doing raster analysis with ASCII DEM's directly in visual basic.

      The USGS is full of bloat, no doubt. I hate their strategic "partnering" with geocommunity.com to distribute the data for "free". The USGS essentially sent all their data to a commercial site, who will allow you to download one quadrangle at a time through a lame GUI. To add insult to injury, the USGS blocked all FTP access to their DEM server. The madness!

      Fortunately, I've got the whole US on hard drive in two projections :)

      --
      "If you think you have things under control, you're not going fast enough." --Mario Andretti
    3. Re:what for? by Jim_Maryland · · Score: 1

      The National datasets are created to support various government agencies to help eliminate the overlap of data collection (an attempt to be efficient).

      I found it rather offensive that my government spent all this tax payer money on creating maps that only work with one particular commercial application.

      The data format chosen to represent the dataset is a tough point. Some agencies, I'll use NGA (the agency formerly known as NIMA - they had a 3 letter acronym complex), have created their own data standards (look at the specifications for VMAP (several "levels"), DNC, DCW, etc...) and various GIS vendors/projects have implimented interfaces to allow import or native access. By not choosing a vendor's native data format, the agency does not show bias, but users of the data must wait for vendors to code for the dataset. An agency choosing a file format that is already available makes the dataset more widely available. In the case of ESRI data formats, you'll find that in many ways, they have become the industry standard (sort of the MS of the GIS community). Most non-ESRI applications choose to, at a minimum, import ESRI formats into their proprietery format, or work natively with the ESRI format.

      Did ESRI pay for that satellite imaging? Hell no. That's taxpayer money.

      For the first part, why would ESRI pay for the data? They are providing a tool to access and analyze geospatial data. Data stored in their format surely helps the company grow, but they are not "requiring" agencies to store data in their format. Agencies see the benefit of working with industry standard formats rather than spending resources to create their own formats (consider USGS produces DLG files, Census produces TIGER files, etc...). Coming up with your own data specification and maintaining it can be resource intensive. By going with the industry format, they are saving tax payer money compared to producing their own format.

      Why are they, and their Win2K required software mandated to access data aquired with taxpayer money.

      ESRI doesn't require you to run on MS Win32 platforms. If you choose ESRI software, you can select various UNIX platforms including Linux. They produce Workstation ArcInfo (which has traditionally been a UNIX application (although early releases were on other platforms but not for long)) that can access pretty much all formats except the newer GeoDatabase formats available only in their ArcGIS software. If you'd like, consider using Oracle Spatial (with a developer copy) and developing your own applications. Other open source GIS tools exist (can't think of the names off hand) so feel free to check around if you really have an interest in GIS data.

      Oh, yeah, if you have a copy of ArcView then you're free to export into DXF. What the hell kind of subsidy is that?

      The ability to export to DXF is just a simple set of instructions to let people know they can convert the data. If using AutoDesk Map, I believe that application can import just as easily as ESRI ArcView can export it, same for Microstation or Intergraph.

      ...gross misdirection of public funds...this fails to actually benefit 99% of the public in the way that it could.

      First, this is not a misdirection of funds. An easy example that a non-GIS person could relate to would be the use of FEMA (Federal Emergency Management Agency) and it's determination of flood plain areas. Another would be the use of USGS DLG and CADRG's by county police when they need to search a large park for a missing person. You also have the benefit from a military perspective (mission planning, intelligence gathering, etc...). The Census TIGER files (generated itself from a combination of other national datasets) is used by planning agencies for development projects (track population changes over time - high growth areas that might need increased public services - police, fire, hospitals, schools, etc...).

      While GIS may be

  11. I think I have some expertise here... by XenonOfArcticus · · Score: 4, Informative

    Considering this is what I do for a living.

    I won't be able to give you much advice for doing this on Linux, or with Open Source software, since I'm actually not aware of anything that meets both those criteria. I know you didn't stipulate those criteria, but this is Slashdot.

    The first issue you face is converting bitmapped contour data into a heightfield. This is not the same as converting greyscale to heightfields, which is a trivial matter. Most of the links proposed already cover using a greyscale image.

    A helpful site for you will be http://terrainmap.com/. He has an application (Windows, $free) called Blackart that tries to extract meaning from scanned topo map contours and build a DEM/heightfield out of it. A commercial app (Windows, $1500) that does the same thing is R2V. I've not used either so I can't comment on what you get for your $1500.

    Once you have a DEM, you can probably find a way to convert it into a file format that Blender can use as a 3D object and apply texturing to.

    The next step is, what kind of texturing? If you just want to be able to slap some pretty-looking colors or natural-looking dirt/rock/grass/snow effects onto it, you can probably do that in Blender. If Blender can't do everything you want, you might try Terragen (Windows/Mac, $free), which is a little more landscape-oriented. I would not recommend VistaPro at this point, it's pretty outdated. TG is at least still being developed, although it's going commercial.

    If you need to be able to place real-world image information onto the terrain (airphoto or satellite images, GIS databases, other scanned maps, etc) then Blender is really becoming a poor choice for your needs. (What were your criteria for choosing Blender anyway? It's not known for its landscape capabilities.) The trouble becomes that data like these are usually stored in a different Coordinate System (read the whole VTP site while you're there, Ben's got GREAT info). This means that lining up the position, size and rotation of the two pieces of data is difficult if your software doesn't know how to do it for you. Even most low-end landscape software (Terragen, VistaPro, more free here) can't do this. This is the realm of typically fairly expensive commercial 3D landscape software with a GIS tie-in, such as ESRI's 3D Analyst (Windows, $3500) read info on commercial page above) and my company's Visual Nature Studio (Windows/Mac, $2500).

    I won't pretend that my company's product meets your needs, but I have to mention it. I suspect that you'll be able to meet your requirements using some of the tools I outlined first. If however, you find yourself doing this sort of stuff a lot, that's where the polish, integration, support and other frills of commercial software like mine may start to become valuable to you.

    Hope you find what you're looking for. If you (or anybody else) have more questions about this, I'd be happy to answer them privately or publicly. As you can see from the above, despite selling my software, I try to be objective and don't always tell you my product is what you need. ;)

    --
    -- There is no truth. There is only Perception. To Percieve is to Exist.
    1. Re:I think I have some expertise here... by ksheff · · Score: 1

      Depending on how features he wants to include, generating a 'terrain' given a DEM and a sat photo is a simple exercise with OpenGL. I did it years ago with gl as an intern. Adding the extra features to make it look 'real' is the hard part. Thanks for the terrainmap.com link. It reminded me of the work I used to do when it was fun to be a low paid Govt employee.

      --
      the good ground has been paved over by suicidal maniacs
  12. Wow! by harrylackapants · · Score: 1

    Never thought to use my Blender in such way... I know high speed rotation can generate such an effect, but never though to use a Blender for that... Back to the drawing board...

  13. Try GRASS!! by Anonymous Coward · · Score: 1, Informative

    check out GRASS , a free, open source GIS program.

    I've been doing quite a bit of work with it. it takes some time to figure out, but once you figure out how to import your data, making 3D topo and draping an image over it should not be impossible.

    i haven't needed this function, but i believe it should work well. also be sure to check out the NVIZ 3D visualization module in GRASS. this may also have the functions you need.

  14. Surfer by GISGEOLOGYGEEK · · Score: 1

    Check out Surfer, www.goldensoftware.com

    windows program, $600 roughly. Very good at making surfaces from DEM or other grid type data sources.

    You can overlay a raster just fine.

    You can automate the process with a fairly simple vba script system, that you also can access through ASP to make nifty websites. ... oh, and use Jump .. www.vividsolutions.com/jump/ as your GIS viewer. its easy to use unlike GRASS, comes with a nice user interface unlike GRASS, and is free.

    --
    George Bush + Linux = "I will not let information get in the way of the fight against Windows"
  15. possible source of conversion by Jim_Maryland · · Score: 1

    I don't know if this is a school, work, or a personal project but you could try one of the following.

    ESRI may be willing to give you a trial copy of their software for a 30 day (possibly longer if you can justify it) period. Their software uses FLEXlm (off a hostID on UNIX or a "dongle" key on MS Win32 platforms) and they can generate a temporary license. If this is school related or possibly a charity, they may give or greatly reduce the license cost. As for applications from them, you'll likely want their ArcScan product which can convert an image into vectors (capture contour lines) and ArcGIS or ArcInfo workstation to assign attributes (elevation) to the lines and ultimately convert to the other data format you require. They also have an extension called ArcScene that creates "fly throughs", but I've not worked with it myself to know what data formats it can export to (but I think I heard VRML before).

    If you have school connections, your Earth and Mineral Science (or where ever your Geography program falls under) may already have access to ESRI or another GIS vendors applications. You may see if you could find a GIS student to do the conversion for you.

  16. 3DEM by Anonymous Coward · · Score: 0

    I've done this a lot with 3DEM, which is a great but free (as in beer) program for windows. It takes a lot of different input formats, including, IIRC, raw bitmap. Or you might find a link to the conversion software you might need at www.gisdatadepot.com. (Like their name suggests, they also have data available for download, some free, some not.)

  17. Alright, let's keep this straight. by ahfoo · · Score: 1

    You ended up at the end doing a bit of preaching about the glory of GIS, and I think if you look back at my post you're not going to find me badmouthing GIS technology. As a matter of fact, I believe I was quite careful to close up my post by saying that I think satellite imagery is an excellent investment of government funds. So there's no need to preach to the choir as though they were a buncha sinners.
    You mentioned my point exactly if you'll permit to quote

    "they have become the industry standard (sort of the MS of the GIS community)."

    And this puts the hammer right on the head of the damn nail. All you got to do is let her drop.
    I know this I'm telegraphing this one for a mile and a yard, but why the hell does the US government need to take a taxpayer funded project and help to create the MS of the GIS community? If these guys are the MS of the GIS community then they should be the last ones getting subsidized with taxpayer dollars.
    I'm not sure I see the utility of that from my outsiders perspective. Perhaps only people in the "community" have the vision to see how that is in the best interest of the public.
    But hey, I'm not trying to be jerk about it. I just have a dramatic flair I find hard to tone down. It's not the end of the world although it is disturbing and I stick to my epithet of gross misdirection of government funds. But obviously there's hardly anybody intersted in GIS as the numbers in this thread show. It doesn't keep me up at night tossing and turning, but being a person of broad interests, I was definitely disappointed when I wanted to use the data in the National Dataset and found out what the restrictions were. I'm far from convinced that the best choice was made or that the advantages you elaborate were genuinely dependent upon that specific government/private "partnership." But what do I know?

    1. Re:Alright, let's keep this straight. by Jim_Maryland · · Score: 1

      Sorry for preaching about GIS. My main argument is that if you want to get your data to the masses, you publish it in a format that the masses can read. GIS data isn't generally the type of data that most people would be interested and the software development reflects that by being a higher cost. GIS software, namely the main stream market leaders, is quite expensive due to the fact that development cost is spread over a smaller number of sales.

      ESRI certainly has it's foot in the door of most agencies that are interested in producing geographic datasets, but they aren't the only ones. Intergraph, another major GIS vendor (I forget which position they are in for sales/installations), competes hard with ESRI to sell their software and also practices the same strategies of encouraging their format. Intergraphs GeoMedia software (maybe it was a different name before) started out on their own proprietery hardware called Clipper workstations which NIMA (NGA now) was locked into at one point. The parts all came from Intergraph and they controlled the pricing and had all sorts of political push from the representatives in Alabama .

      Until recently (say the last 5 years or so), the computing power to work with these national datasets was limited to a small community of agencies/companies. Consider the data format that an agency chooses to be akin to distributing a document as either MS Word format or Adobe PDF. If an agency provides the data, it has to be in some format and they typically choose one that reaches the broadest audience. That being said, there are organizations like Open GIS Consortium that are working to create open standards so that the smaller GIS vendors and the not so traditional GIS vendors can have access to data once reserved for the more powerful systems. A company called Ionic produces an application called Red Spider (NOTE: This software is very very expensive. We evaluated it and found while it impliments most Open GIS Consortium "OGC" specifications, we could never pass the cost on to our customers.) that allows for "Web Feature Service" or "WFS". An open source project that is attempting to impliment these specifications, and certainly not the only one, is GeoTools, but they are slow in development and not mature enough at this point for commercial deployments. WFS allows applications to request geographic data similar to other web service applications. Part of the problem with these open standards though is getting people to buy into them. Obviously vendors like ESRI, Intergraph, Microstation, etc... have lesser interest in promoting the open standards over their own product standards, but they are starting to do it.

      As far as restrictions on the datasets, I'm not entirely sure I follow you on that. The datasets are generally available for free (sometimes export controlled, but still free) and free viewers do exist. Granted that the free viewers are not always the best product for "high end" analysis, but they do at minimum allow for data viewing. One such tool from ESRI is called ArcExplorer (This link provides the location to download the viewer and an Interoperatability Extension) that is available for various platforms (MS Win32, Linux, UNIX, Mac) as it's Java based.

      I know there are other open source GIS analysis applications, but I haven't used them as my employers have had the ability to purchase the high end commercial software. If I recall correctly, a copy of the ArcView software was less than $1000 a couple years ago and the software was available on UNIX (Sun, SGI, and a few others) and MS Win32 systems (sorry, no Linux version that I'm aware of).

      I think I jumped around a bit on my above ramble so please forgive. I am coding/compiling and writing in between things. I guess I'm not sure if your disappointed a

    2. Re:Alright, let's keep this straight. by ahfoo · · Score: 1

      Well cool. I really appreciate all your info. You are clearly well in the GIS community. In fact, you even listed the reason I was looking at the dataset. I bought some land and I wanted to use the data to help in planning the building of a house. That's where I picked up the idea that ArcView was NT only because the free viewer definitely is. See, how that works? Sure they use Linux on the way expensive stuff, but when it comes to the casual user it's lock-in time.
      But I think the best analogy here is in the genome project. Consider this for a moment: both of these are literally mapping projects. That's not a metaphor, that's a fact. Both involve major government spending and the use of taxpayer money to fund extensive technical research. In the case of genomic and proteomic mapping though, there is a difference which was since the project was so massive, it was done internationally. In an international research program, open standards are the only choice.
      So, considering it in this light, I think that it's clear that a truly vast mapping project can be done using open formats. In fact, if the project is so big, it's a perfect time to create a new and open standard. It's not about complexity, it is about will. In the case of the national dataset there was no will.

    3. Re:Alright, let's keep this straight. by Jim_Maryland · · Score: 1
      I'm not sure of the exact dataset that your reviewing, but please do check out ArcExplorer from ESRI (the free multiple platform viewer) to see if it can work for you. Depending on the exact format of the dataset, you might be able to find some conversion scripts to move between formats. I recall someone writing some C code to convert several of the ESRI format into others, but I've never actually needed it myself so I don't know a website or codename to search on.

      Right now the most common "open standards" efforts seem to be more on the delivery side of web services rather than the underlying data format for the file system. I really think the industry is going with ESRI as the default format. Sort of odd that I'm generally against MS, but actually for ESRI given the monopolistic nature. Your post has given me something to think about. For a current project that I'm working on, we actually chose to work with Oracle Spatial as our repository rather than an ESRI product that performs a similar function. The only problem we forsee is that in the end, clients will use ESRI products and they have been developed to only work with their ArcSDE (Spatial Database Engine) product as "middleware" to a commercial database.

      FYI: Lately,the industry/agency trend has been to work with commercial products rather than creating their own custom software or data formats. My current employer provides a lot of IT solutions to various agencies and we see a shift from projects where we had to write millions of lines of code to projects where a commercial product is used and a much smaller amount of "wrapper" code is developed. The wrapper code is primarily to "glue" or integrate various COTS (Commercial Off The Shelf) products together. Companies/agencies have come to realize that "custom" solutions have a few draw backs that they can't afford today:

      cost - obviously custom is more expensive

      support - you can't get regular upgrades as you are likely the only user of "that" particular custom solution. COTS products have regular upgrade cycles and the time/money to upgrade a custom solution can be a pain.

      time - building a custom solution is expensive and timely. The decision to build a custom solution often involves much more planning, funding aquisition, development, and training.

      As for data formats, the same applies. Quite a few datasets are in open standards, but usually it's the major GIS vendors who can actually support reading those formats.

      I'm not sure which dataset in particular you are looking for, but if it's one for elevation like DTED or DEMS, these are not proprietary data formats. If your looking for a vector dataset representing man made features, check out the USGS DLG (Digital Line Graph) format (again, not a proprietary format). Usually you can find the documentation describing these file formats as a link off the download sites. Just a warning, the data formats can be quite complex (GIS datasets can represent some fairly complex "real world" features/relationships), but not impossible to work with if your comfortable with reading data structures.

      Another problem with an "open standard" is that a single standard doesn't necessarily satisfy all situations. NGA has many different open standard data formats that have lead to problems when trying to move to a single format. It all depends what your trying to capture. Picture a road for example. You might want to store attributes like:

      name

      width

      category - highway, secondary, dirt, etc...

      alt-name
      A military analyst will likely want to add things like:

      surface-material

      existence
      A police/fire/EMS person will want:

      response-zone

      speed-impedement

      speed-bump

      address-start-left

      address-end-left

      address-start-right

      address-end-right
      And to make it even more complex, try throwing in temporal attributes.

      created

      maintenance-date

      previous-("n")-mainenance-dates

      next-ma