KeyShot Forum

Technical discussions => General discussion => Topic started by: DanielMCMLXXXII on December 07, 2015, 11:08:16 PM

Title: Keyshot question about transparency
Post by: DanielMCMLXXXII on December 07, 2015, 11:08:16 PM
Dear all, I am Daniƫl and work with Keyshot via Solid Edge ST8.
We want to make new render images for our website. For a winch that has some mesh I change the material in Keyshot to mesh, all looks well.
I set the render options to PNG with the box checked to Include alpha (transparency). All the opening that are (not) drawn are open, however the mesh has a with background. How can I change the settings so that the mesh has also a transparent background?
See the following images:
(https://siemensplm.i.lithium.com/t5/image/serverpage/image-id/17735iA1654D69DB911465/image-size/original?v=mpbl-1&px=-1)
(https://siemensplm.i.lithium.com/t5/image/serverpage/image-id/17736i897E45C0D17DF2AA/image-size/original?v=mpbl-1&px=-1)
(https://siemensplm.i.lithium.com/t5/image/serverpage/image-id/17737i25805621686800E1/image-size/original?v=mpbl-1&px=-1)
Title: Re: Keyshot question about transparency
Post by: DanielMCMLXXXII on December 09, 2015, 12:09:30 AM
Apparently no one knows how to do this  :o
Title: Re: Keyshot question about transparency
Post by: Esben Oxholm on December 09, 2015, 04:29:19 AM
Quote from: DanielMCMLXXXII on December 09, 2015, 12:09:30 AM
Apparently no one knows how to do this  :o
Sorry, no. I haven't encountered a problem like this before, and have no clue how to fix it :/
Title: Re: Keyshot question about transparency
Post by: jondiare on December 16, 2015, 10:54:11 AM
Hey

You have 2 options;

1. The hardest 1 is to clean it up directly in photoshop every hole of your mesh.

2. Set it up your render with your website background.
Title: Re: Keyshot question about transparency
Post by: TpwUK on December 16, 2015, 10:57:14 AM
What happens if you set the background colour as black ?

Martin
Title: Re: Keyshot question about transparency
Post by: richardfunnell on December 18, 2015, 08:02:34 AM
The issue here is that the opacity textures do not create true transparency, as I understand it we don't have a solution from within KeyShot for this.

I have a potential solution if you have access to an image editor like Photoshop. Render out your first image with transparency on a background color that matches your final background color as close as possible. This makes overlaying a little easier.

We're going to use KeyShot to make a layer mask; this is how we can define transparency on our first rendering.
Set the material type to "Flat" for all parts, and set the color to white, Scene Sets are perfect for this. Make sure you keep the opacity textures that are used for the mesh. If you then render this on a black background (as a flattened image, no transparency) we can apply it as a layer mask in Photoshop. If you haven't worked with layer masks, they're a great way to work non-destructively for this kind of stuff and I'd recommend finding out more.

Save as a PNG with transparency, and you should get the desired result. I've attached the native PSD file as well.

Hope this helps!