[Interactive Camera] How to get the image data? #3797
-
Hi! I am working on the image process within sofa. I know how to control the camera state, like position and orientation. But I don't know how to get the image data from the camera. Please help me with this, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
Not really, as I dont really use python3.
I tried the other scene using pygame (in the same directory) and it seems to work/display something.
So if you modify a little bit the script, you can get for example the depth buffer
Here is a quick&dirty update of the pygame_example.py
It will save the pixels of the depth buffer on the disk.