How coulde my terrain look like this????
How coulde my terrain look like this????
Thanks guys help ,now I can load heightmap in my program , but there is another problem
. Every mountain is so little , I download them ,and in other progams they seems huge . So , I think if there is something wrong with my camera , can I modify it to let the hill looks big. 
Last edited by jl0206 on Thu Jun 17, 2004 8:04 am, edited 1 time in total.
I don't have a web site , so I cann't upload my screenshot , bu I write my code here :
video::IImage* heightmap1 = 0;
heightmap1=driver->createImageFromFile("textures\\ffff.bmp");
video::IImage* texture1 = 0;
texture1=driver->createImageFromFile("textures\\d.bmp");
scene::IAnimatedMesh* terr1 = smgr->addTerrainMesh ("1",texture1,heightmap1,core::dimension2d<f32>(90.0f, 90.0f),200.0f );
scene::ISceneNode* q3node3 = 0;
q3node3 = smgr->addMeshSceneNode(terr1->getMesh(0));
q3node3->setPosition(core::vector3df(-1900.0f,-44.7f,-1800.0f));
q3node3->setMaterialFlag(video::EMF_LIGHTING, false);
video::IImage* heightmap1 = 0;
heightmap1=driver->createImageFromFile("textures\\ffff.bmp");
video::IImage* texture1 = 0;
texture1=driver->createImageFromFile("textures\\d.bmp");
scene::IAnimatedMesh* terr1 = smgr->addTerrainMesh ("1",texture1,heightmap1,core::dimension2d<f32>(90.0f, 90.0f),200.0f );
scene::ISceneNode* q3node3 = 0;
q3node3 = smgr->addMeshSceneNode(terr1->getMesh(0));
q3node3->setPosition(core::vector3df(-1900.0f,-44.7f,-1800.0f));
q3node3->setMaterialFlag(video::EMF_LIGHTING, false);
-
Peter Müller
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
I think, this is too little. Better 100.0f, 3000.0f, 100.0f, else the terrain is too small.tip wrote:you might try to scale the Y axis or your SceneNode with
q3node3->setScale(vector3df(1.0f, 30.0f, 1.0f));
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
-
knightoflight
- Posts: 199
- Joined: Sun Aug 24, 2003 5:47 pm
- Location: Germany
- the side http://zenprogramming.tripod.com is reachable
- my avatarname here in forum is knightoflight not knighttoflight...
- you dont have to resize the terrain after creating, cause you have an own parameter in addterrainmesh:
...
maxHeight: Defines how height a white pixel on the heighmap is.
...
you set it to 200.0, set it higher
- my avatarname here in forum is knightoflight not knighttoflight...
- you dont have to resize the terrain after creating, cause you have an own parameter in addterrainmesh:
...
maxHeight: Defines how height a white pixel on the heighmap is.
...
you set it to 200.0, set it higher