History: CaelumSharp
Source of version: 11 (current)
Copy to clipboard
{img src="img/wiki_up/Caelum.jpg" alt="" imalign="right"}
CaelumSharp is a port of ((Caelum)) to C# targeting ((Mogre)) by user ((User:Smiley80|Smiley80)).
Supported Mogre version: 1.7.x (also older ones)
__Forum__:
Use [http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=9576|this thread].
__Download__:
[http://bitbucket.org/tbohnen/caelumsharp/downloads|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:
{CODE()}Plugin=Plugin_CgProgramManager{CODE}
!!!Code
Start CaelumSharp with the default settings:
{CODE(wrap="1", colors="c#")}using CaelumSharp;{CODE}
{CODE(wrap="1", colors="c#")}CaelumSystem cs = new CaelumSharp.CaelumSystem(root, sceneMgr, CaelumSystem.CaelumComponent.Default);
cs.AttachViewport(this.viewport);
window.PreViewportUpdate += cs.PreViewportUpdate;
root.FrameStarted += cs.FrameStarted;{CODE}
Create a system from script:
{CODE(wrap="1", colors="c#")}CaelumScript.Singleton.Initialise();
CaelumSystem cs = new CaelumSystem(root, sceneMgr, CaelumSystem.CaelumComponent.None);
CaelumScript.Singleton.LoadCaelumSystemFromScript(cs, "DefaultSky");{CODE}
An other example code you find [http://www.ogre3d.org/addonforums/viewtopic.php?p=67095#p67095|here].
!!See also
* ((Caelum))
* ((SkyX Wrapper for MOGRE)) - An alternative sky simulation