Creating my heightmap!
-
- Posts: 122
- Joined: Sun May 25, 2008 11:14 pm
- Location: Scotland
- Contact:
Creating my heightmap!
Hey!
I am trying to create some form of terrain for my game. It needs to be a level plain with a single fairly wide valley through the middle of it. I want each side of the valley to be nearly vertical.
I have tried creating several heightmaps to no success - usually most bear no resemblance to what i want, or dont display, or display a flat level ?!
E.g
If somebody could draw me it, or explain exactly how to do it thta would be awesome - i have tried using Hme but its so incredibly simple I dont see how I am going wrong.
Thanks very much in advance,
Andy[/img]
I am trying to create some form of terrain for my game. It needs to be a level plain with a single fairly wide valley through the middle of it. I want each side of the valley to be nearly vertical.
I have tried creating several heightmaps to no success - usually most bear no resemblance to what i want, or dont display, or display a flat level ?!
E.g
If somebody could draw me it, or explain exactly how to do it thta would be awesome - i have tried using Hme but its so incredibly simple I dont see how I am going wrong.
Thanks very much in advance,
Andy[/img]
A good $600 dollar choice.Mirror wrote:photoshop is a good choice too ( for creating terrains ) ->filters->cloud
http://www.google.com/search?hl=en&q=pe ... tnG=Search
For simple filters and good enough editing tools I would recommend Paint .NET ( http://www.getpaint.net/ ) -- it is freeware.
P.S.: It has Clouds filter and many more useful features.
P.S.: It has Clouds filter and many more useful features.
I would recommend you using GIMP:
I comes with a couple of extensions that you can use as a base which you can modify to get your desired terrain. The two lower left and upper right ones:
Those extensions can be found in the GIMP main windows under: "Xtns->Pattern->Land", "Xtns->Pattern->FlatLand" and ""Xtns->Pattern->Land"
I comes with a couple of extensions that you can use as a base which you can modify to get your desired terrain. The two lower left and upper right ones:
Those extensions can be found in the GIMP main windows under: "Xtns->Pattern->Land", "Xtns->Pattern->FlatLand" and ""Xtns->Pattern->Land"
-
- Posts: 122
- Joined: Sun May 25, 2008 11:14 pm
- Location: Scotland
- Contact:
-
- Posts: 122
- Joined: Sun May 25, 2008 11:14 pm
- Location: Scotland
- Contact:
-
- Posts: 122
- Joined: Sun May 25, 2008 11:14 pm
- Location: Scotland
- Contact:
I tried this :
However it doesnt display anything - no errors - do I need to do something with the IAnimatedMesh object before it shows?
Thanks
Andy
Code: Select all
IAnimatedMesh* terrain = smgr->addTerrainMesh("Main_Ground",driver->createImageFromFile("C:/irrlicht-1.4/irrlicht-1.4/media/terrain-texture.jpg"),driver->createImageFromFile("C:/Users/Andy/Documents/Valley Attack/heightMaps/trial.bmp"),core::dimension2d< f32 >(10.0f, 10.0f),200.0f,core::dimension2d< s32 >(64, 64));
Thanks
Andy
yes you have to ad a IAnimatedMeshSceneNode to go with that IAnimatedMesh...
that should dysplay your mesh
best regards
Code: Select all
smgr->addAnimatedMeshSceneNode(terrain);
best regards
-
- Posts: 122
- Joined: Sun May 25, 2008 11:14 pm
- Location: Scotland
- Contact:
ok.. one thing to note is that the heightmap u are providing(im talking about the one above) will look like a big prism with 2 holes/valeys inside... so u wont see anything... a heightmap should have... black in the lower parts and white on the higher parts... passing by gray inbetween...
about the texture... im guessing it will only put the texture on the faces u are suposed to see the texture... in this case... the top of the prism and inside the 2 wholes.. also... u need to disable lights or put some lights in the scene to see something...
best regards
about the texture... im guessing it will only put the texture on the faces u are suposed to see the texture... in this case... the top of the prism and inside the 2 wholes.. also... u need to disable lights or put some lights in the scene to see something...
best regards
-
- Posts: 122
- Joined: Sun May 25, 2008 11:14 pm
- Location: Scotland
- Contact:
Radient thanks for your extended support.
I cannot seem to create the correct heightmap having tried multiple times - they just dont appear how I would have thought - even using the cloud feature of Paint.NET I dont know how to edit it, without completly ruining it.
Can you provide an example which is fairly narrow about 200 wide and 600 long with a valley running through the middle, i.e a lower section.
As for the lights :
how do i set one
I cannot seem to create the correct heightmap having tried multiple times - they just dont appear how I would have thought - even using the cloud feature of Paint.NET I dont know how to edit it, without completly ruining it.
Can you provide an example which is fairly narrow about 200 wide and 600 long with a valley running through the middle, i.e a lower section.
As for the lights :
how do i set one