Wednesday, January 7, 2009

Size & positionZ

Autodesk Tips & Tricks - Size & positionZ


First, i must thanks Tim Farrell for giving me this genius expression formula in autodesk smoke forum.

What i like to do here is, from the normal camera view, the picture looks nothing special.

However, once you rotate the picture or camera, it would reveal that the picture is actually formed by brunch of pictures with different z-depth.

Here, for simple illustrate, i take the same media and enter it few times, and crop each differently. For better effect, you can use gmask to mask out portion of the object out each.
In axis1 scaling, enter expression :

100*(axis1.position.z/(288/tan(radians(-0.5*camera.fov))))+100


In axis2 scaling, enter expression :
100*(axis2.position.z/(288/tan(radians(-0.5*camera.fov))))+100


and so on for other axis, just change the axis name accordingly. Mine is PAL pixel, for NTSC pixel, change 288 to 243 instead.


Then, just move each clip's positionZ close or further away, the scaling will take care of itself.

3 comments:

Inspector Clouseau said...

Interesting work. I came across your blog while "blog surfing" using the Next Blog feature on the Navigation Bar of Blogger.com. I occasionally just visit other blogs simply out of curiosity. I am continually surprised at the creative manner in which people all over the globe express themselves, and their particular interests. Keep it up.

Genious Productions said...

Just started learning Smoke, and this is a great post. Trying it now.

Just curious, if i wanted to take it to high def, do i need to change something? It's not working for me, but it could easily be me missing something. i'll go double check the work.

Thanks for your blog!

matt

Chee Keong said...

sorry, i didn't really understand the expression either, it was from Tim Farrell. Try change the 288 to half of your HD width instead. say if 1080, half is 540.