Looking at the script RES is being set at 512. and used for both x,y
You could try altering the script and introduce RESX and RESY, and alter accordingly,
However, GPU textures normally like to be square, so it may not work. Or you may have to manipulate the frame afterwards.
Hope that helps.
BobMeta
(Bob)
January 31, 2023, 11:10am
23
Yeah, thanks for the response. I know it’s something to do with this but coding isn’t my thing and I’m not sure how to alter the values. Should I start with “RESX = 720, RESY = 576” on line 3?
Yes,
some thing like
RESX=720
RESY=576
Then alter those other references to RESX,Y appriopriately.
1 Like
Just tried seems to work with script2
try yr oldskool pal settings!
1 Like
YUP! 4:3 aspect I resized my plane to .720 x .576
BobMeta
(Bob)
January 31, 2023, 11:46am
27
Yep, got that part of it working but for some reason I’m missing 4 outer faces on the UV editor. Bizarre.
Underscan? haha.
No I dont know, try object coords?
1 Like
Thanks, it really worked! But I have a problem. At some point, the texture stops updating.
For example if I enter game mode (I use UPBGE)
Is it possible to force the texture to update every moment of time?
This is very interesting. I’m very new to coding how would I use opencv video capture with this script?
const
(const)
April 15, 2023, 2:56pm
31
The technique to be used is this one:
To install the OpenCV library use this technique, because the other ones are more difficult (you can use directly the embedded Python within Blender).
Trying to install tensorflow into blender I get an error message - #28 by const
Trinitous
(Trinitous)
October 3, 2023, 3:43am
32
I ran the script and it created the image file, but it’s just black. I opened a new project to see if it was my project but same results. Anyone else have this issue or know what might be going on for me?
someone1
(someone)
April 28, 2026, 5:04am
34
Any chance for this to be updated? Or any similar things for current Blender versions?
Sorry for reviving the thread but this seems very useful
claus
(claus)
April 28, 2026, 7:14am
35
Blender has this built in now with the ray portal BSDF, but there’s some noodling involved https://www.youtube.com/watch?v=kOCIEoezyJo
GoPro Stripped File.blend (1.3 MB)
Here it is, let me know if you can figure it out!
Two things I noticed for the shader nodes version:
-The “sensor” (object which you use as reference to where the image is taken) has to be rotated 90° on X. It also happens with the Geometry Nodes version.
Edit: That last statement was wrong, turns out you don’t need to do that. And the 90° rotation is to have the -Z axis pointing at what you want to film, as the Ray Portal reads on this direction by defaul…
1 Like
The lovely thing about python is that it reports the error.
so if you change line 10 to
LIVETEX.colorspace_settings.name = ‘Filmic sRGB’
Or any other colorspace you may happen to need, scene_linear is also there.
it works.
Blender 5.2
No AI used.
Hope that helps.
updated file
LiveCam.zip (703 Bytes)
updated with separate x y sizes. 1024*512
LiveCam_XYres.zip (726 Bytes)
someone1
(someone)
April 30, 2026, 2:08am
38
Also thanks as well, I was aware of this, problem is it’s cycles only and I work on EEVEE
1 Like
someone1
(someone)
April 30, 2026, 2:32am
39
One last thing, this didn’t work for the updated version of the script that you posted later in the thread, which ways can I use to update the texture manually instead of it being constantly refreshing?
What doesnt work?
any errors?
working as expected here.
1 Like
What are you trying to do?
like a pause effect?
look at how to grab a frame from it in python?
1 Like