Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Graphics
The Pi's graphics core exposes OpenGL ES 2.0, which is supported
by Processing P2D and P3D renderer, thanks to specific
enablement in the underlying library, JOGL. The graphics driver
are built around a closed-source driver (found in /opt/vc), which
limits our ability to troubleshoot bugs for the moment.
Due to a limitation of this driver, P3D is currently limited to using
2 lights.
Certain sketches might run out of video memory and throw an
exception mentioning GL_OUT_OF_MEMORY. You might be able to
work around this by changing the memory split - the amount of
memory allocated for the GPU from all system memory. To do so,
open the Raspberry Pi Configuration (under Menu,
Preferences), navigate to the Performance tab, change the
amount of "GPU memory" and then restart your Pi.
Touchscreen
The simpletouch library makes it possible to use any multi-touchenabled display or trackpad with Processing, as long as the device
is supported by the Linux kernel. This library is available through
the Contribution Manager under the name "Simple Touch".
This works well with the official Raspberry Pi display, and allows
for tracking of up to 10 fingers.
Two example sketches the library comes with explain how to use
it. Please file issues here.
Video library
Use the new GL Video library to make use of the Raspberry Pi's
accelerated video decoding hardware. (also available from the
Contribution Manager)
Examples show the various ways the library can be used. Please
file issues here.
Video library: Capture
If you're receiving the error IllegalArgumentException: No such
Gstreamer factory: v4l2src with the (regular) Video library, try
installing the necessary packages by executing sudo aptitude
install gstreamer0.10-plugins-good in a terminal.
Alternatively, the GL Video library also contains some (very
limited) functionality for using capture hardware. See this
example for details.
If you want to use the Raspberry Pi camera with the GL Video
library, add the following line to your /etc/modules file and reboot:
bcm2835_v4l2
After the reboot your camera should show up as /dev/video0.