Itoo Software Forum

Author Topic: Help with materials for Array 2S1 generated tiles  (Read 608 times)

TL1895

  • Sr. Member
  • ****
  • Posts: 359
Help with materials for Array 2S1 generated tiles
« on: July 06, 2021, 04:11:54 PM »
Hello,
It's been a long time since I tried to create a custom RC object!

So, I made a tile generator and have questions regarding the most efficient was to add a material.
Each tile needs a common material that has just one bitmap.  I'd like to have RC use this bitmap, with variation for UVW, to avoid texture repetition.
If necessary, I may create some additional texture bitmaps, but was wondering what could be accomplished with just one map!  :P

If possible, please advise with some methods or even tutorials, thanks a lot!

TL1895
« Last Edit: July 06, 2021, 04:14:56 PM by TL1895 »

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Help with materials for Array 2S1 generated tiles
« Reply #1 on: July 06, 2021, 04:16:36 PM »
Hi

make Your initial multitile object with randomized UVs in the first place. Then offset randomly with UVW xform node in RC.
Would that work for You ? Your initial Multitile object can be nested RC object as well for more randomness generation.

You can take a look at this similar thread:
« Last Edit: July 06, 2021, 04:19:06 PM by Rokas »
Rokas

TL1895

  • Sr. Member
  • ****
  • Posts: 359
Re: Help with materials for Array 2S1 generated tiles
« Reply #2 on: July 06, 2021, 04:34:21 PM »
Hi

make Your initial multitile object with randomized UVs in the first place. Then offset randomly with UVW xform node in RC.
Would that work for You ? Your initial Multitile object can be nested RC object as well for more randomness generation.

You can take a look at this similar thread:

Hi Rokas,

That was so fast!  Thank you, I am going to try again based on your suggestions.
And the thread you linked is also very helpful.

Best regards,
TL1895

TL1895

  • Sr. Member
  • ****
  • Posts: 359
Re: Help with materials for Array 2S1 generated tiles
« Reply #3 on: July 06, 2021, 07:48:06 PM »
I tried the nested technique and will stick with it!
Thanks again for the suggestions and the great tutorial.

TL1895

  • Sr. Member
  • ****
  • Posts: 359
Re: Help with materials for Array 2S1 generated tiles
« Reply #4 on: July 29, 2021, 08:57:07 PM »
Hi Rokas,

I've made good use of the style, for my flooring, based on the nested option/tutorial.

Now, I am wondering, how to use my style on a vertical surface?
Do I need to create a new style?
I'm going to be able to test a bit later tonight...


Thank you,
TL1895

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1990
Re: Help with materials for Array 2S1 generated tiles
« Reply #5 on: July 30, 2021, 10:05:41 AM »
Hi!

You can apply any style that using clipping areas to a vertical spline simply by changing the Auto Align setting to X->XY. If you have multiple splines and you find that they are interfering with each other, you may also benefit from changing Hierarchy checking to none.



Here's a little bit about what these settings do:

Auto Align
This option creates array aligned automatically to each sub-spline when using Extend X/Y mode. It is ideal for roof and panels. Two modes are available, for both modes Z axis is always perpendicular to the plane formed by the spline.

  • X --> XY In this mode the X axis is parallel to the RailClone XY plane (considering the  local axis of the object).
  • To Spline In this mode the X axis is aligned with the Spline's first segment (you can use Make first vertex and Reverse spline to modify alignment).
Hierachy Checking
This option determines the way that RailClone processes multiple or stacked splines when using Extend X/Y Size mode.

  • Complete uses the original RC2 behaviour, stacked splines are alternatively include/exclude geometry
  • None treats each spline as unique, overlapping or stacking splines has no effect.
  • By Material ID uses the material ID assigned to the splines to determine which should be considered to belong to the same array.
Paul Roberts
iToo Software

TL1895

  • Sr. Member
  • ****
  • Posts: 359
Re: Help with materials for Array 2S1 generated tiles
« Reply #6 on: July 30, 2021, 02:58:44 PM »
Hi!

You can apply any style that using clipping areas to a vertical spline simply by changing the Auto Align setting to X->XY. If you have multiple splines and you find that they are interfering with each other, you may also benefit from changing Hierarchy checking to none.



Here's a little bit about what these settings do:

Auto Align
This option creates array aligned automatically to each sub-spline when using Extend X/Y mode. It is ideal for roof and panels. Two modes are available, for both modes Z axis is always perpendicular to the plane formed by the spline.

  • X --> XY In this mode the X axis is parallel to the RailClone XY plane (considering the  local axis of the object).
  • To Spline In this mode the X axis is aligned with the Spline's first segment (you can use Make first vertex and Reverse spline to modify alignment).
Hierachy Checking
This option determines the way that RailClone processes multiple or stacked splines when using Extend X/Y Size mode.

  • Complete uses the original RC2 behaviour, stacked splines are alternatively include/exclude geometry
  • None treats each spline as unique, overlapping or stacking splines has no effect.
  • By Material ID uses the material ID assigned to the splines to determine which should be considered to belong to the same array.

Hi Paul,

Thanks so much.  The additional information about hierarchy checking is great!
As you mentioned, I was able to easily apply it vertically, but now noticed I am seeing tiling/repetition of my bitmap...
I must not grasp the idea of the RC uvwxform/uvw mapping segments stuff...

Thanks again
« Last Edit: July 30, 2021, 03:02:43 PM by TL1895 »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1990
Re: Help with materials for Array 2S1 generated tiles
« Reply #7 on: July 30, 2021, 07:00:59 PM »
Hi!

Are you using a renderer other than V-Ray? If so you'll need to disable the Instancing Engine by unchecking that option from the Display Rollout in order for box mapping and the UVW XForm node to work.

Cheers,
Paul
Paul Roberts
iToo Software

TL1895

  • Sr. Member
  • ****
  • Posts: 359
Re: Help with materials for Array 2S1 generated tiles
« Reply #8 on: July 30, 2021, 07:54:31 PM »
Hi Paul,

No, I am using the latest V-Ray :)
I've been tied up today, so have not had time to investigate yet :(
I'm going to bet it's a simple thing hidden somewhere within the RailClone object and or the material setup...

Let's simplify and say you have brick pattern and need to use one bitmap, so each face get's a UVW variation of that bitmap. (Not color/tint variation.)
Is there a simple scene available here, where this has already been accomplished?

Thank you,
TL1895

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1990
Re: Help with materials for Array 2S1 generated tiles
« Reply #9 on: August 02, 2021, 09:26:18 AM »
Hi,

Please find a sample file attached. I hope it helps.

Paul
Paul Roberts
iToo Software

TL1895

  • Sr. Member
  • ****
  • Posts: 359
Re: Help with materials for Array 2S1 generated tiles
« Reply #10 on: August 02, 2021, 03:45:14 PM »
Thank you Paul,

I'll take a look and report back...

Best wishes,
TL1895

TL1895

  • Sr. Member
  • ****
  • Posts: 359
Re: Help with materials for Array 2S1 generated tiles
« Reply #11 on: August 02, 2021, 07:38:44 PM »
Hi,

Please find a sample file attached. I hope it helps.

Paul

Hello Paul,

I was able to take your example and make it work.
However, I cannot seem to make it work using the nested style...

May I send you a scene for assistance, please?

Thank you
« Last Edit: August 02, 2021, 11:23:32 PM by TL1895 »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1990
Re: Help with materials for Array 2S1 generated tiles
« Reply #12 on: August 03, 2021, 02:33:17 PM »
Hi,

Thanks for sending in your scene. I've just replied via email. Hope it helps.

Paul
Paul Roberts
iToo Software