Itoo Software Forum

RailClone => RailClone Lite => Topic started by: rohan256 on September 02, 2023, 11:30:17 AM

Title: Transform causes uvw to stretch.
Post by: rohan256 on September 02, 2023, 11:30:17 AM
Hi. If I use transform to scale any segment, its textures also gets scaled despite using realworld mapping. How can I retain texture scale even after scaling the segments?
Title: Re: Transform causes uvw to stretch.
Post by: Michal Karmazín on September 04, 2023, 07:15:38 AM
Hi,

In some situations - like this one, you might find handy the possibility to map it directly within the RailClone plug-in by enabling the Deform > Mapping > Apply Box Mapping feature. Please feel free to check more detailed information about how to "To Add Box Mapping to segments (https://docs.itoosoft.com/railclone/style-editor/segments#Segments-ToAddBoxMappingtosegments)" in our online reference guide.

I hope that helps.

Best regards,
Title: Re: Transform causes uvw to stretch.
Post by: rohan256 on September 04, 2023, 03:12:48 PM
I've have enabled box mapping for the segment in the deform tab. I think the problem is   transform operator is scaling the segment along with the texture. There should be a uvw map operator that we can add at the end.
Right now I have put a uvw map modifier on top of the railclone object, but this is not a clean solution. Is there any other way to tackle this?
Title: Re: Transform causes uvw to stretch.
Post by: Michal Karmazín on September 05, 2023, 09:02:32 AM
Hi,

In such a case, please try disabling the Display > Render > Use Instancing Engine option to see if there’s any difference (might be, that’s just a partially supported feature in case of your render engine). I hope that helps.

Best regards,
Title: Re: Transform causes uvw to stretch.
Post by: rohan256 on September 05, 2023, 12:16:53 PM
Thanks! Disabling the instancing engine worked. I'm using VRay GPU which doesn't support it.