Limiting Flat Projection to One Side

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

Moderators: ChrisHekman, aoktar

Post Reply
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

Hello,
I am using an Octane Material with its Texture Tag's Projection set to Flat. Is there a way to limit the projection to the Front side of the object?
Flat Projection
Flat Projection
Thank you!
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

You can assign different forms of same texture to back/front side. Side node with mix texture
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

aoktar wrote:You can assign different forms of same texture to back/front side. Side node with mix texture
I tried this with a plane and it worked, but I could not get it to work with a cylinder. This method is projecting to the opposite side of the polygon face rather than the object.
Mix Material
Mix Material
Result
Result
Desired Result
Desired Result
Here is my Cinema 4D scene file.

Can it be projected to the opposite side of the object with flat projection? Thank you.

* note: With native C4D texture tags, the Flat projection can be split between two materials by rotating the Flat plane's coordinates by 180 degrees.
User avatar
bepeg4d
Octane Guru
Posts: 10365
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi,
here is a different approach, instead of using a Side node, I have used an Octane Gradient node, but with Black and white handles very close to the middle:
FB4FD80A-84EB-4AF7-BDB3-A3D70395D47B.jpeg
Flat Projection_b.c4d.zip
(66.91 KiB) Downloaded 147 times
ciao Beppe
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

Thank you for the idea, Beppe.
ceen
Licensed Customer
Posts: 113
Joined: Wed Jun 10, 2015 9:43 pm

Hi,

is there a way to use it without Mix and only one texture? I use material stacking without Compositing /Layer Mat and my flat projected decal material appears on both front and back. Using seletion set kills my material with gradient below. So is there some kind of backface culling somewhere in Octane possible?
3080ti
User avatar
bepeg4d
Octane Guru
Posts: 10365
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi ceen,
please have a look at this solution with Triplanar mapping node, it should work also with stacked materials:
viewtopic.php?f=30&t=80421&p=415545&hil ... ar#p415545

ciao,
Beppe
ceen
Licensed Customer
Posts: 113
Joined: Wed Jun 10, 2015 9:43 pm

Hi Beppe Thank you!

Yes I was thinking about it, too. But while it is working ok it is a very long tweaking of values until a decal is placed correctly. And it doesn't really follow scaling of objects right? Backface Culling is really important. Please but it forward to the devs...it can't be sooo hard to implement it into a material isn't it?
3080ti
Post Reply

Return to “Maxon Cinema 4D”