Page 1 of 1
Select portions from a multi-textured image?
Posted: Sat Jun 04, 2022 10:19 am
by geoyeo
Hi all,
I have a multi image-texture that consists of different elements.
is there any way to apply a specific part of that texture on an object?
For eg I would like to use only the 59 lets say of the attached image..
is there any way to crop it and apply this only to surface?
Thank you!
Re: Select portions from a multi-textured image?
Posted: Sat Jun 04, 2022 12:41 pm
by aoktar
you can use transform node by adjusting the scale/translate parameters.
Re: Select portions from a multi-textured image?
Posted: Sat Jun 04, 2022 1:20 pm
by geoyeo
Hi thnks, in this case I use a composite material.
Material 1 is my base.
For the 2nd material, I use a mask that I have set the wrap mode to black color then with the transition the only think I get is to move the mask but I wish to kind of crop the mask in order to use only a portion of the mask texture..
Re: Select portions from a multi-textured image?
Posted: Sat Jun 04, 2022 2:04 pm
by aoktar
You may need to use OSL script as in picture. Also parameters needs to be adjusted if you use transform in images. It affects the transformed uv coordinates. Don't know if we can modify also uv-coordinate from a texture OSL to do it automatically.
Re: Select portions from a multi-textured image?
Posted: Sat Jun 04, 2022 3:15 pm
by geoyeo
wow

that's exactly what I was looking for!!!
Do you believe that this can be implemented in transformation node like "crop" function?
is there any way to save this script to use it as a node anytime I want?
really appreciate this help many many thanks!
Re: Select portions from a multi-textured image?
Posted: Sat Jun 04, 2022 4:40 pm
by aoktar
geoyeo wrote:wow

that's exactly what I was looking for!!!
Do you believe that this can be implemented in transformation node like "crop" function?
is there any way to save this script to use it as a node anytime I want?
really appreciate this help many many thanks!
I don't know to do it by one osl but I'll talk to team for asking it.
Re: Select portions from a multi-textured image?
Posted: Tue Jun 07, 2022 6:40 am
by geoyeo
any chance you asked the team about it?
Have a nice day!