Hello pd-listers~
I was hoping someone could tell me if pix_data can read from a openGl chain (e.g. from the rasterization frame) or if it only works with objects like pix_video?
Im writing a patch that will eventually read from a pix_video object and map that onto a cube that fills the screen, and read pixeldata from that, but as I dont have my camera now, I want to test my patch by moving a cube around in 3-space and testing the fields of pixels the patch is looking at in the window. I cant get any data from pix_data with a white cube sitting right in the middle of the window.
I tried x:400 y:300 (screen dimentions are 800x600) and x:0.5 y:0.5, both failed.
I have the chain hooked up as follows: [gemhead] [translateXYZ] [pix_data] [cube]
and I tried:
[gemhead]
[translateXYZ]
|
[cube] [pix_data]
both failed...
Also, B. Bogart said that I can change the bounding box of gem by using the [view< message. Whats the syntax for that message? Thanks for the help B and everyone!
-wadeislost
Look at the help in CVS
I think its on Chris's page at: (may or may not be up to date)
http://taproot.dyndns.org/~cgc/downloads/GemHelp_050503.tgz
As for pix_data I think you can get at all pix_ data.
To get the gemwin buffer into pix_ land try pix_snap.
Ben
----- Original Message ----- From: "Wade McDaniel" pdman@aproximation.org To: pd-list@iem.kug.ac.at Sent: Thursday, October 30, 2003 3:42 PM Subject: [PD] More Gem help for Blockhead-Me please?
Hello pd-listers~
I was hoping someone could tell me if pix_data can read from a openGl
chain (e.g. from the rasterization frame) or if it only works with objects like pix_video?
Im writing a patch that will eventually read from a pix_video object and
map that onto a cube that fills the screen, and read pixeldata from that, but as I dont have my camera now, I want to test my patch by moving a cube around in 3-space and testing the fields of pixels the patch is looking at in the window. I cant get any data from pix_data with a white cube sitting right in the middle of the window.
I tried x:400 y:300 (screen dimentions are 800x600) and x:0.5 y:0.5, both
failed.
I have the chain hooked up as follows: [gemhead] [translateXYZ] [pix_data] [cube]
and I tried: [gemhead] [translateXYZ] |
[cube] [pix_data]both failed...
Also, B. Bogart said that I can change the bounding box of gem by using
the [view< message. Whats the syntax for that message? Thanks for the help B and everyone!
-wadeislost
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
Quoting Wade McDaniel pdman@aproximation.org:
Hello pd-listers~
I was hoping someone could tell me if pix_data can read from a openGl chain (e.g. from the rasterization frame) or if it only works with objects like pix_video?
Try pix_snap to grab the backbuffer and return it as an RGBA image.
cgc