View Full Version : Visitor crash when loading heghtmap
DieAngel
Oct 24 2007, 03:09
I made my 16 bits png file for the heightmap but when i try to lad it , visitor silently crash.
Opteryx
Oct 24 2007, 03:30
-edit-
What program did you export it from last?
DieAngel
Oct 24 2007, 04:02
corrected
yeah as Opteryx said what program did you export it from and how does your terrain.pbl look like?
-V
DieAngel
Oct 24 2007, 20:00
i used photoshop to make the png file, here is my pbl:
class cfg
{
PNGfilename="terrain.png";
squareSize=20.000000;
originX=0;
originY=0;
minHeight=-07.420013;
maxHeight=2710.000000;
};
2710 is to fit with the real life highest point of my heightmap
Opteryx
Oct 24 2007, 20:24
Yeah, as far as I've seen PS does something weird to the png's so you might have to open it up in Wilbur then save it as 16 bit png there. This however might corrupt/pixelate your heightmap some.
Also does your heightmap dimensions correlate with your Terrain Grid size? Usually PS saved heightmaps doesn't crash V3, but compress them 50% horizontally.
If anybody knows how to save/export a png from PS and use it straight into Visitor I'd like to hear it, I certainly haven't been able to do so yet.
plumose 219
Oct 24 2007, 22:24
Yeah, as far as I've seen PS does something weird to the png's so you might have to open it up in Wilbur then save it as 16 bit png there. This however might corrupt/pixelate your heightmap some.
Also does your heightmap dimensions correlate with your Terrain Grid size? Usually PS saved heightmaps doesn't crash V3, but compress them 50% horizontally.
If anybody knows how to save/export a png from PS and use it straight into Visitor I'd like to hear it, I certainly haven't been able to do so yet.
you must save your ps ,png ,in gray scale,even thougth it is in gray it self .go to{ image /mode/grayscale,it will say discard color if this is not done it will push your map to one side in v3. hope that helps http://forums.bistudio.com/oldsmileys/smile_o.gif
DieAngel
Oct 24 2007, 22:54
thanks a passage in wilbur solved it yay http://forums.bistudio.com/oldsmileys/smile_o.gif
Opteryx
Oct 24 2007, 23:18
you must save your ps ,png ,in gray scale,even thougth it is in gray it self .go to{ image /mode/grayscale,it will say discard color if this is not done it will push your map to one side in v3. hope that helps http://forums.bistudio.com/oldsmileys/smile_o.gif
Yeah I've tried that, but as I said my png gets compressed by 50 % horizontally. It's a real shame because PS is a good height map editor in some respects.
-edit-
Buuuut now it doesn't any more apparently... http://forums.bistudio.com/oldsmileys/crazy_o.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.