DispGen "Unable to open heightmap image"

Discussion in 'Mapping Questions & Discussion' started by EArkham, Mar 31, 2012.

  1. EArkham

    aa EArkham Necromancer

    Messages:
    1,555
    Positive Ratings:
    2,158
    Okay, this is seriously ticking me off.

    I'm trying to use DispGen to create some terrain. Every tutorial and example simply says "load up the heightmap in bmp, tif, tga, or png" and off you go.

    Yet I can not get DispGen to recognize ANY heightmap image I put into it, no matter the format. It says "Unable to open heightmap image" and stops. This happens with bmp, tga, tif, jpg, and gif, no matter what mode they're in (RGB or greyscale), bits per channel (8 or 16), or size (512 or 1024). I can't even get it to open pgm files. I just spent a couple of hours trying as many different combinations as I could.

    Using the latest version from Cannonfodder's site.

    The only thing I can find on google about it is a post I made a couple of years ago running into the same problem. I ended up using Twister back then, but I can't in this case due to stretching.

    Any ideas? Does this program actually work for anyone else?
     
  2. Blade x64

    aa Blade x64 Logical insanity

    Messages:
    199
    Positive Ratings:
    441
    Works for me, it'll process any accepted image format I throw at it. There could be something preventing it from accessing any files.
    [​IMG]
     
    • Thanks Thanks x 1
  3. EArkham

    aa EArkham Necromancer

    Messages:
    1,555
    Positive Ratings:
    2,158
    Rebooted in safe mode, gave DispGen all permissions, restarted. Still can't open any heightmaps. :\

    Any ideas what could be blocking its access to files, if that is the problem?
     
  4. EArkham

    aa EArkham Necromancer

    Messages:
    1,555
    Positive Ratings:
    2,158
    Follow up: Finally just had to use Process Monitor to find out what DispGen was choking on, and apparently the path to the file was too long. It simply truncated the path and that's why it couldn't load anything. :|

    Coders, just ...don't do that. There's no reason with modern operating systems. Or if you feel you must do it, at least give a usable warning popup showing what path it's trying to look for.
     
  5. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,739
    Why do you want to use it?

    I personally can't imagine a situation where the placements of displacements could be allowed to be as imprecise as those generated by an automatic tool. (Why I can't ever see twister being useful)
     
  6. Blade x64

    aa Blade x64 Logical insanity

    Messages:
    199
    Positive Ratings:
    441
    It's pretty handy when you want to make a landscape of a real-world location, as shown in this tutorial. It can also be used to paint an image via alpha blend.