Jump to content

UV loop

Hans Peter

Recommended Posts



I need a bump map to repeat on each primitive of an object. Not I can use an uv flatten in a for each loop and apply a map onto each prim. That works with simpler scenes. But on my scene the loop has to make 600.000 passes + it tends to crash. Does anyone know a way to increase the speed of this process or a better, faster way?



Link to comment
Share on other sites

why don't you split that object or whatever it is into number of simple segments and run the loop on those? that should help with crashing... otherwise hard to suggest anything as I don't understand what exactly are you trying to achieve.

Link to comment
Share on other sites

what davpe said or you could try compiled blocks and see if it still crashes.. fastest way would be to use a primwrangle to create the UVs I guess. assuming each prim has 4 points you can run this in a primwrangle

setvertexattrib(0, "uv", @primnum, 0, {0,0,0});
setvertexattrib(0, "uv", @primnum, 1, {0,1,0}); 
setvertexattrib(0, "uv", @primnum, 2, {1,1,0}); 
setvertexattrib(0, "uv", @primnum, 3, {1,0,0});  

Edited by 3dome
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...