Page 1 of 1

Photochromatic film material help?

Posted: Tue Feb 21, 2012 6:14 am
by gjengi
How easy would it be to make a photochromatic film material - as used on the glass in this building http://www.unstudio.com/projects/la-defense-offices? I assume it would be similar in nature to the build up of this pearl material?

I'd like to incorporate it into a render, but I've not really created materials beyond standard building components. Would it be easier to apply post-production?

Thanks,

Jen

Re: Photochromatic film material help?

Posted: Tue Feb 21, 2012 9:51 am
by galinette
Hi,

It's more a dichroic filter. If you do not need to model light transmission, that could be done with a simple phong shader

You can find a simple one here :
http://www.indigorenderer.com/materials/materials/1065

Colors can be changed by tuning the "600.0" coefficient in the thickness function

Re: Photochromatic film material help?

Posted: Tue Feb 21, 2012 11:41 am
by CTZn
Nice Etienne, I always wanted to see some wavelength dependent shader.

Re: Photochromatic film material help?

Posted: Tue Feb 21, 2012 8:41 pm
by galinette
The pearl uses a wavelength dependent shader for a long time! This one is just a variation of the pearl

These physics based, wavelength and angle dependent shaders would be very nice in an animation to see the changing colors.

I never tried the parametric shaders yet, but I definitely should. Maybe that one is a good candidate

Etienne

Re: Photochromatic film material help?

Posted: Tue Feb 21, 2012 11:25 pm
by CTZn
Those physics are above my head anyways :?

About params, I think the UV scale is needed first, whenever applicable; you never know the details frequency the user is looking for...

Also, Ono insisted on the slowness of the pow() function. Perhaps would it be worth declaring the sin() in a let statement to multiply it by itself below, if that power is not to be changed by the user.

edit: I see that you may be looking for backwards compatibility with shaders... Let's see what Jen says now ^^

Re: Photochromatic film material help?

Posted: Wed Feb 22, 2012 2:16 am
by gjengi
Wow, thanks for the replies both of you!

Most of that went way over my head too, but that material looks like the kind of thing I was after galinette, thankyou (not sure why I hadn't spotted it in the first place!) I'll give it a test and update you on my progress :-)

Thanks again!

Jen

Re: Photochromatic film material help?

Posted: Wed Feb 22, 2012 2:17 am
by galinette
gjengi wrote:(not sure why I hadn't spotted it in the first place!)
Because I made it just after reading your post ;)

Re: Photochromatic film material help?

Posted: Wed Feb 22, 2012 2:33 am
by gjengi
galinette wrote:
gjengi wrote:(not sure why I hadn't spotted it in the first place!)
Because I made it just after reading your post ;)

Ah, hehe. Thanks! :P

Also, am I right in thinking if I wanted to make dichroic glass, that I could just blend that material you made with a glass material?

Re: Photochromatic film material help?

Posted: Wed Feb 22, 2012 2:59 am
by galinette
Yes, this could do the trick.
Other interesting test could be:
- Make a 8-10mm thick glass pane with a glass material
- Blend the dichroic material with a null
- Insert a single polygon layer halfway inside the glass pane and use the blend material on it

This would be similar to the actual glass, which is a dichroic polymer film sandwiched (laminated) between two glass panes

Etienne

Re: Photochromatic film material help?

Posted: Wed Feb 22, 2012 4:34 am
by CTZn
gjengi wrote:Wow, thanks for the replies both of you!
No no it's all galinette, I am just interfering !

I hope that you will be able to share with us an image of his shader in action. Don't forget to use Glass Acceleration.

Re: Photochromatic film material help?

Posted: Wed Feb 22, 2012 6:19 am
by StompinTom
Nice one, galinette!