node-openvg
node-openvg copied to clipboard
Not portable
Unfortunately node-openvg is specific to the Raspberry Pi and is currently not portable to other platforms, due to its use of libbcm. It would be great to provide a portable alternative.
Do you have any other platform/architecture in mind ? I would also like to do this, but there aren't many alternatives to the raspberry pi with OpenVG available.
Well all video drivers based on Gallium should be able to use OpenVG. This includes Nouveau, Radeon etc. But I would like to try it on the GCW Zero handheld console (see www.gcw-zero.com), which is Linux-based with a MIPS processor, and uses an open-source Gallium-based video driver (etnaviv). My goal is to allow it to playback HTML5 games.
This is very interesting because it would allow development of other stuff (like node-openvg-canvas) on a desktop/laptop computer with more firepower than the Pi.
Placing this here for future reference:
- http://www.freedesktop.org/wiki/Software/gallium/EGLReferenceDrivers/
- http://en.wikipedia.org/wiki/Gallium3D
- http://www.mesa3d.org/openvg.html
I started a version based on SDL2, to make it support as much platforms as possible (including the Raspberry Pi). However, Mesa's OpenVG library does not include the VG utilities: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1240738
FWIW, They are really easy to emulate/shim.
So I added a version based on SDL2: https://github.com/pcercuei/node-openvg This gives me garbage on my PC with Mesa's implementation of OpenVG, could you try it with your Raspberry Pi?
Any update on this? I'm interested on using node-openvg-canvas (that uses node-openvg as basis) on NodeOS...