Page 2 of 2

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Posted: Fri May 19, 2017 4:03 pm
by Donald Duck
MartinVee wrote:Did you get to try stepping into createWindow to see what's going on?
I found something strange in createWindow, I don't really know why that happens. I tried putting a breakpoint on line 715 in CIrrDeviceMacOSX.mm and there it said that OGLContext is not null, but the if statement at the next line (OGLContext != NULL || CreationParams.Driver == video::EDT_OPENGL) is false although OGLContext != NULL is true.
MartinVee wrote:Also, can you confirm that other OpenGL games are working inside your virtual machine?
I tried running Blender which uses OpenGL and it crashed just like my program. But I also have a Linux virtual machine and there Irrlicht and OpenGL work just fine. What should I do to get OpenGL to work?

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Posted: Fri May 19, 2017 4:40 pm
by MartinVee
I get that you're using Virtual Box? Did you enable the 3D Acceleration setting in Display Settings for the irtual machine?

Also, you might want to read this : Hardware 3D acceleration (OpenGL and Direct3D 8/9).

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Posted: Fri May 19, 2017 6:38 pm
by Donald Duck
I tried enabling 3D acceleration for the Mac virtual machine but it didn't change anything. The page you linked to says it doesn't work for Mac guests:
It is only available for certain Windows, Linux and Solaris guests.

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Posted: Fri May 19, 2017 6:58 pm
by MartinVee
Well then, that's sad, but here's your answer.

I have to say I'm surprised that 3D acceleration can work at all with virtual machines. I thought that it requires far more access to the hardware than virtualization permits. Then again, that's good news as future iteration of Virtual Box could allow 3D acceleration to work with MacOSX.

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Posted: Tue May 30, 2017 9:28 pm
by Nadro
Hi,

Sorry for my late response. I'll check this patch and apply them to a trunk.

@MartinVee
If you need 3D acceleration on VM with macOS you should buy a second GPU and do GPU passthrough for this device in your host OS. In that way you will have native 3D performance, but remember that not all GPUs works fine in macOS.

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Posted: Wed May 31, 2017 12:39 pm
by MartinVee
I'm not that familiar with virtualization, but it's good to know!

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Posted: Thu Jun 01, 2017 9:12 am
by Nadro
@Donald Duck
Irrlicht v1.8.x doesn't work properly with newer versions of OSX/macOS, if you need the best compatibility please use trunk. I though that this issue is related to trunk, sorry that I didn't check that before. Irrlicht from trunk is definitly better than stable v1.8.x release (v1.8.x is really old).