Skip to main content

History: MOGRE Installation

Preview of version: 7

Todo on this page:

  • update to current Mogre release
  • update depencies + links (thread)
  • differentiation of depencies for using release and debug library


(with explanation what of is the difference)


Maybe merge or remove them?

--Beauty


Download and Installation

Download and install the latest prebuilt SDK from MOGRE 1.4.6 SDK installer

(for previous releases use MOGRE SourceForge file releases)

MOGRE is built using Visual Studio 8 SP1, so it requires the VC SP1 libraries. You either have to install the SP1 for your IDE (Visual Studio, Visual C# Express, etc.) or just install the SP1 vcredist_x86.

Notes:

  • If you install only vcredist_x86, you'll be able to use only the Release binaries of Mogre. Read this post for information on how to get the debug binaries working on your development machine)
  • If you decide for Visual Studio SP1: Install the SP1 of version 2005 even if you use Visual Studio 2008
  • To use the Direct3D9-Renderer you need to install the DirectX Redistributables from November 2007 or newer


MOGRE comes with several new files compared to the original OGRE:

  • \bin\debug\Mogre.dll and \bin\release\Mogre.dll - main DLLs for MOGRE
  • \bin\debug\MogreNewt.dll and \bin\release\MogreNewt.dll - DLLs for MogreNewt physics engine
  • \Mogre-Samples\ - Sample files for running MOGRE (includes ExampleApplication)

A good summary what to do is in this article.

A very useful detailed tutorial how to setup: Mogre Basic Tutorial 0

Updating

  • Don't forget to copy the new DLLs to your output directory (bin\release or bin\debug), otherwise you will get some strange exceptions!
  • Maybe you also need to update bin\debug\Plugins.cfg (if the file name of some refered debug libraries changed).

Running Sample Applications


MOGRE comes with some sample applications

  • Fresnel - pool with water and fishes (port of OGRE's Fresnel demo)
  • MogreForm - simple app demonstrating how to render on a Windows Form
  • SkeletalAnimation - ten walking robots (port of OGRE's older SkeletalAnimation demo)
  • VB.NET SkeletalAnimation - The SkeletalAnimation demo ported to VB.NET
  • Gui - uses OgreDotNet's CEGUI bindings for a GUI sample (port of OGRE's Gui demo)
  • Dot3Bump - port of Ogre's Dot3Bump demo
  • (NOTE: ExampleApplication is the base DLL for the other samples)

  1. Open \OgreSDK\Mogre-Samples\Samples.sln
  2. Batch build all the samples. The sample executables are copied to \OgreSDK\bin\debug\ or \OgreSDK\bin\release\
  3. Either execute the samples directly from the \OgreSDK\bin\ folders or if you want to run a sample through Visual Studio:
    1. Open the Properties page of the sample project
    2. View the Debug tab
    3. Select Start external program and enter the path of the sample executable (e.g. C:\OgreSDK\bin\debug\Mogre.Demo.Fresnel.exe)
    4. Enter the folder path in the Working directory (e.g. C:\OgreSDK\bin\debug\)
    5. Select Set as StartUp Project
    6. Start compiling!

Setup MOGRE for own application

  1. Create new solution as "console application"
  2. Add reference to Mogre.dll of \OgreSDK\bin\ (release\ or debug\)
  3. OPTIONAL: Beginners may also add Mogre.Demo.ExampleApplication.dll and access it via using Mogre.Demo.ExampleApplication;
  4. Open the Properties page of your application's project
  5. View the Build Events tab
  6. In the Post-build event command line enter:
Copy to clipboard
copy "$(TargetPath)" "%OGRE_HOME%\bin\$(ConfigurationName)"
  1. To run your application do step 3 of Running Sample Applications
  2. OPTIONAL: If you don't want to conflict project specific files (e.g. plugins.cfg) with other projects, set the Working directory to something different and put the files there

History

Information Version
Mon 01 of Aug, 2011 00:07 GMT-0000 jacmoe 16
Wed 30 of Jun, 2010 14:15 GMT-0000 jacmoe 15
Wed 30 of Dec, 2009 07:09 GMT-0000 jacmoe 14
Tue 22 of Dec, 2009 18:00 GMT-0000 jacmoe 13
Tue 22 of Dec, 2009 17:36 GMT-0000 jacmoe 12
Tue 22 of Dec, 2009 17:35 GMT-0000 jacmoe 11
Tue 22 of Dec, 2009 17:34 GMT-0000 jacmoe 10
Tue 22 of Dec, 2009 17:32 GMT-0000 jacmoe 9
Tue 22 of Dec, 2009 17:31 GMT-0000 jacmoe 8
Tue 22 of Dec, 2009 17:30 GMT-0000 jacmoe 7
Tue 22 of Dec, 2009 17:29 GMT-0000 jacmoe 6
Tue 22 of Dec, 2009 17:25 GMT-0000 jacmoe 5
Tue 22 of Dec, 2009 17:23 GMT-0000 jacmoe 4
Sat 19 of Dec, 2009 11:38 GMT-0000 jacmoe 3
Sat 19 of Dec, 2009 11:37 GMT-0000 jacmoe 2
Mon 16 of Nov, 2009 17:26 GMT-0000 Beauty 1