Processing 3 is running for the first time on a Raspberry Pi - Raspberry Pi Forums


processing 3 running first time on raspberry pi using eric anholt's mesa3d vc4 driver!
image
video of processing 3 rgb cube demo running on raspberry pi using eric anholt's mesa3d vc4 opengl 2 driver:
http://labb.zafena.se/jogamp/vc4/video2 ... 912325.mp4

free software mesa3d vc4 driver, raspberry pi turned mobile opengl es 2 system "desktop" opengl 2 system.

processing 3 using jogamp jogl tap opengl hardware acceleration on armv6 raspberry pi 1 , armv7 raspberrypi 2 systems.


hold on going on here, how can setup free software vc4 driver on raspberry pi system?

collaboration eric anholt, anholt, , gottfried haider, gohai, processing 3 running on raspberry pi.

eric anholt has worked year implement full opengl 2 mesa3d driver use on raspberry pi using video core 4, vc4, gpu.
http://anholt.livejournal.com/

getting eric anholt's mesa3d vc4 driver running on raspberry pi done work gohai.
gohai started out following eric's notes here: http://dri.freedesktop.org/wiki/vc4/
, put buildbot in python, produce system images use on pi or pi2.

kernel, mesa, xserver packages & dependencies git. system image produced using gohai's buildbot
https://github.com/gohai/vc4-buildbot

gohai publish daily builds of raspbian patched mesa3d vc4 driver using bot at:
http://sukzessiv.net/~gohai/vc4-buildbot/build/

myself have contributed fix corner-cases in jogamp jogl opengl initialization running.


what problem using proprietary opengl es vc4 driver on raspberry pi system?

opengl es standard not cover how native window initialized.
when initialize opengl es must pass platform specific eglnativewindowtype, eglnativepixmaptype , eglnativedisplaytype depending on os use.

if read khronos header eglplatform.h notice eglnativewindowtype different for
windows: typedef hwnd eglnativewindowtype;
mac: typedef void *eglnativewindowtype;
android: typedef struct anativewindow* eglnativewindowtype;
unix x11: typedef window eglnativewindowtype;

creating on-screen egl rendering surface requires to use eglcreatewindowsurface function, takes eglnativewindowtype parameter. on raspberry pi, implemented egl_dispmanx_window_t struct, defined in eglplatform.h as:

typedef struct {
dispmanx_element_handle_t element;
int width; /* necessary because dispmanx elements not queriable. */
int height;
} egl_dispmanx_window_t;

can see raspberrypi using properitary binary drivers uses broadcom unique native window type incompatible x11.
reason why cant use processing code pass java awt unix x11 window initialize opengl es, egl return error have passed incompatible structure eglcreatewindowsurface.

when using eric anholt's mesa3d vc4 driver egl expect unix x11 window eglnativewindowtype , why processing work out of box when erics mesa3d vc4 driver in use. eric's vc4 driver implements opengl 2 can initialized using glx. glx allows run processing opengl acceleration across remote x11 network connections!

cheers
xerxes rÄnby

that's great news!

i've tried that, ran error:
"symbol lookup error: ../path/to/processing_sketch/libnewt.so: undefined symbol: bcm_host_init"

burned latest build bot image(20150710-1502-vc4-image.zip) card downloaded , ran 20150710-1502-vc4-processing.tar.bz2 on raspberry pi2

missing ? need modify ?

thank you,
george


raspberrypi



Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support