[.NET/C#] Lighting Problems

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
ArcAngel
Posts: 1
Joined: Wed Apr 04, 2007 10:10 am

[.NET/C#] Lighting Problems

Post by ArcAngel »

This code:

Code: Select all

NodeLight1 = Dev.SceneManager.AddLightSceneNode(null, new Vector3D(0, 25, 0), new Colorf(0.065f, 0.065f, 0.075f, 0.0f), 25f, -1);
            
Irrlicht.Video.Light light = NodeLight1.LightData;

light.DiffuseColor = new Colorf(0.75f, 0.75f, 0.8f);
light.SpecularColor = new Colorf(0.25f, 0.25f, 0.2f);

NodeLight1.LightData = light;
works very well when i debug this code within Visual Studio 2005, but when i compile my program, the Application closes immediatelly after doubleclicking it. If i comment out the special Light options and use just the first line, all works very well, but looks ugly.

what do i wrong?

im currently using Irrlicht 1.2 and the .NET Wrapper from here

pls excuse my bad english, its quite rusty ;)
Locked