texture warping

Report this File

Colorx

Views:

28,358

Updated:

Nov 21, 2006

Readership Level:

Intermediate

Tags:

Nuke Versions:

Platforms:

irix, linux, windows

Owner:

Language:

English

If you want to use an IDistort instead of the STMap you will have to use a colour expression node to modify the UV data slightly because IDistort pulls pixels from a position relative to the output pixel (i.e. 5 pixels from the left of the target pixel) whereas STMap uses absolute coordinates that are normalized (0,0 being the lower left and 1,1 the upper right corner of the image respectively).

Copy the UVs into the main stream of your texture and drop the following into a color expression node to adjust the UV data:
u*width-x
v*height-y
I'm using "u" and "v" in this case because I copied the data into the u and v channels. If your data lives in other channels you will have to use the respective channel names.

With the modified UV data you can append an IDistort node, set it to the correct channels and it should give you the same results as the STMap (the filtering will be slightly different though).
click for larger version
Tutorial_next_page

Comments

Write a Comment

You must be logged in and have verified your email address to leave a comment. Login or create an account