Code: Select all
windowX = 1024;
windowY = 768;
device = createDevice(EDT_OPENGL,
dimension2d<u32>(windowX, windowY), 16, false, false, false, &receiver);
smgr = device->getSceneManager();
driver = device->getVideoDriver();Pretty much verbatim from the Terrain tutorial, but this is where the issue starts. This doesn't seem to actually make a Terrain Scene Node called terrain, because next I do:ITerrainSceneNode* terrain = smgr->addTerrainSceneNode(
"heightmap.jpg",0, // parent node
-1, // node id
core::vector3df(0.f, -1200.f, 0.f),// position
core::vector3df(0.f, 0.f, 0.f), // rotation
core::vector3df(40.f, 4.4f, 40.f), // scale
video::SColor ( 255, 255, 255, 255 ), // vertexColor
5, // maxLOD
scene::ETPS_17, // patchSize
4 // smoothFactor
);
Code: Select all
terrain->setMaterialFlag(video::EMF_LIGHTING, false);It happily performs addSkyBoxSceneNode and adding a camera a bit later if I comment out the terrain, but then it does the same thing with an Animated Mesh Scene Node I have after that.
Anyone have any idea why these nodes apparently don't exist? I'm currently on Win7 compiling with the MinGW implementation of GCC, if that makes a difference.
