Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by Satton38 · Apr 24, 2019 at 07:36 AM · transparencybackground

Transparent background in Unity 2019 HDRP

alt textI want a RenderTexture image with transparent background.

I set the Background Type to "Color" and alpha value of the Background Color to zero in Camera property.

It was OK with the Unity 2018 HDRP.

But it does not become transparency with Unity 2019 HDRP. (2019.1.0f2, HDRP:5.13.0)

Even if it is Unity 2019, it is possible if not use the HDRP.

Is it impossible with Unity 2019 HDRP?

mycapture.png (285.5 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Satton38 · Aug 07, 2020 at 02:44 AM 0
Share

I found the solution.
Edit -> Project settings -> Quality -> HDRP
Set the item to "R16G16B16A16" of "Color Buffer Format" in "Rendering".
I have confirmed that it can be done with unity 2019.3.9 and 2019.4.1.
Thank you!

11 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Ben-Kuper · Aug 16, 2019 at 08:31 AM

Same here, tried to fiddle around FinalPass.shader but nothing good out came out of it. This is a huge stepback when using Render Textures ! We're using them all the time along with Spout in digital art and live show projects, but this is a blocker...

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Satton38 · Aug 16, 2019 at 09:14 AM 0
Share

That's right! Even if the rendering performance is improved, it doesn't make sense.

avatar image
1

Answer by abgrac · Oct 24, 2019 at 02:20 AM

This is outrageous!! Alpha is needed for MANY purposes. Does Unity at least propose any other way of blending cameras if not through RenderTexture!?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Satton38 · Oct 24, 2019 at 02:46 AM 0
Share

Hello abgrac! I also tried Unity 2019.3.0b4 and HDRP 7.0.1 but it was not successful again.

avatar image
0

Answer by kelloh · May 07, 2019 at 03:28 PM

FYI, one reason this is impossible in the current version of HDRP is that that in HDRP's FinalPass.shader, you've got this line:

  return float4(outColor, 1.0);

I'm not sure why HDRP is setup to always throw away the alpha value...

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Satton38 · May 08, 2019 at 01:32 AM

Hello kelloh. Thank you for answering.
In other words, it is difficult with the current HDRP specifications.
I tried to rewrite the FinalPass.shader you taught me but it did not resolve.
By the time the HDRP is officially released, I will wait for the issue to be resolved...
Thank you. :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Extrawurst · Jun 20, 2019 at 10:34 AM

I observe the same in the LWRP - a workaround for me was disabling multisampling / antialiasing in the render texture, does that work for you as well @Satsukawa ?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Satton38 · Jun 20, 2019 at 11:33 AM 0
Share

Hello Extrawurst.

I tried your approach. But unfortunately it did not succeed in that way. Thank you! @Extrawurst

  • 1
  • 2
  • 3
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

115 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Transparent Character but Overriding Background 0 Answers

Why do my tree leafs(transparent diffuse textures) take over the color of the background? 2 Answers

How can i get background tranparency ? 2 Answers

Why sprite are semi transparent 4 Answers

transparent background with GUI.DrawTexture 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges