Unity-Technologies / GenericFrameRecorder

This GitHub package is DEPRECATED. Please get the new Unity Recorder from the Asset Store (https://assetstore.unity.com/packages/essentials/unity-recorder-94079) Use the editor builtin Bug Reporter to report issues. You can track and vote for issues on the Issue Tracker (https://issuetracker.unity3d.com)
MIT License
534 stars 66 forks source link

Capture alpha #41

Closed kukuhbasuki closed 6 years ago

kukuhbasuki commented 6 years ago

How to use "capture alpha" feature?

jasonm-unity commented 6 years ago

not sure what you mean by your question? encoders that support alpha have a check box that stores the alpha. if you import the result back into unity, some formats will have the option to treat alpha as transparency (importer settings)

haywirephoenix commented 6 years ago

I am also struggling to figure out if the Capture Alpha setting can be used to render transparent background png sequences, are there particular settings for the camera clear flags?

jasonm-unity commented 6 years ago

In the camera inspector, change clear flags to "Solid color". Just below, in the UI, the colored rectangle allows you to set the clear color.

By default, it's dark blue and transparent: the black line under the color picker indicates the opacity level, black=fully transparent and white = fully opaque.

haywirephoenix commented 6 years ago

Thanks for the reply.

I tried this in the beginning but it seems to ignore the alpha value. I usually run the editor in forced opengl mode but just tried dx mode same result. Could it be because I'm using culling? Currently having to render out with chroma green background and cut the frames out in after effects.

jasonm-unity commented 6 years ago

could you make a test project that reproduces your problem and upload it?

haywirephoenix commented 6 years ago

empty project works! It was post processing affecting it. Thanks!

jasonm-unity commented 6 years ago

cool :)