Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: enzo_87 on December 17, 2019, 12:39:37 PM

Title: UM Mapping elements
Post by: enzo_87 on December 17, 2019, 12:39:37 PM
Hi everyone,
I'm trying to make a very simple stairs.

Is there anyway to map the elements in different way?

possible to do that applying different ID and then using the multimaterial?

also, is it possible to make it follow the handrails?
Title: Re: UM Mapping elements
Post by: Rokas on December 17, 2019, 02:28:43 PM
I just tried to replicate Your scene and it works here fine:

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

Probably I did something wrong. But without file can's say what.
Title: Re: UM Mapping elements
Post by: enzo_87 on December 17, 2019, 03:26:30 PM
it's actually more probal the problem is mine.
i come from c4d and after 10 years is difficult to change habits.
but I'm trying.

file attached, it's probably a big mess, so any tips are appreciated :)

https://www.dropbox.com/s/780g7vzlax4fwpe/stairs.zip?dl=0

anyway, I applied the material at the RC object but I don't see any projection, and it appears only if I put the uwmap modifier to the RC object.

is this way to proceed wrong?
should I work on the original asset, putting the correct projection on it and evetually work on the RC object?

sorry for the silly questions
Title: Re: UM Mapping elements
Post by: Rokas on December 17, 2019, 03:43:53 PM
Thanks for file

As You are using Scanline rendere, You need to disable instancing engine.
Select RailClone object
Remove UVW modifier,
Disable instancing engine and manually rebuild RailClone
(https://i.imgur.com/15UChui.png)

Hope this helps.

Should You work on the original asset, putting the correct projection on it and evetually work on the RC object?
yes, generally it is better workflow. Assign the same material to Your segments and Whole RC model.
Title: Re: UM Mapping elements
Post by: enzo_87 on December 17, 2019, 03:59:09 PM
well, Iàm actually on vray gpu, still the trial though.

I only copied the file in a new scene without assign any renderer
Title: Re: UM Mapping elements
Post by: Rokas on December 17, 2019, 04:02:00 PM
Do You have any further issues, or is it ok now ?
Title: Re: UM Mapping elements
Post by: enzo_87 on December 17, 2019, 04:15:58 PM
well,
I'm trying, I'll keep you posted.
thanks for the moment :)
Title: Re: UM Mapping elements
Post by: enzo_87 on December 17, 2019, 04:57:18 PM
Ok,
it seems to work.
I just need to get faster in the mapping process and understand more stuff now.

thanks for helping.
Lorenzo
Title: Re: UM Mapping elements
Post by: Rokas on December 17, 2019, 05:00:03 PM
Great! If You need any help, let us know.
Title: Re: UM Mapping elements
Post by: enzo_87 on December 17, 2019, 05:04:56 PM
actually....
something I don't get.

repetitions.
watching the "getting start" I thought I should have tick the "box mapping"...but again, I'm messing it up.
Title: Re: UM Mapping elements
Post by: Rokas on December 17, 2019, 05:25:21 PM
actually....
something I don't get.

repetitions.
watching the "getting start" I thought I should have tick the "box mapping"...but again, I'm messing it up.

I see no question. What is it that You do not understand.
Title: Re: UM Mapping elements
Post by: enzo_87 on December 17, 2019, 05:27:37 PM
problem is, how to fix the repetitions.

Iàm trying with the box mapping but with no effects.
How should I proceed instead?
Title: Re: UM Mapping elements
Post by: Rokas on December 17, 2019, 05:34:17 PM
Use apply box mapping:

