Select portions from a multi-textured image?

Forums: Select portions from a multi-textured image?
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Select portions from a multi-textured image?

Postby geoyeo » Sat Jun 04, 2022 10:19 am

geoyeo Sat Jun 04, 2022 10:19 am
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!
Attachments
Screenshot 2022-06-04 at 12.18.40.png
Win 11 64 | RTX 4090 | Ryzen 9 5950X | 128GB Ram
geoyeo
Licensed Customer
Licensed Customer
 
Posts: 34
Joined: Mon Mar 29, 2021 8:43 pm

Re: Select portions from a multi-textured image?

Postby aoktar » Sat Jun 04, 2022 12:41 pm

aoktar Sat Jun 04, 2022 12:41 pm
you can use transform node by adjusting the scale/translate parameters.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15957
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: Select portions from a multi-textured image?

Postby geoyeo » Sat Jun 04, 2022 1:20 pm

geoyeo Sat Jun 04, 2022 1:20 pm
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..
Win 11 64 | RTX 4090 | Ryzen 9 5950X | 128GB Ram
geoyeo
Licensed Customer
Licensed Customer
 
Posts: 34
Joined: Mon Mar 29, 2021 8:43 pm

Re: Select portions from a multi-textured image?

Postby aoktar » Sat Jun 04, 2022 2:04 pm

aoktar Sat Jun 04, 2022 2:04 pm
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.
Attachments
a1.png
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15957
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: Select portions from a multi-textured image?

Postby geoyeo » Sat Jun 04, 2022 3:15 pm

geoyeo Sat Jun 04, 2022 3:15 pm
wow :o 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!
Win 11 64 | RTX 4090 | Ryzen 9 5950X | 128GB Ram
geoyeo
Licensed Customer
Licensed Customer
 
Posts: 34
Joined: Mon Mar 29, 2021 8:43 pm

Re: Select portions from a multi-textured image?

Postby aoktar » Sat Jun 04, 2022 4:40 pm

aoktar Sat Jun 04, 2022 4:40 pm
geoyeo wrote:wow :o 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.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15957
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: Select portions from a multi-textured image?

Postby geoyeo » Tue Jun 07, 2022 6:40 am

geoyeo Tue Jun 07, 2022 6:40 am
any chance you asked the team about it?

Have a nice day!
Win 11 64 | RTX 4090 | Ryzen 9 5950X | 128GB Ram
geoyeo
Licensed Customer
Licensed Customer
 
Posts: 34
Joined: Mon Mar 29, 2021 8:43 pm

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: Bing [Bot] and 13 guests

Tue Apr 16, 2024 10:58 pm [ UTC ]