Jump to content
Sign in to follow this  
konstantin magnus

Sampling positions from UV map using uvsample()

Recommended Posts

I am trying to place a point on a uv-unwrapped mesh based on its UV coordinates interpolated position and normals using uvsample().

float uv_x = chf('uv_x');
float uv_y = chf('uv_y');
vector uv_pos = set(uv_x, uv_y, 0);

@P = uvsample(1, "P", "uv", uv_pos);
@N = uvsample(1, "N", "uv", uv_pos);

While this kind of works, it unfortunately jumps from one row to another instead of smoothly running across the surface. Is this a bug or my fault?


Share this post

Link to post
Share on other sites

I reviewed your file and I don't experience any jumping using H16.5.359. It moves smoothly for me.




Edited by Atom

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this