(https://i.imgur.com/70IHQrq.png)
Title: Re: UM Mapping elements
Post by: enzo_87 on December 17, 2019, 05:48:41 PM
is it another featurs that doesn't work with gpu?
Title: Re: UM Mapping elements
Post by: Dragan on December 17, 2019, 05:50:44 PM
And what will happen when the segment is rotated inside the generator? I think mapping will not follow rotation. I had a similar problem. And there was a topic about this:
https://forum.itoosoft.com/railclone-pro-/wrong-uvw-box-mapping-rotationdirection/msg25496/?topicseen#msg25496
Title: Re: UM Mapping elements
Post by: Rokas on December 17, 2019, 06:01:04 PM
That is an area to improve for RC. Unfortunately there is no fool proof solution. If UV mapping is crucial, then let RC build geometry, and UV that structure manually.
Title: Re: UM Mapping elements
Post by: enzo_87 on December 18, 2019, 04:45:59 PM
I'm sorry to be painful,
but I can't find the right solution.

as said, I'm a rookie in max, so the process I'm doing it might be wrong.

-in general, I made the basic assets and I applied the materials and UW mapping modifier to have the right look in viewport.
in particular. I selected the mesh, applied the material and the uw mapping modifier.
I adjusted the setting to have the right look.
I applied an edit poly modifier, made another selection and applied the material.
I put the second uw mapping modifier and adjusted the orientation.

it looks fine in viewport, I haven't collapsed anything and the handrail and steps are looking fine.

-now I have the repetitions problem:
either that the box mapping is on or off, it looks the same.

-if I put vray in cpu mode, box mapping seems to work, buuuuuuut, it mess up the uw map orientation,
after that, I can't find a way to go back.
I tried to put back gpu mode, on/off box mapping...but nothing.

Am I doing something wrong since start?
should I do something different?

I can't understand how to manage the mapping projection correctly
Title: Re: UM Mapping elements
Post by: Rokas on December 18, 2019, 04:56:34 PM
I am not sure I fully understand Your issue, but RailClone can't do miracles with UVs, sadly.

I recommend reading more about UV in our documentation page (https://docs.itoosoft.com/railclone/style-editor/segments).

Also i would recommend following tutorials from these pages:
http://docs.itoosoft.com/display/RAILCLONE/Getting+Started+with+RailClone
http://docs.itoosoft.com/display/RAILCLONE/Next+Steps+with+RailClone

They should give You solid understanding of how RailClone works (and why sometimes wont).
Title: Re: UM Mapping elements
Post by: enzo_87 on December 18, 2019, 05:04:03 PM
I actually seen the getting started and the next steps, but they all start from objects premade with textures and materials already made.
I'm trying to figure out the process to work with RC from scratch.

the issue is:

-with vray gpu, orientation of the texture seems to work fine.
the only problem is the retetion that is not fixed with the box mapping

-switching to vray cpu, box mapping is working now, no more repetitions.
but on the other side, the orientation is now wrong, it has only one orientation.

-if I put back gpu mode, texture orientation still messed up, they don't go back.

it's ok that RC doesn't do miracle with uw...but I just want to know if the problem is me or not
Title: Re: UM Mapping elements
Post by: Rokas on December 19, 2019, 08:35:06 AM
Not all renders support native automatic uv mapping. Scanline and Vray GPU is among them.

RailClone sometimes do not refresh Geometry and textures after You do minor changes. Be sure to rebuild texture after You disable instancing engine when using vRay GPU:

(https://i.imgur.com/15UChui.png)
Title: Re: UM Mapping elements
Post by: enzo_87 on December 19, 2019, 11:30:35 AM
Good morning Rokas,
thanks so much for your help as always.

ok, vray gpus means no instances if I want the box mapping.
I was trying, it works, also the rebuild.

just one thing more:
basically, instances off, box mapping on.
the texture orientation change direction.
is this normal?
should I separate the mesh to avoid this?
Title: Re: UM Mapping elements
Post by: Rokas on December 19, 2019, 11:38:38 AM
Why box mapping on ?

seems this setup from above post is working well:
(https://i.imgur.com/70IHQrq.png)

I dont want to tell You some magic settings. Please experiment and You will understand what settings works in what situations.
Title: Re: UM Mapping elements
Post by: enzo_87 on December 19, 2019, 11:50:39 AM
Box mapping on because the texture repetitions are evident and I was tryong to remove them before to make the RC clone object as editable poly(that is the last chance).
when I turn on box mapping, with instances off for gpu, it mess everything up.

but yeah, as you suggested, I'll experiment more to undertand it better.

Thank for helping  :)
Lorenzo