UV transform Question

   1060   3   0
User Avatar
Member
19 posts
Joined: Dec. 2021
Offline
Hello, I Have use uv transform to scale a mesh UV from (0-1) to (0-8). And how could I transfer uv to make uv from (0-8) to (0-1) * 8 (looping 8 times)? Right Now if I only use attribute wrangle to tranfer uv it will not be right on the edge. Thanks!

Attachments:
uv.png (8.8 KB)
uv2.png (565.9 KB)
split_mesh.hip (224.3 KB)

User Avatar
Member
7801 posts
Joined: Sept. 2011
Online
@uv *= 8;

set texture reads to repeat mode.
User Avatar
Member
19 posts
Joined: Dec. 2021
Offline
jsmack
@uv *= 8;

set texture reads to repeat mode.
so there is no other way to split uv and let uv looping 8 times? Thanks anyway!
User Avatar
Member
8583 posts
Joined: July 2007
Offline
main issue is that your points lay directly on uv borders
so right most points of one tile have the same u coordinate as leftmost of neighbour tile
which makes it difficult to offset correctly using point uv coordinates directly

there is man options, but the most straightforward in your case may be getting average uv per prim which will be within the uv tile for each slice and therefore you can clearly compute the offset to move them to 0-1 tile
Edited by tamte - June 1, 2022 03:59:30

Attachments:
split_mesh_fix.hip (257.2 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links