You can install controlP5 library and check the examples. I don't know if G4P can do that. @quark could confirm this.
To access either library, install it through the library manager in the Processing IDE, via Add library. You can check the examples provided under File>>Examples.
@kfrajer I did create buttons as image using g4p just this evening here at Philippines. Right now its 12:18AM, I would like to ask if gohai changes much to the rpiCamera library cause it only displays black whilst my camera is absolutely okay and has no damage.
Gohai won't be able to see your post if you don't link him to this post. I do it for you: @gohai
Sorry, I wouldn't know about changes on those libraries. You should provide details about your system and describe your problem precisely. If I were you, I will come up with a small script to reproduce the problem and post it here.
@xkapono22 I haven't made changes to the GL Video library in a while. You can of course still go back to previous versions, if you think they will work for you - they're available on https://github.com/gohai/processing-glvideo
@gohai every time I use your SimpleCapture example program it only displays a black. But when I run my camera thru CLI of Raspberry pi3 with the command raspivstill -v -o test.jpg it saves image. so I can say that my camera is working. I wonder why does processing displays black rather than the camera display instead. TIA!!
@xkapono22 Generally: as little as you can get away with, since the memory will be taken from the general RAM available to programs and the OS. Normally do 192 or 256 MB on the Raspberry Pi 2 or 3.
Answers
You can install controlP5 library and check the examples. I don't know if G4P can do that. @quark could confirm this.
To access either library, install it through the library manager in the Processing IDE, via Add library. You can check the examples provided under File>>Examples.
http://www.lagers.org.uk/g4p/
http://www.sojamo.de/libraries/controlP5/
Kf
@kfrajer I did create buttons as image using g4p just this evening here at Philippines. Right now its 12:18AM, I would like to ask if gohai changes much to the rpiCamera library cause it only displays black whilst my camera is absolutely okay and has no damage.
Gohai won't be able to see your post if you don't link him to this post. I do it for you: @gohai
Sorry, I wouldn't know about changes on those libraries. You should provide details about your system and describe your problem precisely. If I were you, I will come up with a small script to reproduce the problem and post it here.
Kf
@xkapono22 I haven't made changes to the GL Video library in a while. You can of course still go back to previous versions, if you think they will work for you - they're available on https://github.com/gohai/processing-glvideo
Hth
@gohai every time I use your SimpleCapture example program it only displays a black. But when I run my camera thru CLI of Raspberry pi3 with the command
raspivstill -v -o test.jpg
it saves image. so I can say that my camera is working. I wonder why does processing displays black rather than the camera display instead. TIA!!Do you have the line bcm2835_v4l2 in
/etc/modules
? Also try with our prepared Raspbian image here: https://github.com/processing/processing/releases/download/processing-0255-3.2.3/processing-3.2.3-linux-raspbian.zip@gohai I've searched my
/etc/modules
and no bcm2835_v4l2 there. I wonder how to put it there?@gohai seems weird because I have
/dev/video0
what might be the problem?@gohai I've added the line bcm2835_v4l2 in etc/modules but when I run SimpleCapture sample program it outputs this pastebin.com/kzTzMbcT
Btw I am running it from Processing 3.2.1 does it affect your library? @gohai
@xkapono22 This line is key:
GLVideo: v4l2src0: Failed to allocate required memory.
You need to increase the amount of video memory via
raspi-config
or the Raspberry Pi configuration tool in the GUI@gohai any recommended values for that?
@xkapono22 Generally: as little as you can get away with, since the memory will be taken from the general RAM available to programs and the OS. Normally do 192 or 256 MB on the Raspberry Pi 2 or 3.
Thanks @gohai. I'll post my feedback after I did some modifications. I really do appreciate your help.
Still no progress on displaying the camera.
imgur.com/a/HvL91
@gohai
@xkapono22 Are you perhaps using the "Experimental GL driver" (found in
raspi-config
)?Can you please explain further? @gohai I tried 256MB but still black.
@xkapono22 Sorry, I can't provide more help with that. If you want to use your camera with Processing, try the prepared Raspbian image available for download here: https://github.com/processing/processing/wiki/Raspberry-Pi#download
Sorry I am new to rpi how can I run it. After downloading?