Search found 34 matches

by Donald Duck
Wed Nov 29, 2017 12:48 pm
Forum: Beginners Help
Topic: How can I make a certain mesh not be affected by the far val
Replies: 6
Views: 1013

How can I make a certain mesh not be affected by the far val

In my program, I want to set the far value for the camera at 20 (using irr::scene::ICameraSceneNode::setFarValue(20)), so that no element farther than 20 units from the camera is visible. But I don't want all elements that far from the camera to be invisible, but all except one. So I have one elemen...
by Donald Duck
Fri May 19, 2017 6:38 pm
Forum: Bug reports
Topic: CursorControl pointer is null CIrrDeviceMacOSX.mm
Replies: 21
Views: 4042

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

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.
by Donald Duck
Fri May 19, 2017 4:03 pm
Forum: Bug reports
Topic: CursorControl pointer is null CIrrDeviceMacOSX.mm
Replies: 21
Views: 4042

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

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...
by Donald Duck
Fri May 19, 2017 9:11 am
Forum: Bug reports
Topic: CursorControl pointer is null CIrrDeviceMacOSX.mm
Replies: 21
Views: 4042

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

At this point, I'd like to ask you what exactly you're trying to achieve? I'm just trying to open an Irrlicht 3D window on Mac. I have an Irrlicht 3D game that uses OpenGL and that works fine on Windows and I'm trying to use the same code to make that game available for Mac. I'm not trying to do an...
by Donald Duck
Thu May 18, 2017 4:07 pm
Forum: Bug reports
Topic: CursorControl pointer is null CIrrDeviceMacOSX.mm
Replies: 21
Views: 4042

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Like I said, I may be mistaken, because I don't have a MacOSX computer here. Can you put a breakpoint on line 72, and then step through to see if the constructor returns a NULL reference? If the line 72 isn't compiled (the debugger won't stop on it), there's your problem. Line 72 is for Windows, it...
by Donald Duck
Wed May 17, 2017 3:55 pm
Forum: Bug reports
Topic: CursorControl pointer is null CIrrDeviceMacOSX.mm
Replies: 21
Views: 4042

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Strange, the dev variable should be type IrrlichtDevice* and not CIrrDeviceMacOSX*. At least in my Irrlicht.cpp. Did you modify the file maybe? I didn't change anything. Here is a ZIP file containing exactly the files I have (before I compiled anything whatsoever): http://www.files.com/shared/590e2...
by Donald Duck
Wed May 17, 2017 3:51 pm
Forum: Bug reports
Topic: CursorControl pointer is null CIrrDeviceMacOSX.mm
Replies: 21
Views: 4042

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Can you post a mininimal example that reproduces the problem? The most minimal Irrlicht code reproduces the problem when compiled with XCode compiler on Mac (on Windows and Linux it works just fine): #include <irrlicht.h> int main(){     irr::createDevice(irr::video::EDT_OPENGL);     return 0; } In...
by Donald Duck
Wed May 17, 2017 2:43 pm
Forum: Bug reports
Topic: CursorControl pointer is null CIrrDeviceMacOSX.mm
Replies: 21
Views: 4042

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

If you put a breakpoint there, can you tell us the values of the parameters passed to the CCursorControl constructor, and if the CursorControl object is null after the call? I did that, and apparently it never runs the constructor, at least not before it crashes. It runs irr::createDeviceEx from my...
by Donald Duck
Wed May 17, 2017 1:17 pm
Forum: Bug reports
Topic: CursorControl pointer is null CIrrDeviceMacOSX.mm
Replies: 21
Views: 4042

CursorControl pointer is null CIrrDeviceMacOSX.mm

I compiled Irrlicht 1.8.4 on Mac and used it in one of my projects. But when I use the function irr::createDeviceEx in my code, the program crashes. This is what it gives when I run it in the terminal: Last login: Mon May 15 12:57:25 on ttys000 /Users/donaldduck/Documents/build-untitled/Mac/untitled...
by Donald Duck
Mon May 15, 2017 11:10 am
Forum: Beginners Help
Topic: Compiling Irrlicht on Mac
Replies: 1
Views: 484

Re: Compiling Irrlicht on Mac

I added the following flags and it worked:

Code: Select all

-framework CoreFoundation -framework CoreGraphics -framework AppKit -stdlib=libstdc++ -lc++
by Donald Duck
Thu May 11, 2017 11:49 am
Forum: Beginners Help
Topic: Compiling Irrlicht on Mac
Replies: 1
Views: 484

Compiling Irrlicht on Mac

I'm trying to get Irrlicht to work on Mac 10.11 El Capitan. I compiled Irrlicht myself by compiling the project ~/Downloads/irrlicht/source/Irrlicht/MacOSX/MacOSX.xcodeproj with XCode 7.3.1. This compiled successfully and mad a file called libIrrlicht.a. The problem is that when I use Irrlicht in a ...
by Donald Duck
Wed Apr 26, 2017 2:12 pm
Forum: Beginners Help
Topic: 3DS semi-transparency isn't working
Replies: 2
Views: 675

Re: 3DS semi-transparency isn't working

Thanks, it worked. I had a few issues with the ambient lighting in Irrlicht making the OBJ mesh brown instead of green though. I solved that by adding the following code:

Code: Select all

mesh->getMaterial(0).AmbientColor = irr::video::SColor(0, 0, 200, 0);
by Donald Duck
Wed Apr 26, 2017 12:18 pm
Forum: Beginners Help
Topic: 3DS semi-transparency isn't working
Replies: 2
Views: 675

3DS semi-transparency isn't working

I've made a simple mesh in Blender with a semi-transparent green plane, and exported it as 3DS to use with Irrlicht. The Blender file and the 3DS file can be downloaded here: http://www.files.com/shared/59008a3f8f739/Ny%20komprimerad%20mapp.zip . The problem is that when I try to use the 3DS in Irrl...
by Donald Duck
Fri Apr 21, 2017 7:55 pm
Forum: Beginners Help
Topic: Rotate around the Z axis before rotating around the Y axis
Replies: 1
Views: 444

Rotate around the Z axis before rotating around the Y axis

I would like to rotate a mesh first 22.5°around the Z axis and then 90° around the Y axis. I tried this code: mesh->setRotation(irr::core::vector3df(0.0f, 90.0f, 22.5f)); The problem is that this rotates first around the Y axis and then around the Z axis, which is, if I'm not wrong, the same thing a...
by Donald Duck
Wed Apr 05, 2017 9:22 am
Forum: Beginners Help
Topic: Change light sensitivity of the whole scene
Replies: 1
Views: 419

Change light sensitivity of the whole scene

I have a button in my program which allows the user to choose if the the scene should be light sensitive or not. But I can't find a quick way to change the light sensitivity of the whole scene at once. I tried this: sceneManager->getRootSceneNode()->setMaterialFlag(irr::video::EMF_LIGHTING, false); ...