Itoo Software Forum

Author Topic: Random Offset Cladding with Specific UV's  (Read 556 times)

JM2145

  • Jr. Member
  • **
  • Posts: 75
Random Offset Cladding with Specific UV's
« on: October 12, 2021, 10:08:10 PM »
I've knocked up the attached example using FloorGenerator, the problem with floor gen is the mapping.

So I have 3 brick sizes, 800*140mm, 800*80mm and 800*60mm.

Each row contains the same brick, the rows are randomized in terms of which brick size is used, each row is offset, all bricks need an individual uvw map of 1000*1000*1000mm centred to each 'brick'

There are 3 different materials, Basalt, Lavastone and Quartz, and I have 3 different version of each material, so 9 materials in total.  The materials need to be randomized on the bricks regardless of brick size

What is the most efficient way to achieve this?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2828
Re: Random Offset Cladding with Specific UV's
« Reply #1 on: October 13, 2021, 10:04:17 AM »
Thanks for the question. Please see the attached file, hopefully it is quite self explanatory, but if you do have any questions please let me know. For the material randomisation, I suggest using RailClone Colour, but you could also use a multi-sub material and a Material Node in RailClone to randomise the IDs if you prefer.



I hope it helps,
Paul
« Last Edit: October 13, 2021, 10:51:18 AM by Paul Roberts »
Paul Roberts
iToo Software

JM2145

  • Jr. Member
  • **
  • Posts: 75
Re: Random Offset Cladding with Specific UV's
« Reply #2 on: October 13, 2021, 10:33:37 AM »
Great thanks Paul

I'll check it out now, with regards the material part, I'm fine with that bit as ultimately I'll collapse it, I just wanted to make sure each segment retained it's mapping coordinates.

JM2145

  • Jr. Member
  • **
  • Posts: 75
Re: Random Offset Cladding with Specific UV's
« Reply #3 on: October 13, 2021, 10:34:14 AM »
Also, any chance you can save that scene as 2021?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2828
Re: Random Offset Cladding with Specific UV's
« Reply #4 on: October 13, 2021, 10:51:39 AM »
I've updated my post above with a 2019 version. Cheers,
Paul
Paul Roberts
iToo Software

JM2145

  • Jr. Member
  • **
  • Posts: 75
Re: Random Offset Cladding with Specific UV's
« Reply #5 on: October 13, 2021, 10:52:04 PM »
Paul this is all working great apart from one thing.  How do I get it to turn a corner.  I could draw another spline, and copy the railclone across but the random heights are then misaligned?  I need the same courses to continue around corners

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2828
Re: Random Offset Cladding with Specific UV's
« Reply #6 on: October 14, 2021, 10:30:55 AM »
Hi,

You're right, a clipping spline approach won't work around corners. I've adapted the style to work using a spline for the X Axis and the Generator's Y Size to set the height. Please take a look. It looks more complex, but as you'll see, most of the nodes are there to make the corners alternately overlap on the corners.



Hope it helps,
Paul
Paul Roberts
iToo Software

JM2145

  • Jr. Member
  • **
  • Posts: 75
Re: Random Offset Cladding with Specific UV's
« Reply #7 on: October 14, 2021, 01:31:27 PM »
Hi Paul

Thanks for this, only issue is my height is irregular.  See the attached, this is wall that needs cladding, so effectively the green line is the clipping spline

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2828
Re: Random Offset Cladding with Specific UV's
« Reply #8 on: October 15, 2021, 10:27:46 AM »
Ah. Ok, the last version probably won't work for this case then. Back to the Clipping version, you should be able to do this by copy-pasting the RailClone object, one for each side that need to align. As long as you don't change the random number generator's seed value, then each one should have the same sequence on the Y axis. You can still reseed from the General rollout though, which will have the effect of randomising the offsets on the X-axis and the material IDs so that the walls don't obviously repeat. Sample attached.

Hope that can help,
Paul
Paul Roberts
iToo Software

JM2145

  • Jr. Member
  • **
  • Posts: 75
Re: Random Offset Cladding with Specific UV's
« Reply #9 on: October 15, 2021, 11:31:38 AM »
Hmmm it doesn't seem to work, I've attached my clipping splines.  Could it be to do with where the distribution/generation starts from?  Is it pivot related?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2828
Re: Random Offset Cladding with Specific UV's
« Reply #10 on: October 15, 2021, 11:45:39 AM »
It's not working because the main spline still contains several sub splines. If you split the facade into 4 pieces and use a separate RC object for each, then it should be OK.



Best,
Paul
Paul Roberts
iToo Software

JM2145

  • Jr. Member
  • **
  • Posts: 75
Re: Random Offset Cladding with Specific UV's
« Reply #11 on: October 15, 2021, 11:50:32 AM »
Paul apologies I'd attached the wrong clipping spline, my mistake, I've attached the correct one.  It appears the generation is happening from the bottom of the clipping splines, so when I copy to the shorter one, the generation messes up, I've quickly fixed it by just making the bottoms of each spline align in Z (as per the wrong example I attached), and then just deleted the excess after converting to poly.  Would still be good to be able to have the generation start from perhaps a working pivot common between all splines so that it's consistent across random splines and I can kepe it parametric that way.

In the correct splines attached to this post and using the numbers In your markup 1 2 and 4 all have the same minimum Z height, so they're consistent, 3 has a different minimum Z height and so messes up

JM2145

  • Jr. Member
  • **
  • Posts: 75
Re: Random Offset Cladding with Specific UV's
« Reply #12 on: October 15, 2021, 11:54:56 AM »
To avoid any further confusion, my Jpegs are named Wrong and Correct in relation to the layout continuation around the corner