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
0
Question by 3dsnk · Apr 30, 2018 at 06:59 PM · cameraparticlesocclusionlens-flare

How to hide anamorphic lens flare when out of camera view and occluded?

Hey everyone,

I noticed that with the introduction of Post Process Stack, some things have changed and anamorphic lens flare, which used to be a feature, is now gone. So I'm trying to setup something using a particle system and scaled anamorphic lens flare texture.

It works in that it renders in front of everything.

Now I'm trying to figure out two things.

First, how do I make it fade out when the sun gets occluded by an opaque mesh object. I don't want it to snap out of existence, but have a quick fade.

Second, how do I make it so when the camera turns and the sun (and flare) are out of sight, the flare itself fades? So in this case, the particle system is not occluded, but the camera no longer sees the sun/flare.

The image below shows the flare. The top has the sun in view, the bottom has the sun out of view (flare out of view as well), yet the flare is still visible and persisting.

alt text

The bottom half of the image, it's hard to see so I circled it in red, but the lens flare is still visible when it should have faded out by now.

I would love comprehensive solutions to these issues, and would also welcome any links to tutorials that cover this.

Thanks!

flare.jpg (425.2 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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by DawdleDev · Apr 30, 2018 at 07:39 PM

Does this happen to be in-game? It's hard to tell.... Anyway, why don't you just use the components for lens flares? There is a FlareRenderer component for a reason. You might want to try that. It performs quite well.

Hope this helps!

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 3dsnk · May 01, 2018 at 10:19 AM 0
Share

Thanks for the reply. I actually am using the Lens Flare component. In my scene I have a sphere called S$$anonymous$$_Sun and on that I attached the Lens Flare Component. But this lens flare effect is the kind that angles downwards and diagonal across the camera view (as seen below):

alt text

I'm trying to make an anamorphic lens flare, a cinematic type. Think JJ Abrams' lens flares in the Star Trek movie. I attached another image below with the skybox hidden and the sun (and lens flare component) also hidden so you can see the anamorphic lens flare: alt text

Or are you saying there's a way to use the Lens Flare component to achieve the anamorphic lens flare look? I don't see any options there to scale the flare and make it long and stretched horizontally.

avatar image DawdleDev 3dsnk · May 01, 2018 at 03:40 PM 0
Share

https://www.youtube.com/watch?v=4jIuW-uwXYo&t=233s This should help. This guy knows a lot more than I do about this, and this video shows how to do EVERYTHING.

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

135 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

Related Questions

Camera cutout effect (fog of war) based upon particle system 0 Answers

Occlude Lense Flare with Particle System 0 Answers

Particles shrinking whenever camera gets too close? 1 Answer

2d Rain, moving with Camera 1 Answer

Shuriken won't render off camera bounds 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