Planetside Software Forums

General => Terragen Discussion => Topic started by: Upon Infinity on September 27, 2012, 06:54:52 AM

Title: Billboards
Post by: Upon Infinity on September 27, 2012, 06:54:52 AM
Hey all,

This is probably going to be an easy answer but if I'm importing an object as a billboard and there is a white background for transparency in the image, how do I get Terragen to block out the white background? 

Thanks.
Title: Re: Billboards
Post by: j meyer on September 27, 2012, 11:40:10 AM
If you don't want to change that white background to black,
you could try it with a b/w image mask either separate or
as alpha channel.
Title: Re: Billboards
Post by: Upon Infinity on September 27, 2012, 03:34:20 PM
My bad.  The background is not white, it is transparent in the .png file, but it is coming out white in the render.  I'm just curious what setting I need in the default shader in order to get it to work.
Title: Re: Billboards
Post by: cyphyr on September 27, 2012, 04:24:14 PM
In the default shader use the Opacity Tab and copy/paste your image in there, tick "Use alpha channel" and if necessary "Invert opacity image".
If the alpha is correct in your png this should  work. I've also (rarely) come across cases where you also had to un-tick "unpremultiply colour" in the images tab.
Hope this helps
Richard
Title: Re: Billboards
Post by: Upon Infinity on September 27, 2012, 04:37:38 PM
Go it.  You have to put the image into one of the diffuse, translucency, or luminosity tabs as well.  I was also getting a reflected image on the other side of the billboard, handily fixed by taking double sided surfaces off.  Thanks you two.