Login  Register

Re: JOGL 2.0 (OpenGL/OpenGL-ES) backend for LibGDX

Posted by Xerxes Rånby on Jun 17, 2015; 8:26am
URL: https://forum.jogamp.org/JOGL-2-0-OpenGL-OpenGL-ES-backend-for-LibGDX-tp4027689p4034722.html

gouessej wrote
piotrekk wrote
ps. i found only this solution:

https://github.com/hanzelpeter/dispmanx_vnc
It doesn't work with X11, does it?
Thank you piotrekk for showing this vnc solution, i was not aware that this dispmanx implementation existed.

Everything seen on the raspberry pi using the closed source broadcom drivers is using dispmanx surfaces including the X11 framebuffer.

You can see X11 using this dispmanx_vnc implementation.
mouse movements did work if i enabled evdev and started the server with -r relative option

sudo modprobe evdev
sudo ./dispman_vncserver -r

dispmanx_vnc works ok to remote control a raspberry pi using the text console, including running jogamp jogl demos on the pi from the text console. Performance is quite slow by design when updating complex graphics, the implementation has to take a snapshot and send it over using the vnc protocol.

The implementation injects basic keyboard and mouse events into the linux /dev/uinput to update the /dev/input/event* files, this makes it possible for keyboard and mouse events to be parsed by X11 and our jogamp linux event tracker.

There is noticable delays in the updates of mouse movements. that may be fixed by working on the sourcecode.
https://github.com/hanzelpeter/dispmanx_vnc/blob/master/main.c#L365-L468