Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Use a video as a texture and map it to squares/cubes

$
0
0

Hello to the Forum! I've been using Processing for quite a while and i really love it. So far i was able to do anything that came up my mind without having to ask here. But now I cannot figure out how to do this:

I want to divide the sketch screen into a set of cubes/squares, e.g. 6x4 and have 1 video to play on all of them, making it look like there is just 1 video playing. Later I will want to move some of the cubes on the z axis while the video is playing for audio-visualization. I was trying to use the video as a texture. While processing was not returning any errors, i could only see a blank screen. I have then tried to work around it with a PImage tex which i load with myMovie.get(0,0, width, height). It was applied as a texture to the cube, but the video would only update every few seconds. I have been searching a lot, but I cannot find any examples for what i want to do. I am not sure if using textures is a a good appoach to this problem. So I am hoping there is somebody here who has a better idea or who can tell me how to properly use a video as a texture and apply it to the cubes.


Viewing all articles
Browse latest Browse all 2896

Trending Articles