how transform or rotate uv in karma?

   2188   7   0
User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
Hi, i'm trying to rotate or scale uv inside karma i used a node uv transform butit strange because at default strecth the uv and if i try to rotate it does something strange, i mean like tiling the texture and rotate it
Edited by Piledriver - May 19, 2022 17:12:36
User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
really? no one?
User Avatar
Member
8594 posts
Joined: July 2007
Offline
you said you are using uv transform, so I assume VEX based shader

1. if you bind your uv attribute, then pass through UV Transform and then to uv input of your shader it should not change anything by default
if however you didn't pass in the bound uv you may see tiled image per polygon since fallback uvs for polys are intrinsic poly st coordinates

2. if you rotate, the default pivot is 0,0 so it will not rotate around the center but around the corner, you may need to change pivot to 0.5, 0.5 if you expect it to rotate around center

3. the default Wrapping mode for texture VOP is Repeat
so if your UV transform results in the uvs covering more than 0-1 uv grid, then the image will repeat, creating tiling
you can set the Wrap mode to Decal or Streak for different behavior
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
yes, principled shader
User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
now the tiling when i scale its correct, just when rotate i have strange results
Edited by Piledriver - May 20, 2022 13:11:34
User Avatar
Member
8594 posts
Joined: July 2007
Offline
Piledriver
where i change thecenter pivot?
Directly on UV Transform VOP
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
ok, just the rotate don't work
User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
ok i change the last value and seems work, thanks
  • Quick Links