rendering with White Background color

Discussions about rendering in SOFTIMAGE©
Post Reply
thorsnuts
Posts: 153
Joined: 08 Oct 2012, 19:42

rendering with White Background color

Post by thorsnuts » 14 Apr 2015, 22:13

Hello... is there a way to render with a white bg color instead of black... while still keeping the alpha channel clean?

thanks

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: rendering with White Background color

Post by Hirazi Blue » 15 Apr 2015, 00:02

The inelegant way is to use the deprecated 2D Background Color output shader. I am sure there also is a more elegant way, but ATM I can't recall such a method.
Stay safe, sane & healthy!

thorsnuts
Posts: 153
Joined: 08 Oct 2012, 19:42

Re: rendering with White Background color

Post by thorsnuts » 15 Apr 2015, 00:07

hahhhahaha yes.. but I was going for the other way as well. I tried that way at first but when I deleted it from the pass it seemed to bug out.

thanks though

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: rendering with White Background color

Post by Hirazi Blue » 15 Apr 2015, 11:12

Here's another - admittedly slightly silly - notion: add a toon ink lens shader to your camera,
set the desired background and set the "Spread" of the ink lines to zero...
While it's definitively silly it does seem to work (but I haven't tested it thoroughly),
haven't checked what it does to the alpha channel, though.
:D
Stay safe, sane & healthy!

SpookyMunky
Posts: 102
Joined: 14 Jun 2012, 02:30

Re: rendering with White Background color

Post by SpookyMunky » 15 Apr 2015, 14:09

If you want to keep the alpha channel clean for compositing then it's best to add the white background after you have rendered.. Using the 2d background color / toon paint trick ( works :) ) leads to the white background adding a halo effect around the object due to the anti aliasing picking up the color.

thorsnuts
Posts: 153
Joined: 08 Oct 2012, 19:42

Re: rendering with White Background color

Post by thorsnuts » 16 Apr 2015, 00:43

Thanks guys... The compositing is the what I usually do but in this particular case I'm rendering glass over white and wanted to Light and set materials accordingly. Its a pain in the ass going back and forth to get the proper look. But like you said the 2D output thing get weird.

I felt like I've set the render bg color to white once but completely forgot.

thanks anyway

User avatar
FXDude
Posts: 1129
Joined: 19 Jun 2012, 21:59

Re: rendering with White Background color

Post by FXDude » 16 Apr 2015, 05:52

You can also have a white environment sphere that has no alpha (and perhaps no primary rays)

NNois
Posts: 754
Joined: 09 Jun 2009, 20:33

Re: rendering with White Background color

Post by NNois » 16 Apr 2015, 08:49

why not using a constant in the environment ?

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests