1 / 5

Overview of Ogre Basic Tutorials 2, 4, and Unbuffered Input

Overview of Ogre Basic Tutorials 2, 4, and Unbuffered Input. By: Chad Adams & Nathan Griffin. Tutorial 2. Loading a Ninja mesh Creating a textured floor Create lights Basic unbuffered input Set shadow cast https://www.cse.unr.edu/~sushil/class/381/tutorials/movies/OgreBasicTutorial2.mp4.

butcher
Download Presentation

Overview of Ogre Basic Tutorials 2, 4, and Unbuffered Input

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Overview of Ogre Basic Tutorials 2, 4, and Unbuffered Input By: Chad Adams & Nathan Griffin

  2. Tutorial 2 • Loading a Ninja mesh • Creating a textured floor • Create lights • Basic unbuffered input • Set shadow cast • https://www.cse.unr.edu/~sushil/class/381/tutorials/movies/OgreBasicTutorial2.mp4

  3. Tutorial 4 • Create an entity to move • Unbuffered input handling • https://www.cse.unr.edu/~sushil/class/381/tutorials/movies/OgreBasicTutorial4.mp4

  4. Basic Unbuffered Input Use // Moving the Ninja Ogre::Vector3 dirVec = Ogre::Vector3::ZERO; if (mKeyboard->isKeyDown(OIS::KC_I)) dirVec.z -= move; if (mKeyboard->isKeyDown(OIS::KC_J)) { if (mKeyboard->isKeyDown(OIS::KC_LSHIFT)) mSceneMgr->getSceneNode("NinjaNode")->yaw(Ogre::Degree(5 * rotate)); else dirVec.x -= move; }

  5. Input Toggle Timers // Second toggle method toggleTimer -= fe.timeSinceLastFrame; if ((toggleTimer < 0) && mMouse->getMouseState().buttonDown(OIS::MB_Right)) { toggleTimer = .5; Ogre::Light* light = mSceneMgr->getLight("PointLight"); light->setVisible(!light->isVisible()); }

More Related