How coulde my terrain look like this????

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
jl0206
Posts: 55
Joined: Mon Jun 07, 2004 4:56 am

How coulde my terrain look like this????

Post by jl0206 »

Thanks guys help ,now I can load heightmap in my program , but there is another problem :oops: . 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. :oops:
Last edited by jl0206 on Thu Jun 17, 2004 8:04 am, edited 1 time in total.
jl0206
Posts: 55
Joined: Mon Jun 07, 2004 4:56 am

Post by jl0206 »

Buy the way , if it isn't the problem of the camera , so how can I made my hill looks like real huge hill not like a little knap .
jl0206
Posts: 55
Joined: Mon Jun 07, 2004 4:56 am

Post by jl0206 »

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);
jl0206
Posts: 55
Joined: Mon Jun 07, 2004 4:56 am

Post by jl0206 »

Where can I ge the "KnightToFlight Terrain Renderer 0.0.2" , the download pages has it disable ,and the url "zenprogramming.tripod.com" I can'nt open . :cry: :cry: :cry:
tip
Posts: 50
Joined: Fri Feb 13, 2004 8:53 am
Location: grenoble, France
Contact:

Post by tip »

you might try to scale the Y axis or your SceneNode with

q3node3->setScale(vector3df(1.0f, 30.0f, 1.0f));
Peter Müller
Posts: 292
Joined: Sun Mar 14, 2004 5:28 pm
Location: Germany
Contact:

Post by Peter Müller »

tip wrote:you might try to scale the Y axis or your SceneNode with
q3node3->setScale(vector3df(1.0f, 30.0f, 1.0f));
I think, this is too little. Better 100.0f, 3000.0f, 100.0f, else the terrain is too small.
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
jl0206
Posts: 55
Joined: Mon Jun 07, 2004 4:56 am

Post by jl0206 »

Thanks every one .
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post by knightoflight »

- 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
jl0206
Posts: 55
Joined: Mon Jun 07, 2004 4:56 am

Post by jl0206 »

OK . I'm in China , so maybe I cann't reach it ,because I donn't have the passport.
I'm sorry for spell your name wrong .
Post Reply