1 / 10

OGRE 3D

OGRE 3D. OGRE Design. Use of design patterns Observer Singleton Iterator Visitor Façade Factory Screen Graph decoupled from Scene Contents. OGRE Design. Plug-in Architecture Everything is a plug-in Co-operating components No re-building of the library required

gezana
Download Presentation

OGRE 3D

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. 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

More Related