how transform or rotate uv in karma?

   4492   7   0
User Avatar
Member
99 posts
Joined: 11月 2018
オフライン
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 - 2022年5月19日 17:12:36
User Avatar
Member
99 posts
Joined: 11月 2018
オフライン
really? no one?
User Avatar
Member
9299 posts
Joined: 7月 2007
オフライン
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
CG Supervisor
Framestore, NY
User Avatar
Member
99 posts
Joined: 11月 2018
オフライン
yes, principled shader
User Avatar
Member
99 posts
Joined: 11月 2018
オフライン
now the tiling when i scale its correct, just when rotate i have strange results
Edited by Piledriver - 2022年5月20日 13:11:34
User Avatar
Member
9299 posts
Joined: 7月 2007
オフライン
Piledriver
where i change thecenter pivot?
Directly on UV Transform VOP
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
99 posts
Joined: 11月 2018
オフライン
ok, just the rotate don't work
User Avatar
Member
99 posts
Joined: 11月 2018
オフライン
ok i change the last value and seems work, thanks
  • Quick Links