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:

hello,

I have a little problem that I wanted to discuss.

This is my render, in png, and that's ok for a light background.
Image

Alpha channel looks like this : pure white, pure black...

Image

As you can see, the alpha channel isn't right, there should be semi-transparent areas in the glass.

Is there a way to achieve what i want or is it a limitation of Octane ?
Titan Black + GTX 580-3go / Win 7 pro 64 bits / C4DR14 with integrated plugin / Blender / Octane standalone /
website : http://www.kiwimage.com
rosch
Licensed Customer
Posts: 1
Joined: Tue Sep 10, 2013 10:43 am

Hey Guys,
I have exactly the same problem right now. Tried pretty much all the setting involving alpha/environment. Clueless right now. Please Help :)
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

use some fake ways. With opacity and falloff
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:

Thanks for your response, I guess I would know how to fake the effect and I don't really need this for this particular project, since I'll be integrating this on a light background, I was just being curious on how to do this.

I guess you can't do much about it Aoktar, as a plugin developper, but i have to say it's a very bad surprise that OctaneRender, wich can achieve amazing things really fast, won't be able to render a glass of water with acurate alpha.
Titan Black + GTX 580-3go / Win 7 pro 64 bits / C4DR14 with integrated plugin / Blender / Octane standalone /
website : http://www.kiwimage.com
User avatar
gabrielefx
Licensed Customer
Posts: 1701
Joined: Wed Sep 28, 2011 2:00 pm

I requested this feature 3 years ago
Probably in Otoy think that we are hobbyists.
quad Titan Kepler 6GB + quad Titan X Pascal 12GB + quad GTX1080 8GB + dual GTX1080Ti 11GB
User avatar
slepy8
Licensed Customer
Posts: 377
Joined: Sun Jul 14, 2013 10:53 am

One of few reasons Octane Render is still not Production Ready.

But we should stay positive. Lots of changes lately. Maybe this one is on schedule ;)
User avatar
mbetke
Licensed Customer
Posts: 1295
Joined: Fri Jun 04, 2010 9:12 am
Location: Germany
Contact:

I use a lower opacity value on the glass.
Up to 0.25 if needed.
PURE3D Visualisierungen
Sys: Intel Core i9-12900K, 128GB RAM, 2x 5090 RTX, Windows 11 Pro x64, 3ds Max 2024.2
User avatar
abstrax
OctaneRender Team
Posts: 5510
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

Try using the material "glass fake falloff" from the LiveDB:
fake_glass_viewport.png
fake_glass.png
Of course, it doesn't have refraction, but refraction can't be captured with a simple alpha channel anyway.
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
User avatar
kiwimage
Licensed Customer
Posts: 67
Joined: Sat Dec 18, 2010 9:39 pm
Location: France / Bretagne / Lorient
Contact:

Image

OK I've been playing around and came up with the result above, which combines transparency and a mix of fake and real refractions.

Here are the steps I followed.

1/ render a RGBA picture with the material "glass fake falloff", as advised by Abstrax (on the glass and liquid)
2/ make another render with regular physically correct glass.
3/ In Photoshop, apply the alpha of the first render to the second render.
4/ Tweak the levels of this alpha channel (bump the contrast a bit, depending on what you want)
5 /Make a Background in photoshop
6/ The refraction of the letters behind the serynge are Photoshop cheating, with alpha masks and a contraction filter on the letters.

It's manageable to cheat the eye in still images, but this process would be very very tough to achieve in animation (the refraction part of it)
Titan Black + GTX 580-3go / Win 7 pro 64 bits / C4DR14 with integrated plugin / Blender / Octane standalone /
website : http://www.kiwimage.com
User avatar
abstrax
OctaneRender Team
Posts: 5510
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

kiwimage wrote:Image

OK I've been playing around and came up with the result above, which combines transparency and a mix of fake and real refractions.

Here are the steps I followed.

1/ render a RGBA picture with the material "glass fake falloff", as advised by Abstrax (on the glass and liquid)
2/ make another render with regular physically correct glass.
3/ In Photoshop, apply the alpha of the first render to the second render.
4/ Tweak the levels of this alpha channel (bump the contrast a bit, depending on what you want)
5 /Make a Background in photoshop
6/ The refraction of the letters behind the serynge are Photoshop cheating, with alpha masks and a contraction filter on the letters.

It's manageable to cheat the eye in still images, but this process would be very very tough to achieve in animation (the refraction part of it)
It's not possible to do this automatically in post, because of step 6). If you want correct refractions you need to do the compositing in the rendering.
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
Post Reply

Return to “Maxon Cinema 4D”