flat terrain
flat terrain
Is there any way to create outdoors terrain in Irrlicht? If so, how should i do it?
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
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