DispGen "Unable to open heightmap image"

EArkham

Necromancer
aa
Aug 14, 2009
1,625
2,774
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?
 

Blade x64

Logical insanity
aa
Sep 3, 2009
239
633
Works for me, it'll process any accepted image format I throw at it. There could be something preventing it from accessing any files.
twilight.JPG
 

EArkham

Necromancer
aa
Aug 14, 2009
1,625
2,774
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?
 

EArkham

Necromancer
aa
Aug 14, 2009
1,625
2,774
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.
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
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)
 

Blade x64

Logical insanity
aa
Sep 3, 2009
239
633
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.