Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: manel_reig on July 21, 2021, 08:18:38 PM

Title: uvw XFORM OFFSET
Post by: manel_reig on July 21, 2021, 08:18:38 PM
Hello,
I am having problems mapping simple objects objects. What I want to achieve is not to have the same mapping in the two faces (A and B from image) I have tried with the UVW Xform node, but it does not work the way one would expect and I do not find the way to map the object correctly...
(https://i.postimg.cc/bYx7w5C6/Sin-t-tulo-3.jpg)


thanks



Title: Re: uvw XFORM OFFSET
Post by: Paul Roberts on July 22, 2021, 11:22:13 AM
Hi,

Thanks for the question. The UVW XForm operator is designed to randomise the rotation, tiling and offset of UVW on a per-segment basis. I'm afraid it isn't possible to adjust UVWs per face, element or material ID. One solution therefore might be to adjust the UVW mapping on the base geometry so that A and B don't share the same UVW coordinates. In that way, you can still use the UVW Offset operator to randomise the offset if that's what you'd like to achieve.

(https://i.imgur.com/qQdtggf.png)

I hope that helps, please let me know if you have further questions
Paul
Title: Re: uvw XFORM OFFSET
Post by: manel_reig on July 22, 2021, 07:04:02 PM
hello Paul,

thanks for the answer.

Sadly for what you say I think the only possibility to achive what I want (continuity on mapping coordinates on final railclone object) it is to map the railclone object afterwards.

The original object is already mapped in a way that A and B surface do not share same mapping coordinates. But then, the resulting railclone object obviously has no continuity on the UVW mapping coordinates. I always have to map the railclone objects afterwards, but I was just trying to see if there is a way to not waste time on that and let railclone do the mapping.

Randomaizing coordinates by element is also no solution, as I am trying to get continuity on the mapping coordinates. Also using the "box mapping" on each element should do the trick, but with that I get same coordinates on both surfaces...so the question is, is there a way to achieve continuity and different UVW mapping coordinates in both surfaces?

EDIT:
ok, I realised that that happens when the elemnt in question is aligned in "bottom" on the y axes...if it is center, they share half of them and "top" are different, at least for this element size ::)

BOTTOM

(https://i.postimg.cc/vT35bqhm/Sin-t-tulo-5.jpg)

CENTER

(https://i.postimg.cc/MKHQ1Yty/Sin-t-tulo-6.jpg)

FRONT

(https://i.postimg.cc/CKTnTp0N/Sin-t-tulo-7.jpg)

any ideas?


thank you
Title: Re: uvw XFORM OFFSET
Post by: Paul Roberts on July 23, 2021, 10:51:53 AM
Thanks for the extra information. I didn't realise you were using automatic box mapping before. In that case, my recommendation would be to assign a different material ID to those sides and then create a multi-sub object material that allows you to modify the offset of the materials separately.

(https://i.imgur.com/YBnXt5c.gif)

I hope that helps,
Paul
Title: Re: uvw XFORM OFFSET
Post by: manel_reig on July 23, 2021, 03:29:58 PM
thank you Paul, that is a good idea..sorry but sometimes I feel kind of dumb when dealing with railclone