How to Move UV Coords ?

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Frank1000
Posts: 339
Joined: 16 Oct 2011, 14:13
Skype: the2he

How to Move UV Coords ?

Post by Frank1000 » 12 Nov 2013, 19:50

Hi,
on an ICE swarm of textured polys, i need to move the UV points of each poly of the swarm with a certain math. I've seen this http://softimage.wiki.softimage.com/xsi ... ETrees.htm but don't know yet how to achive the goal. How would I need to start on this ?

This is what i have right now
Image

Regards,
Frank

forton
Posts: 210
Joined: 25 Nov 2011, 17:57

Re: How to Move UV Coords ?

Post by forton » 13 Nov 2013, 11:44

I'm not really sure what you're after.
If you use image lookup instead of a normal image node in your shadertree you can offset (add, subtract) your texture coordinates (texture space generator) with an ice attribute (e.g. point position), I used this trick to map an image onto a grid of instances.

Cheers, Wim

Frank1000
Posts: 339
Joined: 16 Oct 2011, 14:13
Skype: the2he

Re: How to Move UV Coords ?

Post by Frank1000 » 13 Nov 2013, 13:41

Hi Wim,
thx for your reply. The goal is to animate the UV textures projection. I've setup the image-lookup like below, how would i now go ahead to make the UV points controllable within ICE ? Would be great if you can help me out with it.

Image

forton
Posts: 210
Joined: 25 Nov 2011, 17:57

Re: How to Move UV Coords ?

Post by forton » 13 Nov 2013, 17:58

I found the scene where I was trying to offset the particles texture with their position, so the mapping gets the proper position related to the particles. you can of course input any ice attribute.
It seems that you have to render to see the image.
Check this scene to understand what i meant...

P.S. it was not texture space generator but projection lookup that I was using.
mapping_particles.zip
You do not have the required permissions to view the files attached to this post.

Frank1000
Posts: 339
Joined: 16 Oct 2011, 14:13
Skype: the2he

Re: How to Move UV Coords ?

Post by Frank1000 » 14 Nov 2013, 11:49

Hi Forton,
i c , this projects the texture all over all particles. My goal is to animate the cut out of each texture for each particle (rectangle) of the pointcloud. I'm not good at ICE, need a bit help on how to set it up.

Thx

NNois
Posts: 726
Joined: 09 Jun 2009, 20:33

Re: How to Move UV Coords ?

Post by NNois » 14 Nov 2013, 13:20

Hi,
I see ou managed to have an ID parameter passed to the rendertree via the "timesource" of the image clip node, so you are half the way with what you're asking.
You need to export from ice a custom attribute representing what you have in mind to transform the uv in the render tree, it could be a
- scalar attribute if you are scaling the uv for example
- a vector attribute if you are offsetting or transforming the UV etc...
... like this screenshoot.

PS: this attribute from ice needs to be perpoint, so your graph need to start from a "get pointID, get point position etc..."
You do not have the required permissions to view the files attached to this post.

NNois
Posts: 726
Joined: 09 Jun 2009, 20:33

Re: How to Move UV Coords ?

Post by NNois » 14 Nov 2013, 13:25

then for the cut out you can
- use a modulate by volume compound for example to drive this custom attribute
- or use a the currentframe node modulated with for example the X position of your particles to automagicaly animate your custom attribute.

Frank1000
Posts: 339
Joined: 16 Oct 2011, 14:13
Skype: the2he

Re: How to Move UV Coords ?

Post by Frank1000 » 15 Nov 2013, 17:52

thx NNois