Itoo Software Forum

Author Topic: Mapping for Random Fixed Size  (Read 244 times)

RTstudio

  • Newbie
  • *
  • Posts: 22
Mapping for Random Fixed Size
« on: November 07, 2020, 08:50:21 PM »
Hi there, I'm trying to create a Deck with random Fixed size on X, the only problem I have it's with the mapping, there's a visible pattern of my texture where it should be the end of the plank, a temporary solution it's applying random offset with UVW Xform, but it's apllying on the whole generator instead per plank. I'm trying to achieve a Floor Generator behavior, where every piece has his mapping. What should I do?

I'm attaching some test and the file in Max 2021.

Dragan

  • Hero Member
  • *****
  • Posts: 709
Re: Mapping for Random Fixed Size
« Reply #1 on: November 07, 2020, 09:33:47 PM »
Hi
You can try with MultiTexture Map and Material node to randomize Material ID.
I can open the file due to the Max version, can you please downgrade it to the Max2018.

RTstudio

  • Newbie
  • *
  • Posts: 22
Re: Mapping for Random Fixed Size
« Reply #2 on: November 07, 2020, 09:46:32 PM »
Ok Im gonna test that, im attaching the file in max 2018

RTstudio

  • Newbie
  • *
  • Posts: 22
Re: Mapping for Random Fixed Size
« Reply #3 on: November 07, 2020, 10:15:05 PM »
Well its the same ressult and the randomness its not very noticible, at least not as Railclone Color Map, but thank u so much for the material node tip, Didn't occure to me that the Randomize MaterialID type in Multitexture could work with the Material node in RailClone.

Dragan

  • Hero Member
  • *****
  • Posts: 709
Re: Mapping for Random Fixed Size
« Reply #4 on: November 07, 2020, 10:51:36 PM »
Hi,
Try this one.

RTstudio

  • Newbie
  • *
  • Posts: 22
Re: Mapping for Random Fixed Size
« Reply #5 on: November 08, 2020, 12:10:51 AM »
Thanks, but I've already tried this, this solve the issue with the black seams from the texture, but its scaling the mapping with the size of the plank, what I want it's to mantain the scale from the mapping in each plank, just as Floor Generator does it. I think that I need to make the random segments manually as the Style from the gallery.

Dragan

  • Hero Member
  • *****
  • Posts: 709
Re: Mapping for Random Fixed Size
« Reply #6 on: November 08, 2020, 07:21:04 AM »
Maybe to scale it back to the original size with the UVW Xform operator.
« Last Edit: November 08, 2020, 05:19:12 PM by Dragan »

RTstudio

  • Newbie
  • *
  • Posts: 22
Re: Mapping for Random Fixed Size
« Reply #7 on: November 09, 2020, 08:20:44 PM »
I think this solution it's doing the job, although I can't control de maximum size of the board for more random values, only if I change the segment scale and some adjustments in the arithmetic, but Thank u so much, I'll keep working on this, but also Making more segments with different x values with random operator (just like the Library style FloorBoard) it's working fine too.

Dragan

  • Hero Member
  • *****
  • Posts: 709
Re: Mapping for Random Fixed Size
« Reply #8 on: November 09, 2020, 08:26:48 PM »
Yes, I had to restrict the maximum for Random so I don't need to calculate for the UVW Xform scale larger than 1 but this can be done too. Let me check the Style again.


Dragan

  • Hero Member
  • *****
  • Posts: 709
Re: Mapping for Random Fixed Size
« Reply #9 on: November 09, 2020, 08:45:25 PM »
How mapping should act if the transformed Segment is bigger than the original? Should I scale it to Segments size or leave it as original but with tiling?

Dragan

  • Hero Member
  • *****
  • Posts: 709
Re: Mapping for Random Fixed Size
« Reply #10 on: November 09, 2020, 09:13:02 PM »
Here is an updated Style. Please let me know if that works for you.

RTstudio

  • Newbie
  • *
  • Posts: 22
Re: Mapping for Random Fixed Size
« Reply #11 on: November 09, 2020, 09:37:51 PM »
I don't think so, it's scaling back to the size of the piece, I think that it's too complicated in the generator, what I'm looking for it's that the mapping should follow the center of the piece just as Floor Generator does it, Your B solution was perfect, what It needed was just scale the original segment to the larger value so this could mantain the mapping proportion for the rest of the segments, the only thing was to make this size customizable with the mapping, thank u so much for taking your time to help me with this.

Dragan

  • Hero Member
  • *****
  • Posts: 709
Re: Mapping for Random Fixed Size
« Reply #12 on: November 09, 2020, 09:50:48 PM »
Did you check the Tile/Scale parameter?

RTstudio

  • Newbie
  • *
  • Posts: 22
Re: Mapping for Random Fixed Size
« Reply #13 on: November 09, 2020, 09:58:11 PM »
Absolutely not, hahaha, let me check that