I have done the following:
Note:
Ogre::Entity * floor;
Code: Select all
Ogre::Plane plane(Ogre::Vector3::UNIT_Y, 0); // Normal is the y-axis
Ogre::MeshManager::getSingleton().createPlane("floor", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, plane, 6000, 6000, 20, 20, true, 1, 5, 5, Ogre::Vector3::UNIT_Z);
floor = mSceneMgr->createEntity("floorEntity", "floor");
floor->setCastShadows(false);
floor->setMaterialName("Ocean");
mSceneMgr->getRootSceneNode()->createChildSceneNode()->attachObject(floor);
What am I doing wrong?