Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
This question was closed Nov 12, 2021 at 04:04 PM by doukisan for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by doukisan · Nov 11, 2021 at 08:31 PM · transparencyrendertexturealpha-channel

[HDRP] Render Texture Alpha Channel

Hi!

I need to render a 3D object on the canvas, and the method I usually use to make it work in the other pipelines is to use a Render Texture on a camera set to "Clear Flags", and put the alpha to 0.

I tried the same approach in Unity HDRP, but it doesn't seem to work. I've been searching and found that you need to change the Color Format from the HDRP Asset to R16G16B16A16, but I still can't get the alpha value.

Anybody would have a clue of what might be happening?

alt text

alt text

imagem-2021-11-11-172332.png (34.8 kB)
imagem-2021-11-11-173046.png (145.9 kB)
Comment
Add comment
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

2 Replies

  • Sort: 
avatar image
0
Best Answer

Answer by doukisan · Nov 12, 2021 at 04:03 PM

I found the answer! I found it strange that only my project was behaving like this, so I started messing with all of the options from the Project Settings.

For some reason, this was preventing the alpha to render: alt text

After removing it, the alpha started showing again.


imagem-2021-11-12-130230.png (90.6 kB)
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 tteneder · Nov 12, 2021 at 04:31 PM 0
Share

Congratulations on finding a solution!

Please consider filing a bug report.

avatar image
0

Answer by tteneder · Nov 12, 2021 at 03:02 PM

I had success by setting the Color Buffer Format (under Rendering) as well as the Grading LUT Format and Buffer Format (under Post-processing) to R16G16B16A16:

alt text

I was using HDRP 10.7 on Unity 2020.3 LTS, but according to the docs this should already work since HDRP 7.x

hth


screenshot-2021-11-12-at-155943.png (75.6 kB)
Comment
Add comment · Show 2 · 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 doukisan · Nov 12, 2021 at 03:04 PM 0
Share

Unfortunately this didn't work either... I downloaded Unity's Cinematic Studio Template and it was working in there, so this must be something I'm missing in my project...

avatar image tteneder · Nov 12, 2021 at 03:34 PM 0
Share

Yes, something in your setup is different. What format is your RenderTexture?

Follow this Question

Answers Answers and Comments

132 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 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

White edges with my Normal Map: could be alpha channel the solution? 0 Answers

what is the easiest way to render things in alpha channel? 0 Answers

Change alpha in runtime of gameObject with mobile shader 1 Answer

Shader to render RenderTexture plus alpha? 1 Answer

Cutout Shader getting Opaque when turning alpha off and on again 1 Answer


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