ICE tip #5988 - uv to location

Plugins linking to this thread: (hide)

UV2Location for meshesAuthor: Reinhard Claus
This scene demonstrates how to use the 'reinterpret location' node to look up locations and mesh attributes from positions in the uv space of an object. The scene creates a 'UV clone' of a mesh, looks up closest locations on it and transfers attributes (in this case point position) from the original object.

Used like this it can be used to "texture" an object with a mesh or a curve, similar to Anto's 'Deform by UV'. Keywords: UV to Location, UV

local backup:UVToLocation_for_polymeshes_2.zip

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Post Reply
User avatar
rray
Moderator
Posts: 1775
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

ICE tip #5988 - uv to location

Post by rray » 21 Dec 2015, 17:25

Now that the "reinterpret geometry" bug is fixed, this method works nicely for looking up locations from UV on poly objects:

* have an object with uvs ready (get->lizard)
* create a copy, use ICE to move each point to its uv coordinate (for example using uvmorph compound)
* lookup closest location on uv morphed copy, reinterpret back to original

Image

(the attached scene additionally "explodes" the uvs into uv islands)
Attachments
UVToLocation_for_polymeshes.zip
.scn (2015 SP2)
(357.67 KiB) Downloaded 149 times
softimage resources section updated Jan 5th 2024

User avatar
rray
Moderator
Posts: 1775
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: ICE tip- uv to location

Post by rray » 21 Dec 2015, 17:27

I'm wondering whether this can be done with 1 mesh only, with 2 ice trees
softimage resources section updated Jan 5th 2024

User avatar
rray
Moderator
Posts: 1775
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: ICE tip- uv to location

Post by rray » 21 Dec 2015, 19:19

Of course that's possible ;)
Not only "Set Data" can be used on other objects than "self" - also "Add Point" !
This way the evaluation order of the two stacks can be nicely controlled.

all in 1 ICE Tree on the Lizard mesh:

* save topology, disconnect uv islands
* morph to uv
* add points on pointcloud at morphed locations using closest locations
* morph back to original positions
* move pointcloud's points to emit locations
* restore topology

reinterpret not even needed :ymblushing:
softimage resources section updated Jan 5th 2024

anhungxadieu
Posts: 175
Joined: 17 Apr 2014, 10:39
Skype: nguyenvuducthuy

Re: ICE tip- uv to location

Post by anhungxadieu » 22 Dec 2015, 03:01

rray wrote:Of course that's possible ;)
Not only "Set Data" can be used on other objects than "self" - also "Add Point" !
This way the evaluation order of the two stacks can be nicely controlled.

all in 1 ICE Tree on the Lizard mesh:

* save topology, disconnect uv islands
* morph to uv
* add points on pointcloud at morphed locations using closest locations
* morph back to original positions
* move pointcloud's points to emit locations
* restore topology

reinterpret not even needed :ymblushing:
hi,
Can you share this scene? thank you!

User avatar
rray
Moderator
Posts: 1775
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: ICE tip- uv to location

Post by rray » 22 Dec 2015, 03:49

Thanks for your interest anhungxadieu, will do that tomorrow
softimage resources section updated Jan 5th 2024

User avatar
rray
Moderator
Posts: 1775
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: ICE tip- uv to location

Post by rray » 22 Dec 2015, 15:02

If you don't need the old topology back, you can skip the extra closest lookup in the end
Attachments
UVToLocation_for_polymeshes_2.zip
(273.62 KiB) Downloaded 141 times
softimage resources section updated Jan 5th 2024

anhungxadieu
Posts: 175
Joined: 17 Apr 2014, 10:39
Skype: nguyenvuducthuy

Re: ICE tip- uv to location

Post by anhungxadieu » 23 Dec 2015, 02:49

hi rray,

thank you! :ymhug:

User avatar
gaboraa
Posts: 314
Joined: 16 Apr 2010, 23:14

Re: ICE tip- uv to location

Post by gaboraa » 23 Dec 2015, 11:36

Thank you, it is great to learn how to do that!

User avatar
rray
Moderator
Posts: 1775
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: ICE tip- uv to location

Post by rray » 23 Dec 2015, 14:43

you're welcome - btw the ICE tree on the lizard can be frozen if the uv's don't need to be changed later
softimage resources section updated Jan 5th 2024

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests