Irrlicht on Raspberry PI

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Irrlicht on Raspberry PI

Post by hybrid »

Well, depends on your setting. If you just want some full-screen 3d app, then yes, that works perfectly. If you want to use a 3d app from within X desktop, then no. It's rather hard to use it. But that's not exactly solvable from within Irrlicht. You'd have to provide an OpenGL accelerated X11 for raspi.
dextrus
Posts: 6
Joined: Tue Nov 13, 2012 12:45 am

Re: Irrlicht on Raspberry PI

Post by dextrus »

How does one go about creating a full-screen 3d app without X11 support? I'm delighted that it works perfectly however.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Irrlicht on Raspberry PI

Post by hybrid »

You can set width and height in the setup routine, though it does automatically choose the fullscreen dimensions with my fix I mentioned a little after the initial patch. If you don't want the X server to be running, you have to remove the X11 code completely. The egl code ignores the window anyway. Not sure about proper input, though. The events system should help here, but I guess we have no full implementation for it.
MynithiX
Posts: 26
Joined: Thu Oct 11, 2012 4:06 pm
Location: Germany

Re: Irrlicht on Raspberry PI

Post by MynithiX »

hybrid wrote:The compilation is quite simple. Just apply my patch
Sorry, I didn't get it: How to apply the patch?
I want to get it finally working on the Pi :twisted:
Thanks
MynithiX
EDIT:
Sorry, found it out, but first I didn't figured out what to do... ._.
Just delete the lines with - and add them with + :roll:
Two things are infinite: the stupidity of the humans and universe. I'm just not sure if the universe is really infinite!
YOLO
MynithiX
Posts: 26
Joined: Thu Oct 11, 2012 4:06 pm
Location: Germany

Re: Irrlicht on Raspberry PI

Post by MynithiX »

I have applied your quick hack, and thats what it says after make:

Code: Select all

g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -g -D_DEBUG -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -I/home/pi/irrlicht/SDKPackage-ogles1/Builds/OGLES/Include -I/home/pi/irrlicht/SDKPackage-ogles1/Builds/OGLES/LinuxPC/Include -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -DIRRLICHT_EXPORTS=1  -c -o COGLES2Driver.o COGLES2Driver.cpp
In file included from COGLES2Driver.cpp:7:0:
COGLES2Driver.h:359:7: error: extra qualification 'irr::video::COGLES2Driver::' on member 'getGLBlend' [-fpermissive]
COGLES2Driver.cpp: In member function 'bool irr::video::COGLES2Driver::genericDriverInit(const irr::core::dimension2d<unsigned int>&, bool)':
COGLES2Driver.cpp:293:20: error: no matching function for call to 'irr::video::COGLES2Driver::initExtensions(irr::video::COGLES2Driver* const, void*&, bool&)'
COGLES2Driver.cpp:293:20: note: candidate is:
COGLES2ExtensionHandler.h:186:8: note: void irr::video::COGLES2ExtensionHandler::initExtensions(irr::video::COGLES2Driver*, bool)
COGLES2ExtensionHandler.h:186:8: note:   candidate expects 2 arguments, 3 provided
make: *** [COGLES2Driver.o] Fehler 1
 
//Fehler 1 means something like error 1.
I would be very happy, if someone have a solution for this, because I don't know what to do...
Two things are infinite: the stupidity of the humans and universe. I'm just not sure if the universe is really infinite!
YOLO
nessotrin
Posts: 1
Joined: Sat Jul 05, 2014 3:55 pm

Re: Irrlicht on Raspberry PI

Post by nessotrin »

I got irrlicht to work without need for a patch :D , the only downside is that the engine can only work in fullscreen :( (execpt for the software mode), if anyone want it i will give a link (please tell me when you found a bug so i can correct it :wink: ).
proller
Posts: 2
Joined: Sat Mar 02, 2013 12:06 pm

Re: Irrlicht on Raspberry PI

Post by proller »

Now irrlicht compiles under pi, but how to correctly compile and run any example?
using ogl-es branch
i trying use this installed libs:
libgl1-mesa-swx11
libgl1-mesa-glx
libgles1-mesa-dev
libgles2-mesa-dev

changing make for correct link:
examples/16.Quake3MapShader/Makefile:
-OGLESLIBS := -L$(HOME)/irrlicht/SDKPackage-ogles1/Builds/OGLES/LinuxPC/Lib -lGLES_CM
+OGLESLIBS := -L$(HOME)/irrlicht/SDKPackage-ogles1/Builds/OGLES/LinuxPC/Lib -L/opt/vc/lib -lGLESv1_CM -lGLESv2 -lEGL -lGL

but on start demo i have errors about egl and demo window with nothing in windowed and fullscreen mode.

On odroid this demo compiled in this way works good.
Post Reply