MarkusR Posted January 28, 2015 Share Posted January 28, 2015 why did the min height not allowed negative values? can not make a hole in my current level for the new water plane. Quote PC : Win 10 Pro 64 Bit , 4x cores ~2 GHz , 8 GB RAM , AMD R7 265 2D : Photoline , Zooner Photo Studio 13 , Art Rage Studio 3.5.4 , Ashampoo Snap 7 , ... 3D : Shade 15 Basic , Carrara 8.5 & DAZ Studio 4.8 , Cheetah 3D 6.3.2 , Via Cad 8 Music : Samplitude Music Studio , Music Creator 7 IDE : Leadwerks Engine 3.x , Unity 5.x , (Unreal 4.8.x) , AGK v2.x , Construct 2 , (Clickteam Fusion 2.5) , ShiVa 1.9 , Game Maker Studio , MS Visual Studio .Net , Android Studio , Monkey , ... Link to comment Share on other sites More sharing options...
Olby Posted January 28, 2015 Share Posted January 28, 2015 Because the terrain heightmap is a gray scale image ranging from 0 (black) to 255 (white). 0 is the lowest height level therefore you cant go in reverse (lower than that). The only thing you can suggest is an initial height setting which would put the ground at 127 (middle height) for instance. This way you can sculpt both up and down from the initial height. Quote Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64) Link to comment Share on other sites More sharing options...
MarkusR Posted January 28, 2015 Author Share Posted January 28, 2015 hmm ok, i had expected a heightmap is only used to create the initial mesh. i think i can export the heightmap image, change it and import it again, then pull the scene up. Quote PC : Win 10 Pro 64 Bit , 4x cores ~2 GHz , 8 GB RAM , AMD R7 265 2D : Photoline , Zooner Photo Studio 13 , Art Rage Studio 3.5.4 , Ashampoo Snap 7 , ... 3D : Shade 15 Basic , Carrara 8.5 & DAZ Studio 4.8 , Cheetah 3D 6.3.2 , Via Cad 8 Music : Samplitude Music Studio , Music Creator 7 IDE : Leadwerks Engine 3.x , Unity 5.x , (Unreal 4.8.x) , AGK v2.x , Construct 2 , (Clickteam Fusion 2.5) , ShiVa 1.9 , Game Maker Studio , MS Visual Studio .Net , Android Studio , Monkey , ... Link to comment Share on other sites More sharing options...
Olby Posted January 28, 2015 Share Posted January 28, 2015 I would create a mid-tone (127 gray) bitmap and always import it before starting a new terrain. 2 Quote Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64) Link to comment Share on other sites More sharing options...
MarkusR Posted January 28, 2015 Author Share Posted January 28, 2015 hm, i can load this raw file into my graphics app but the raw save file i can not load back into engine... also seems bmp is not supported at import. because 8bit only. Quote PC : Win 10 Pro 64 Bit , 4x cores ~2 GHz , 8 GB RAM , AMD R7 265 2D : Photoline , Zooner Photo Studio 13 , Art Rage Studio 3.5.4 , Ashampoo Snap 7 , ... 3D : Shade 15 Basic , Carrara 8.5 & DAZ Studio 4.8 , Cheetah 3D 6.3.2 , Via Cad 8 Music : Samplitude Music Studio , Music Creator 7 IDE : Leadwerks Engine 3.x , Unity 5.x , (Unreal 4.8.x) , AGK v2.x , Construct 2 , (Clickteam Fusion 2.5) , ShiVa 1.9 , Game Maker Studio , MS Visual Studio .Net , Android Studio , Monkey , ... Link to comment Share on other sites More sharing options...
gamecreator Posted January 28, 2015 Share Posted January 28, 2015 Been there done that. http://www.leadwerks.com/werkspace/topic/9957-raw-heightmap/ On rereading your post, I'm not sure if the above will help you. But do make sure you imported it into your graphics program correctly. Quote Link to comment Share on other sites More sharing options...
MarkusR Posted January 28, 2015 Author Share Posted January 28, 2015 @gamecreator,in photoline it looks good, i made it brighter there but the raw export there is more a camera format. Quote PC : Win 10 Pro 64 Bit , 4x cores ~2 GHz , 8 GB RAM , AMD R7 265 2D : Photoline , Zooner Photo Studio 13 , Art Rage Studio 3.5.4 , Ashampoo Snap 7 , ... 3D : Shade 15 Basic , Carrara 8.5 & DAZ Studio 4.8 , Cheetah 3D 6.3.2 , Via Cad 8 Music : Samplitude Music Studio , Music Creator 7 IDE : Leadwerks Engine 3.x , Unity 5.x , (Unreal 4.8.x) , AGK v2.x , Construct 2 , (Clickteam Fusion 2.5) , ShiVa 1.9 , Game Maker Studio , MS Visual Studio .Net , Android Studio , Monkey , ... Link to comment Share on other sites More sharing options...
gamecreator Posted January 28, 2015 Share Posted January 28, 2015 You may want to give another program a try, like Gimp. Maybe XnView does it too. I'm also happy to convert it for you after work if you want to PM me an image file. One thing you can also check is to make sure the raw file from Leadwerks matches the size of the one from your program. It should be the same exactly. Quote Link to comment Share on other sites More sharing options...
MarkusR Posted January 30, 2015 Author Share Posted January 30, 2015 @gamecreator, thanks for your offer. i wrote a simple converter for level up my map. (source code in monkey) Import mojo Import brl Import brl.FileSystem Function Main:Int() Local f:FileStream Local f2:FileStream f=FileStream.Open("monkey://data/hmap.r16", "r" ) f2=FileStream.Open("monkey://internal/hmout.r16", "w" ) Print f.Length() Local short:Int While Not f.Eof() short=f.ReadShort() short=short+1024 f2.WriteShort( short ) Wend f.Close() f2.Close() Return 1 End Quote PC : Win 10 Pro 64 Bit , 4x cores ~2 GHz , 8 GB RAM , AMD R7 265 2D : Photoline , Zooner Photo Studio 13 , Art Rage Studio 3.5.4 , Ashampoo Snap 7 , ... 3D : Shade 15 Basic , Carrara 8.5 & DAZ Studio 4.8 , Cheetah 3D 6.3.2 , Via Cad 8 Music : Samplitude Music Studio , Music Creator 7 IDE : Leadwerks Engine 3.x , Unity 5.x , (Unreal 4.8.x) , AGK v2.x , Construct 2 , (Clickteam Fusion 2.5) , ShiVa 1.9 , Game Maker Studio , MS Visual Studio .Net , Android Studio , Monkey , ... Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.