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 /
  • Help Room /
avatar image
0
Question by Sgt_Spike · Jul 08, 2018 at 08:20 PM · shaderparticle systemrender texture

Use a render texture with a particle system. (transparent background)

Hi all. I'm trying to use a render texture in order to put a particle system on a raw image. It's not working too well though. I've managed to capture it on the render texture but not without a background. I need the background to be transparent. I have tried setting the skybox of the rendered camera to a solid color with an alpha of 0, but this sets the alpha of the particle system to 0 as well as the background. Hopefully there's an easy way to do this. I've seen similar topics where the solution is to use a shader or something, but the truth is... I'm a total noob with shaders :D. If someone could help that would be great! Thanks!

Comment
Add comment · Show 2
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 NoDumbQuestion · Jul 09, 2018 at 01:47 AM 0
Share

If you use standard shader by Unity, you actually can tell a material of that object go to invisible. Like looking through it.

           m_Fade$$anonymous$$aterials.SetFloat("_$$anonymous$$ode", 2);
           m_Fade$$anonymous$$aterials.SetInt("_SrcBlend",(int)UnityEngine.Rendering.Blend$$anonymous$$ode.SrcAlpha);
            m_Fade$$anonymous$$aterials.SetInt("_DstBlend", (int)UnityEngine.Rendering.Blend$$anonymous$$ode.One$$anonymous$$inusSrcAlpha);
            m_Fade$$anonymous$$aterials.Enable$$anonymous$$eyword("_ALPHABLEND_ON");
            m_Fade$$anonymous$$aterials.renderQueue = 3000;
avatar image Sgt_Spike NoDumbQuestion · Jul 09, 2018 at 08:16 AM 0
Share

Thanks for the answer. I really wish I understood what the code meant that you've posted and where to put it but sadly I have no idea. Just going to work now but i'll have a look into it after and see if I can figure something out :D

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by EthanRushbrook2 · Jul 09, 2018 at 01:35 AM

The easiest way to make an image transparent is to create a world space canvas and attach a canvas group component to it. An alpha option pops up and inside of the canvas (as a child) will go transparent.

I think this solves what you’re trying to do. If not, just add a comment.

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 Sgt_Spike · Jul 09, 2018 at 08:14 AM 0
Share

Thanks for the answer. It doesn't look like it's working sadly. I can't get the render texture to appear at all on the canvas.

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

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

What basic shader is needed for change the color on particle system with particles based on a spritesheet? 0 Answers

Particles Instantiate doesnt show up (Hidden behind background image) 0 Answers

PostProcess Outline Shader GVR alignment 0 Answers

How to Stop Particle effects from overlapping via stenciling/shading 0 Answers

Is there a way to fetch albedo/spec/roughness/AO and normals (RTs) in a deferred frag. shader? 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