# VEX in Houdini: Movie Color Visualisation

Free Tutorials

Quite some time ago I was trying to cook up something like the guys at moviebarcode.com: Some setups that’d deconstruct a given movie into its individual colors in a visually pleasing manner. Recently I thought it was time to try another attempt. Instead of linearly mapping the individual frames’ colors on a 2D plane, this time I wanted to create something that took advantage of 3D space.

The Idea here is to first read in individual movie frames and then convert the individual pixel’s RGB values into HSV color space and use the hue (converted to Radians) to map the individual pixels in a radial shape with saturation and value driving how far a given pixel can be from the center line of the timeline we’re building. In addition to that I found it quite interesting to get my hands dirty when working with strings in VEX to extract file paths for a movie’s individual frames. Hope you’re having fun with this one!

Schematic Overview of the Setup

1. Darian

WE ARE NOT WORTHY. Excellent tut, can’t wait to fiddle with this!

2. WOOOW! This is just the thing I was looking for! Thank you guys so much!

3. John Glam

do you guys ever come up with your own ideas or do you just copy other peoples work?

• Manuel

Hi John, what do you mean? We are not a graphic studio but a tutorial site. Our unique contribution is to create learning material and to show how CG-techniques work. Think about it this way: If your professor explains calculus to you in school, is this not worthwhile because he did not invent calculus?

4. Kosta

What about the copy SOP giving an attribute to each “plane”, so you don’t need to calculate the plane you want to work on? (ATTRIBUTE copynum)

and in pointwrangle1 you would have something like:
``` num=@copynum+@Frame; filename= path+pathsep+file+num+suffix; ```

and you have an animated pointcloud showing your “movie”

• Jessie

Can you add the attribute copynum in the Copy and Transform sop or does it require a different sop.

5. Kosta

The “copynum” attribute is in the copy SOP, just activate it…

6. jim bachalo

Thanks once more for sharing your insights and knowledge! Your tutorials more inspiring (unfortunately) than most that I’ve paid for.

7. Andy Hopper

Amazing thankyou. Have you though how you could do this with audio?