ogre 3d n.
Skip this Video
Loading SlideShow in 5 Seconds..
OGRE 3D PowerPoint Presentation
play fullscreen
1 / 10
Download Presentation

OGRE 3D - PowerPoint PPT Presentation

gezana
173 Views
Download Presentation

OGRE 3D

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. OGRE 3D

  2. OGRE Design Use of design patterns Observer Singleton Iterator Visitor Façade Factory Screen Graph decoupled from Scene Contents

  3. OGRE Design Plug-in Architecture Everything is a plug-in Co-operating components No re-building of the library required “this is what I am called” – “this is what sort of resource I am here to handle” RUN-TIME LOADING

  4. OGRE Design Render Queue Architecture Standard render order for game engines is fixed Terrain,movable,effects,overlays,background, skyboxes Ogre render order uses queues and is prioritized Material usage Uses powerful scripting Allows many rendering passes Automatic fallback design – Ogre will render as required for multi-textures dependent on your hardware No re-building of the library required “this is what I am called” – “this is what sort of resource I am here to handle” RUN-TIME LOADING

  5. OGRE Design Animation Flexibility 3 types supported Skeletal, morph or pose Compositor Framework 2D full-screen post processing

  6. OGRE First Steps Root REQUIRED FOR ALL OGRE PROGRAMS Allows initialization of config files plugins.cnf Define plugin folder and plugins Render_System_Direct3D9 is example of one ogre.cnf Allows settings of plugins in name=value pairs ogre.log Provides dignostics and exception logging Can be disk file, network or ignored

  7. OGRE Render Window “initialise” method root->initialise(true, “My Render Window”);RenderWindow *window = root->getAutoCreatedWindow();(will go and ask user to input in config dialog) Add the viewport to the windowViewport *vp= window->addViewport(camera);

  8. OGRE Making a Camera Camera *cam = sceneMgr->createCamera(“MainCamera”); cam->setNearClipDistance(5);cam->setFarClipDistance(1000);cam->setAspectRatio(Real(1.333333));for 4:3 non-hd displayratio of far and near should be 1000 or less

  9. OGRE Render Loop root->startRendering();causes Ogre to loop endlessly rendering whatever content in your scene. MAKE SURE THAT “framelisteners” are started before this!!!!

  10. The MAIN LINKS OGRE3D Web Site Projects using OGRE OGRE Wiki