Hi,
Was wondering if anybody had embedded the Irrlicht.NET into a usercontrol so that it can just be placed on a Windows Form?
I've started it, by creating a usercontrol and using then attaching the Irrlicht device to that. This seemed to work the resolution looked crappy, so end up placing a picturebox on the use control and attaching the Irrlicht device to that. Which seem to resolve the crappy resolution problem.
I didn't like the idea of the a while loop for updating the picturebox, so I created another thread that did the while loop. Which appears to be working..
Before I go any further, I thought I'd check to see if anybody else had this and if they had any problems doing it this way?
Thanks
Gibbo
UserControl for Windows Forms.
Hi,
The control I'm using now is a Panel.. About the threads.. it seems to be a problem with the main loop in other thread and the Irrlicht Events. The thing is that the new thread (usually named a worker thread) in theory, can't read messages from the message loop in the main thread (a GUI thread), so the messages captured by irrlicht can't be converted in events. I think there are solutions about this like making async operations using delegates or something like that..
The control I'm using now is a Panel.. About the threads.. it seems to be a problem with the main loop in other thread and the Irrlicht Events. The thing is that the new thread (usually named a worker thread) in theory, can't read messages from the message loop in the main thread (a GUI thread), so the messages captured by irrlicht can't be converted in events. I think there are solutions about this like making async operations using delegates or something like that..