irrlicht.net vs 2005 nto working

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
grunt
Posts: 96
Joined: Tue Aug 17, 2004 9:14 pm
Contact:

irrlicht.net vs 2005 nto working

Post by grunt »

I added irrlicht.net.dll to my project, and copied irrlicht.dll to my output folder, but still my app doesnt work within my winform. Here is my code:

Code: Select all

 Private Sub startirr(ByVal c As Control)
        device = New IrrlichtDevice(Irrlicht.Video.DriverType.DIRECT3D9, New Dimension2D(c.Width, c.Height), 32, False, False, False, True, c.Handle)
        Dim cam As ICameraSceneNode = device.SceneManager.AddCameraSceneNode(Nothing, New Vector3D, New Vector3D, -1)
        Dim anim As ISceneNodeAnimator = device.SceneManager.CreateFlyCircleAnimator(New Vector3D(0, 10, 0), 30.0F, 0.003F)
        cam.AddAnimator(anim)

        ' draw everything
        ' Note, using device.WindowActive will not work on a control, since we don't
        ' really activate controls..
        While device.Run AndAlso c.Enabled
            device.VideoDriver.BeginScene(True, True, New Irrlicht.Video.Color(255, 0, 0, 50))
            device.SceneManager.DrawAll()
            device.GUIEnvironment.DrawAll()
            device.VideoDriver.EndScene()
        End While
App runs cuz i can see it in the task manager, but the gui never shows up. If I take out all the irrlicht code the app gui comes up. Using VB 2005 Express.
grunt
Posts: 96
Joined: Tue Aug 17, 2004 9:14 pm
Contact:

Post by grunt »

nm had to start it in a new thread and put checkforillegalcrossthreadcalls to false.
Locked