How to get the alpha right when using glass ?

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

Moderators: ChrisHekman, aoktar

User avatar
kiwimage
Licensed Customer
Posts: 67
Joined: Sat Dec 18, 2010 9:39 pm
Location: France / Bretagne / Lorient
Contact:

yes abstrax, of course I know that you can't render the refractivity of something that isn't there in the 3d scene ! My letters are just here for testing sake. i don't ask for that.
I want to be able to catch an output in wich the object refracts itself, possibly other objects behind, and the environment, but it doesn't make it less transparent.

Refraction + transparency is possible in other renderers.

In Vray :
http://www.workshop.mintviz.com/tutoria ... t-objects/

Look at the glass thickness in the link above: it has refraction, and still a consistent transparency output. If you pay attention to the the edges of glass, the alpha is more opaque, depending on the view angle. It's not solid white alpha AND the material is refractive.
The output for glass alpha is solid white by default, like in Octane right now, but the user has an option tick box available to enable correct transparent output for the material.

That's what we want, even if it needs an extra step in compositing. I wouldn't mind to have 2 outputs : the flat image like today, and the correct alpha.
Titan Black + GTX 580-3go / Win 7 pro 64 bits / C4DR14 with integrated plugin / Blender / Octane standalone /
website : http://www.kiwimage.com
mattfrodsham
Licensed Customer
Posts: 45
Joined: Sat Jun 29, 2013 3:03 pm
Location: Manchester
Contact:

This would be a really useful addition if at all possible. +1
Windows 8.1 / 4xGTX980 / C4D R18
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

What avoid that you use a mix material for reflaction+opacity?
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
kiwimage
Licensed Customer
Posts: 67
Joined: Sat Dec 18, 2010 9:39 pm
Location: France / Bretagne / Lorient
Contact:

You're suggesting to use a realistic glass and a fake falloff glass and mix them inside of a mix material with falloff as the amount ?

I think it won't work, because the falloff map will tone down the alpha were the refractions are supposed to happen the most.
In the end there'll be none or little refraction.


I'll make a more explicit test scene when I'll have some time ( a glass of water with a straw in it, and a 3d object behind.)
Titan Black + GTX 580-3go / Win 7 pro 64 bits / C4DR14 with integrated plugin / Blender / Octane standalone /
website : http://www.kiwimage.com
franchus
Licensed Customer
Posts: 44
Joined: Fri May 13, 2016 7:57 am
Location: Barcelona
Contact:

In the Common attributes of the glass you have to check the affect alpha checkbox. And voilá.
Last edited by franchus on Wed Dec 07, 2016 8:50 am, edited 2 times in total.
franchus
Licensed Customer
Posts: 44
Joined: Fri May 13, 2016 7:57 am
Location: Barcelona
Contact:

Here are the screenshots. Oh, BTW there was already an answer a few posts up, that people decided to not read. A forum is very handy when you read what's posted.
Screen Shot 2016-12-07 at 09.36.58.png
]

Settings in the material of C4D:
Screen Shot 2016-12-07 at 09.37.05.png
Settings in Standalone:
Screen Shot 2016-12-07 at 09.41.07.png
Post Reply

Return to “Maxon Cinema 4D”