Skip to main content
9 events
when toggle format what by license comment
Jul 4, 2021 at 12:06 history edited Markus von Broady CC BY-SA 4.0
generating multiple random values
Jul 4, 2021 at 10:53 history edited Markus von Broady CC BY-SA 4.0
fixing the table and small improvements
Feb 9, 2021 at 20:13 comment added kingsushi001 Thank you very much @Markus von Broady. My node setup is now working.
Feb 9, 2021 at 18:49 comment added Markus von Broady @kingsushi001 you duplicated everything except the random node. Sadly I don't know how to get two random values for each object. So what I like to do is to copy my random value into a cup (sine math node), and stir it a lot (big number in multiply math node). Remember to clamp the sine node, so instead of -1..1 range you get clamped 0..1, the same as random range from Object Info node. i.imgur.com/jN3hgT8.png
Feb 9, 2021 at 18:01 comment added kingsushi001 Thank you for the reply, highly appreciate it. I am interested in the method you described at the end of your post, randomizing X and Y separately. I have tried doing as you said, duplicating the X to make Y etc etc, unfortunately I'm still having troubles. I have attached my blend file. Maybe you can have a look? [www38.zippyshare.com/v/lyGeedEF/file.html]
Feb 9, 2021 at 11:20 comment added Markus von Broady @kingsushi001 you would have to duplicate the entire setup for X (together with the input value), and plug it to Y. So you would tell the setup how many columns there are and randomize X based on that, and tell the setup how many rows there are, and randomize Y based on that. This would assume you always fill your grid completely (no empty space on the last row) - If you want to fit e.g. 23 elements into 5x5 grid - look into the update of my answer.
Feb 9, 2021 at 11:18 history edited Markus von Broady CC BY-SA 4.0
Added a node setup for 2D atlas (textures packed also horizontally)
Feb 9, 2021 at 2:14 comment added kingsushi001 This really helped me out as I have a similar problem as OP. So thank you for that. I have one question though. If my atlas is, for instance a 5x5 grid, how would I go about randomly choosing the UV in the X and Y directions? I thought it would be as simple as plugging the last Multiply node into the X and Y inputs on the Combine XYZ. Obviously that didn't work. Any help with this would be greatly appreciated
Jan 31, 2021 at 11:15 history answered Markus von Broady CC BY-SA 4.0