I have poblems with OPENGL rendering. I'm developing a game and in options the user can choose the preferred redering mode. DirectX 9, DirectX 8 and Software are working ok but when using OPENGL the screen is just black. The rendering is done in a control (via handle), could this have some affect?
Also the game crashed on my friend when the Irrlicht part of the game is showed. When the irrlicht is initialized(device, scenes etc.) evertyhing is working ok. But when the screen is showed the game crash. The error is "Unexpected error occured....". So it is not an exception. Also the strange thing here is that screen is showing a while(second) before crashing.The friend has exactly the same graphic card as I do and he has even newer drivers than me.
OPENGL problems & strange crash
-
- Posts: 30
- Joined: Wed Mar 15, 2006 7:42 pm
- Location: http://cube3.helpmy.net
Are you spawning the renderloop on a second thread by any chance?
Platform 3D Engine using Irrlicht.NET
http://cube3.helpmy.net
http://cube3.helpmy.net
Yep, I'm doing that, so is that causing the problems. I'm aware that everything UI specific stuff(changing control state etc.) should be done in the "UI" thread. But with Irrlicht, how can I do that because the rendering is done with the handle, any good ideas?
Also any ideas about the OPENGL problem, thanks
Also any ideas about the OPENGL problem, thanks
-
- Posts: 30
- Joined: Wed Mar 15, 2006 7:42 pm
- Location: http://cube3.helpmy.net
Yes, I had that problem too, once it was running the renderloop on a seperate thread, the screen went black.
Next to just spawn the render thread on a seperate thread, I have not tried yet to start the entire engine from a seperate thread.
If you have any luck with that , let us know.
Next to just spawn the render thread on a seperate thread, I have not tried yet to start the entire engine from a seperate thread.
If you have any luck with that , let us know.
Platform 3D Engine using Irrlicht.NET
http://cube3.helpmy.net
http://cube3.helpmy.net
-
- Posts: 30
- Joined: Wed Mar 15, 2006 7:42 pm
- Location: http://cube3.helpmy.net
With the handle issue, the only way (as far as i can tell) to solve your problem you can add:
public MainForm()
{
InitializeComponent();
CheckForIllegalCrossThreadCalls = false;
}
In your form containing the picturebox. hope that helps.
public MainForm()
{
InitializeComponent();
CheckForIllegalCrossThreadCalls = false;
}
In your form containing the picturebox. hope that helps.
Platform 3D Engine using Irrlicht.NET
http://cube3.helpmy.net
http://cube3.helpmy.net