Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

sebkaine

how to transform P from UV space to World space in SOP ?

Hi guys i am trying to find a way to transform a position P in UV space coordinate to World space.

 

the only function that looks to do this are :

- primuv()

- prim_attribute()

Both looks to operate in the same way.

 

But they don't look to work in UV coordinate but with Per Primitive Parametric (u,v).

 

My goal is to have some point to slide on a poly object along UV.

By using primuv() or prim_attribute() i can only slide per Primitive uv. But i need to slide with per Object uv.

 

I can't find a way to solve this ... except by reducing my initial ambitions with a ray SOP ... :)

 

Thanks for your time !

 

Cheers

 

E

 

Edit :

i have attach an exemple, that do exactly what i need , but the thing is that it must be a Nurbs object. I would like to mimic this but with a Poly Object.

slide.hip

Edited by sebkaine

Share this post


Link to post
Share on other sites

Many thanks for the links Pavel ! :)

 

The goal of the first post is to make point stick the object. unfortunatly he use :

- intersect() to get closest @primid + @primuv to fill the primuv() function

- but at the end he is still in Per Primitive parametric UV space not in UV space.

- so this trick i'm afraid will not allow me to animate U or V position according to UV map.

 

The second link is very interesting but i will have to drink a coffee or two before understanding all ... But

- it looks that's it's not possible in H do a P transform from uv:space to world:space

- that is quite surprising but i will try to investigate this further.

 

I will use a maya + houdini combo on this fx i guess, animating my particles along UV texture in maya and use the sop solver and post process in houdini.

 

Thanks again for your help !

Share this post


Link to post
Share on other sites

Well i have find a way to do what i want, but it's the ugliest / geeky / unfriendly way i could imagine ...

 

I take the mesh with the uv

- compute rest pos

- transform P from world to UV.

- animate point in 0,1 grid

- transfer rest pos from mesh to point

- transform point from 0,1 grid to rest pos

slide2.hip

Edited by sebkaine

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