Editing Terrain in Irrlicht.

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Thulsa Doom
Posts: 63
Joined: Thu Aug 05, 2004 9:40 am
Location: Germany

Post by Thulsa Doom »

Mireneye thanX for the links these are VERY interesting...

But there's still some problems with the getMesh() that drives my crazy.
There's the first:

Attempt one:

Code: Select all

video::IImage*
      img = drvr->createImageFromFile("Resource/greyscale_64_64.bmp");

scene::IAnimatedMesh*
   amesh = smgr->addTerrainMesh (   "greyscale_64_64.msh",   
                                 img, 
                                 img, 
                                 core::dimension2d< f32 >(1.0f, 1.0f),         
                                 255.0f,                                  
                                 core::dimension2d< s32 >(16, 16)            
                              );

amesh->getMesh(0);
Attempt two:

Code: Select all

ITerrainSceneNode->getMesh()
Can you confirm that both meshes returned by 'getMesh' whether are scaled or not?
E.G. use getBoundingBox() method.
Post Reply