Page 1 of 1

flat terrain

Posted: Sun Jan 02, 2005 4:19 pm
by ManTis
Is there any way to create outdoors terrain in Irrlicht? If so, how should i do it?

yes

Posted: Sun Jan 02, 2005 4:40 pm
by Munku
Check out the ITerrainSceneNode, and hillnode, however, it is in alpha or beta...

Posted: Sun Jan 02, 2005 5:20 pm
by ManTis
hmmm... i've created thing like this:

ITerrainSceneNode *terrain = smgr->addTerrainSceneNode(0, 0,driver->createImageFromFile("ground07.jpg"), driver->createImageFromFile("heightmap.bmp"), 0,dimension2d<f32>(10.0f,10.0f),1);


but it doesn't seem to work. what should i do with ID of camera (2nd attribute)? i have set camera to FPS using:

smgr->addCameraSceneNodeFPS();

update: by 'doesn't seem to work' i mean: it compiles, but i can't see any effect on screen

Posted: Sun Jan 02, 2005 5:42 pm
by ManTis
oh it works Oo dunno why :P

thanks anyway ;)