Select portions from a multi-textured image?

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
geoyeo
Licensed Customer
Posts: 34
Joined: Mon Mar 29, 2021 8:43 pm

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
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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
geoyeo
Licensed Customer
Posts: 34
Joined: Mon Mar 29, 2021 8:43 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
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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
geoyeo
Licensed Customer
Posts: 34
Joined: Mon Mar 29, 2021 8:43 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
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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
geoyeo
Licensed Customer
Posts: 34
Joined: Mon Mar 29, 2021 8:43 pm

any chance you asked the team about it?

Have a nice day!
Win 11 64 | RTX 4090 | Ryzen 9 5950X | 128GB Ram
Post Reply

Return to “Maxon Cinema 4D”