OGRE you ready to create Universal projects?

Sign in to queue


Michael H.C. Cummings is back with an outstanding getting started guide on creating Universal apps/games with OGRE. He walks you through every step, from getting the OGRE source, building it, creating the Universal projects to the final build and run...

Here's a couple times we've previously highlighted OGRE;

Getting Started Guide using OGRE 3D and Universal Projects

OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilizing hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes. In recent releases, OGRE has added support for Windows 8.1 and Windows Phone 8.1. Since the support is fairly new, getting OGRE ready for building games for these platforms can be a little tricksy, this guide is intended to reduce the friction of getting a game started using OGRE.

By following this guide, which is very similar to another post I did on OGRE, you will be able to start building your next game targeting Windows and Windows Phone 8.1 devices. The best method for using OGRE is to build it from source and then build your projects on top of that build. A primary benefit of compiling from source is that you can keep updated with the latest bug fixes. This also allows you to step into the OGRE source while debugging, if you need to, in order to solve the trickier rendering problems.

Getting Ready

As this guide is targeting Windows and Windows Phone 8.1, you’ll need to have a working installation of Windows 8.1 and Visual Studio 2013. If you are using the Express editions of Visual Studio, make sure you are using the Visual Studio Express for Windows, and not Visual Studio Express for Windows Desktop.

To get started you’ll need to have a couple of additional pieces of software installed. These will allow you to download and configure the OGRE source tree for compilation. Use the links below to download and install the additional software.


Note, instead of Express, you should also be able to use Community, Visual Studio 2013 Community - "Professional" development for free*


Test Your Builds

Now that you have gone through all this effort, lets make sure that the Samples run correctly. If you have the Windows 8.1 solution still open, tab over to it, otherwise open it back up again. What? You thought we were done?

In the Solution Explorer tool window, find the SampleBrowser, it should be at the bottom, Right-Click it and select Set as Startup Project. You should now be able to run the samples by clicking the button.

Follow the same steps above for the Windows Phone solution. The samples will run in the Windows Phone emulator.


Creating a Universal Test Application

What a long trek! I hope you haven't given up yet, we are nearing the end, and at last we are at a point where we can begin to use the Universal App templates in Visual Studio 2013.

The first step is to open a new instance of Visual Studio 2013. Then create a new project based on the DirectX Windows Store App project template....


Build & Run

Make sure you made the changes correctly, build the project, you can now run the app and bask in the glory that is OGRE!


Wrapping it up

In this article we accomplished the goal of getting a sample application configured to use the OGRE library to render a model on the screen in a Universal Windows Store App. To accomplish this amazing feat we had to first compile the OGRE dependencies, then compile OGRE itself. Finally we created an App to display the OGRE Head model.

The Discussion

Add Your 2 Cents