Smooth Transparency Gradient

The Twilight Render Team shares tips, ideas, helpful hints, and more on using Twilight Render
Post Reply
Fletch
Posts: 11538
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 2016-2021
Contact:

Smooth Transparency Gradient

Post by Fletch » Mon Feb 07, 2011 7:44 pm

I have a .png material, but the gradient is not smooth. It looks fine in SketchUp, but looks bad when rendered with Twilight. Why?!

There are 2 ways that an alpha channel of a png can be used in a material. It could be a "clipping mask" or a "transparency mask".
A clipping mask finds a "level" of transparency in the alpha channel and makes it the "clipping" point. That is, below "50% transparent" the image will be solid, above 50% transparent, it will be clear.
A transparency mask uses the png's alpha channel's full transparent gradient. This means it will also take longer for it to render.

The easiest way to get the .png's transparency to be read in Twilight as a "transparency mask" is to import the image as .png and leave it as an unexploded image.
Attachments
gradientpng.jpg
gradientpng.jpg (84.78 KiB) Viewed 6644 times

Gaieus
Posts: 426
Joined: Thu Aug 27, 2009 9:08 am
OS: Win XP + SP3
SketchUp: 6 7 8
Location: Pécs, Hungary
Contact:

Re: Smooth Transparency Gradient

Post by Gaieus » Wed Feb 09, 2011 9:25 am

Fletch wrote:The easiest way to get the .png's transparency to be read in Twilight as a "transparency mask" is to import the image as .png and leave it as an unexploded image.
Hi Fletch, thanks for the tip but...

What if I want (need) to use it as a texture instead?
Gai...

Fletch
Posts: 11538
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 2016-2021
Contact:

Re: Smooth Transparency Gradient

Post by Fletch » Wed Feb 09, 2011 3:58 pm

Then the only way is to apply it as a texture, but also insert it as an image. Then export the scene to Kerkythea. In Kerkythea, you will find the image texture, save it in a library, and then go back to SU and apply that library material from KT to your texture in SU.

Gaieus
Posts: 426
Joined: Thu Aug 27, 2009 9:08 am
OS: Win XP + SP3
SketchUp: 6 7 8
Location: Pécs, Hungary
Contact:

Re: Smooth Transparency Gradient

Post by Gaieus » Mon Feb 14, 2011 4:32 pm

Fair enough, Mr Fletch, all understood! :^:
Gai...

Marcus84
Posts: 1
Joined: Sun Dec 27, 2020 11:34 am

Re: Smooth Transparency Gradient

Post by Marcus84 » Sun Dec 27, 2020 11:49 am

Hi,
my name is Marcus I am new to this forum, but quite experienced with Sketchup since > 10 years and with some rendering applications, mostly histrorical architecture. After some tries with other renderers, I found Twilight very convenient and though of buying the full version as my one and only renderer.
But: the described problem of missing gradient trancparency of png textures is a huge disadvantage. I have dozens of different tree types (rectagles follwoing the camera with semi transparent tree images) in my models and cannot shift to Kerkythera every time.
As the topic I am responding to is almost 10 years old, I am wondering if there was there any update of Twilight (at least in Pro) that alows now the use of transparency gradients? Or is it annouced for the near future?

Thank you

Marcus

Fletch
Posts: 11538
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 2016-2021
Contact:

Re: Smooth Transparency Gradient

Post by Fletch » Mon Dec 28, 2020 1:59 pm

Gradient transparency on textures works by default in SketchUp and Twilight V2 :^:
No worries, no special effort.
Attachments
gradient-transparent.png
gradient-transparent.png (3.84 KiB) Viewed 1877 times
Untitled-2.jpg
Untitled-2.jpg (352.03 KiB) Viewed 1877 times

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests