Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Heraklit

UV loop

Hey,

 

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?

 

Cheers!

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now