Glossy coating panel

Discussion related to the 'LuxBlend' Blender 2.4+ python exporter script.

Moderators: Ratow, SATtva, coordinators

Glossy coating panel

Postby Lord Crc » Mon Nov 14, 2011 12:51 am

Hi,

I just pushed a change which introduced a "Glossy coating" panel similar to the "Alpha transparency" panel. It adds a "glossycoating" layer using the material as a base layer. This saves one from having to create a mix manually.

It works with with alpha transparency as well, see attachment.

The change was somewhat intrusive due to the IOR preset menu being a bit hardcoded. So I had to duplicate some bits of it. It wasn't pretty, and should probably be refactored a bit by someone who's not a complete python nub, like me :) Hope I didn't break too much.

Also note that the reason I pass the partial name and full operator name is that draw_generator didn't work when the operator name wasn't a string literal. Bug in EF or Blender?
Attachments
lb25_glossycoating.png
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4518
Joined: Sat Nov 17, 2007 2:10 pm

Re: Glossy coating panel

Postby J the Ninja » Mon Nov 14, 2011 2:07 am

Oh good, somebody did this. :) Thanks LordCrc. Everything seems to work well.

Should we leave glossy coating in the normal mat list as well, in case users want to stack coatings, or just get rid of it?
-Jason

Material DB Admin
User avatar
J the Ninja
Developer
 
Posts: 2250
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: Glossy coating panel

Postby SATtva » Mon Nov 14, 2011 5:51 am

That's cooool! :o

J the Ninja wrote:Should we leave glossy coating in the normal mat list as well, in case users want to stack coatings, or just get rid of it?

We should definitely leave it for the reason you mentioned. Stacked coatings is one of the most awesome features of this new mat, otherwise we could just stay at the standard glossy.
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5547
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: Glossy coating panel

Postby olivii0 » Sat Jun 09, 2012 8:59 pm

nice man stack coatings rock! Love it
olivii0
 
Posts: 2
Joined: Sat Jun 09, 2012 8:47 pm

Re: Glossy coating panel

Postby Meelis » Sun Jun 10, 2012 1:26 am

AWESOME material

I have converted my multylayer marble material using glossy coating.
Before i had it made of 4-5 glossy or glossytranslucent materials. Each of them with bump and exponent maps and tons of parameters.

Now i have layered the color components with simple matte or mattetranslucent materials.
And in the end i just add the coating.

I got more than decent speedup from it.
Before i had porblem with reflection not showing up on surface even with exponent 300k, but now my material look beautiful. 8-)
User avatar
Meelis
 
Posts: 888
Joined: Sat Oct 17, 2009 2:16 am


Return to LuxBlend (Blender Exporter)

Who is online

Users browsing this forum: No registered users and 0 guests