CGTalk > Software Specific Forums > Maxon Cinema 4D
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 10-02-2012, 03:17 PM   #1
fxgogo
Your Average Eccentric
 
fxgogo's Avatar
portfolio
Gareth Qually
Motion Graphics Designer
South Africa
 
Join Date: Jan 2002
Posts: 1,203
Understanding transparency

Hi people. I am looking into the transparency of an object in the alpha channel.

It seems C4D has a non-linear relationship with transparency of an object and the final luma value in the alpha channel. This is causing me some problems as I am having to render a glass logo separate to the background for comping later. So the logo is nice and glass like, but the alpha is basically solid. Not good for comping and seeing stuff flying behind.

I don't have this with 3DSmax, which does deal with materials quite differently.

So have any of you come up with a nice method to have an alpha channel that more correctly reflects the transparency of an object?

I have used the transparency render pass, which has some validity, but it does have problems where there is a solid object mixed up with the transparent object.
__________________
Gareth Qually
Slowly Making Smoke

www.slowlymakingsmoke.com
 
Old 10-02-2012, 03:38 PM   #2
eikonoklastes
Green
 
eikonoklastes's Avatar
portfolio
eikonoklastes
USA
 
Join Date: Oct 2008
Posts: 551
Use the Transparency channel instead of alpha. If objects are showing through the transparent object in C4D, then they'll show up in post too (minus the refractions).
 
Old 10-02-2012, 04:01 PM   #3
laurent
Large Member
 
laurent's Avatar
laurent
France
 
Join Date: Mar 2003
Posts: 339
Hi,
I'm not sure what the problem is but here, using object buffers, alphas are solid and transparent at the right places, even stacking transparent and alpha materials. do you have an example file?
__________________
Wut?
 
Old 10-02-2012, 07:23 PM   #4
fxgogo
Your Average Eccentric
 
fxgogo's Avatar
portfolio
Gareth Qually
Motion Graphics Designer
South Africa
 
Join Date: Jan 2002
Posts: 1,203
Quote:
Originally Posted by eikonoklastes
Use the Transparency channel instead of alpha. If objects are showing through the transparent object in C4D, then they'll show up in post too (minus the refractions).


Oh I am using the transparency channel. I think I should put up a pic to better explain what I mean. I will do this tomorrow.
__________________
Gareth Qually
Slowly Making Smoke

www.slowlymakingsmoke.com
 
Old 10-03-2012, 09:39 AM   #5
fxgogo
Your Average Eccentric
 
fxgogo's Avatar
portfolio
Gareth Qually
Motion Graphics Designer
South Africa
 
Join Date: Jan 2002
Posts: 1,203
Ok here is a graph of my test. So I added a cube with a plain material, only luminance at 100% and animated the transparency brightness in 10% increments (stepped keyframes) over 11 frames. This is a graph of the transparency value and the resultant alpha channel values.

So it seems that we have a non linear graph, with this weird dip at the end. So you can see that at a 60% transparency brightness, we are sitting at roughly 90% alpha.

It would be nice to switch to a linear method if needed.
Attached Images
File Type: png Screen shot 2012-10-03 at 11.25.56 AM.png (23.5 KB, 29 views)
File Type: jpg transparency test_00000.jpg (14.7 KB, 25 views)

Last edited by fxgogo : 10-03-2012 at 09:45 AM.
 
Old 10-03-2012, 04:40 PM   #6
laurent
Large Member
 
laurent's Avatar
laurent
France
 
Join Date: Mar 2003
Posts: 339
hi fxgogo,
when reading the transparency value of a cube, your adding the value of two sides of that cube against whatever background you have. I did your test with a plane, animating a color texture in the alpha channel from white to black in ten steps, and reading the black values in photoshop, the results aren't that dramatic but I agree that isn't linear, I'll have to check if it isn't due to the key frame interpolation that isn't linear by default but "spline".

__________________
Wut?

Last edited by laurent : 10-03-2012 at 05:05 PM.
 
Old 10-03-2012, 06:47 PM   #7
lewisrowe
Imagery for brands
 
lewisrowe's Avatar
portfolio
Lewis Rowe
3D Artist
London, United Kingdom
 
Join Date: Jan 2010
Posts: 190
Not at my computer to try this, but could it be Linear Work Flow affecting this? I seem to remember putting a gradient on a plane going from black to white and noticing that the mid point (50% grey) had swayed off centre- side effect of the gamma effect?. May relate to a transparency gradients and explain your issue.
 
Old 10-03-2012, 08:56 PM   #8
AAAron
Lord of the posts
 
Join Date: Jan 2005
Posts: 955
I think the issue is that c4d apply the linear treatment on the transparency channel but not on the alpha channel. To "fix" the issue either turn of linear workflow in the project settings or change the input color profile to linear or disabled from the default setting of sRGB.

But its something weird going on:

 
Old 10-04-2012, 09:45 AM   #9
fxgogo
Your Average Eccentric
 
fxgogo's Avatar
portfolio
Gareth Qually
Motion Graphics Designer
South Africa
 
Join Date: Jan 2002
Posts: 1,203
I double checked to see if I was using linear workflow, but no I am not.

I have had that issue in the past with using bitmaps, and having to specify the colour profile or else you do get strange results, especially when bitmaps are driving animation in mograph.

I did do some more tests, and it seems the saturation in the transparency channel has a huge effect on the alpha value of the glass. I expected the the value slider to be the controller of opacity and saturation would just control...well....saturation, and to a lesser extent opacity.

Dropping the saturation from 80% to 50% had a huge affect on transparency. Check the attached picture. The good thing is the green bars in the back ground match up (the lower one is comped in after effects).
Attached Images
File Type: png Screen shot 2012-10-04 at 11.32.41 AM.png (14.8 KB, 13 views)
__________________
Gareth Qually
Slowly Making Smoke

www.slowlymakingsmoke.com
 
Old 10-04-2012, 10:09 AM   #10
lewisrowe
Imagery for brands
 
lewisrowe's Avatar
portfolio
Lewis Rowe
3D Artist
London, United Kingdom
 
Join Date: Jan 2010
Posts: 190
Thats interesting Gareth.
Saturation is a funny thing, it can also cause tonal 'blowouts' a bit like specular blowouts but on the mid tones. I guess that says something about it's nature and how it can affect a range of tints. It seems that high saturation can sway things off a realistic result. Its the same in Photoshop.
But no such issues in Max?
 
Old 10-04-2012, 10:09 AM   #11
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:58 PM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.