Welcome to the new Ogre Wiki!
If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
CaelumSharp is a port of Caelum to C# targeting Mogre by user Smiley80.
Supported Mogre version: 1.7.x (also older ones)
Forum:
Use this thread.
Download:
CaelumSharp
(based on Caelum 0.5)
It contains source, media and demo application.
Differences
Differences to the original Caelum:
- changed methods to properties where appropriate
- renamed enums, constants and methods to meet .NET naming conventions
- an other parsing method for config files (using regular expressions)
- still compatible to files of original Caelum
- only imports and variables aren't supported (maybe later)
Usage
Preparation
- download + extract zip file
- open CaelumSharp.sln with Visual Studio (or Visual C# 2008)
- build project
- copy CaelumSharp.dll to your project
- add a link to the file
- copy needed media files to you project
Your application needs to load the CgProgramManager plugin.
This you can enable in the file plugins.cfg by adding this line:
Plugin=Plugin_CgProgramManager
Code
Start CaelumSharp with the default settings:
using CaelumSharp;
CaelumSystem cs = new CaelumSharp.CaelumSystem(root, sceneMgr, CaelumSystem.CaelumComponent.Default); cs.AttachViewport(this.viewport); window.PreViewportUpdate += cs.PreViewportUpdate; root.FrameStarted += cs.FrameStarted;
Create a system from script:
CaelumScript.Singleton.Initialise(); CaelumSystem cs = new CaelumSystem(root, sceneMgr, CaelumSystem.CaelumComponent.None); CaelumScript.Singleton.LoadCaelumSystemFromScript(cs, "DefaultSky");
An other example code you find here.
See also
- Caelum
- SkyX Wrapper for MOGRE - An alternative sky simulation
Contributors to this page: Beauty
,
smiley80
and
jacmoe
.
Page last modified on Sunday 11 of September, 2011 16:06:29 GMT by Beauty
.
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.
Sidebar
Search box
Online users
75
online users

