eendeego / node-openvg

OpenVG bindings for node
45 stars 9 forks source link

Not portable #2

Open pcercuei opened 10 years ago

pcercuei commented 10 years ago

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.

eendeego commented 10 years ago

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.

pcercuei commented 10 years ago

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.

eendeego commented 10 years ago

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:

pcercuei commented 10 years ago

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

eendeego commented 10 years ago

FWIW, They are really easy to emulate/shim.

pcercuei commented 10 years ago

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?

piranna commented 9 years ago

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