Mogre and CaelumSharp Error

SAS

09-09-2011 23:39:46

Hi first i need to say i'm happy to be a new members here.

I have a problem with the CaelumSharp Addon.
I use Morge and VB.Net, i use this code for CaelumSharp.


Dim cs As New CaelumSharp.CaelumSystem(r, myScenemanager, CaelumSystem.CaelumComponent.Default)
cs.AttachViewport(myViewport)
cs.TimeScale = 512
cs.SceneFogDensityMultiplier = 0.0001F
cs.ManageSceneFog = True


AddHandler renderW.PreViewportUpdate, AddressOf cs.PreViewportUpdate
AddHandler r.FrameStarted, AddressOf cs.FrameStarted


Now i can see a Skye and it change's to a starsky. But i can't the the Sun, Mon and clouds. I have no idea why?
The Logfile give me this exception:

00:23:36: Caelum: Creating CaelumSphericDome sphere mesh resource...
00:23:36: Caelum: generateSphericDome DONE
00:23:36: Caelum: Failed to initialize sun
00:23:36: Caelum: Failed to initialize moon
00:23:37: D3D9 : Loading 2D Texture, image name : 'noise1.dds' with 2147483647 mip map levels
00:23:37: D3D9 : Loading 2D Texture, image name : 'noise2.dds' with 2147483647 mip map levels
00:23:37: D3D9 : Loading 2D Texture, image name : 'noise4.dds' with 2147483647 mip map levels
00:23:37: Caelum: Failed to initialize clouds
00:23:37: Caelum: DONE initializing
00:23:37: CaelumSystem: Attached to viewport Mogre.Viewport render target Hallo
00:23:37: Caelum: Recomputing starfield geometry.
00:23:37: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.

What's wrong with my code? Please help me to get a sun or Moon XD Because my Sky looks emty :P

Thank you

smiley80

11-09-2011 12:21:13

Make sure you load the CgProgramManager plugin.

'plugins.cfg' has to contain this line:
Plugin=Plugin_CgProgramManager
'Plugin_CgProgramManager.dll' and 'cg.dll' have to be in the plugin folder.

Beauty

11-09-2011 17:07:47

Thanks smiley80,
I added your note to the CalelumSharp wiki page.