node-openvg icon indicating copy to clipboard operation
node-openvg copied to clipboard

Not portable

Open pcercuei opened this issue 11 years ago • 7 comments

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.

pcercuei avatar Dec 13 '13 14:12 pcercuei

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.

eendeego avatar Dec 13 '13 17:12 eendeego

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.

pcercuei avatar Dec 14 '13 13:12 pcercuei

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

eendeego avatar Dec 14 '13 17:12 eendeego

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

pcercuei avatar Dec 18 '13 18:12 pcercuei

FWIW, They are really easy to emulate/shim.

eendeego avatar Dec 19 '13 10:12 eendeego

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?

pcercuei avatar Apr 23 '14 15:04 pcercuei

Any update on this? I'm interested on using node-openvg-canvas (that uses node-openvg as basis) on NodeOS...

piranna avatar Feb 07 '15 20:02 piranna