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 Sahil-Ramani · Sep 19, 2011 at 07:18 AM · fogvolumetric

Volumetric Fog?

Hi, I'm trying to have volumetric fog in my game, but every time I enable fog, it tends to stick only on the terrain, and I can't see any fog up from the terrain. I need a 360* fog and was wondering if there's a way to do that.

Thanks in advance

-Sahil

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

6 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by syclamoth · Sep 19, 2011 at 07:35 AM

The default fog in Unity fades to a block colour, not the skybox- the skybox itself is not subject to attenuation from the fog!

More importantly, this fog is hardly what one could call 'volumetric'. All it does is fade away as the camera gets further away. If you wanted your fog to affect the skybox as well, make your sky colour the same as the fog colour so that you can't see the difference. I would like to write a fog shader that fades to skybox, but I haven't yet so I can't really help with that exact problem.

As far as I can tell, the default settings for the fog conflict a bit with the default skybox colour. You need to set them to be the same, then you won't get weird horizon shapes when things are fully in fog.

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
2

Answer by Sahil-Ramani · Nov 15, 2011 at 07:00 AM

Turns out the Global Fog image-based shader (http://unity3d.com/support/documentation/Components/script-GlobalFog.html)

does some pretty good screen space volumetric fog. Drop it on the camera, and select the fog mode to Absolute or Relative Y and/or distance and watch the fake volumetric fog fill the screen.

There's plenty of options to choose from also.

  • Sahil

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 taxvi · Mar 28, 2014 at 12:51 AM 0
Share

But it requires Unity Pro :( voted up, though

avatar image
-1

Answer by Sahil-Ramani · Sep 19, 2011 at 04:31 PM

Yea, I'm looking for a more volumetric solution, figured someone would've written a shader for that, oh well, I guess I'll have to write it myself.

-Sahil

Comment
Add comment · Show 4 · 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 syclamoth · Sep 19, 2011 at 11:12 PM 0
Share

When you write it yourself, please post the solution on the unify wiki! I for one would be very interested in it!

avatar image AlanMattano · Nov 04, 2016 at 05:00 PM 0
Share

Hi Sahil, this is a comment and this comment is not a direct answer to your question. If you read this please take your comment out and make it under the answer "Add comment" to be clean. Thanks

avatar image tanoshimi AlanMattano · Nov 04, 2016 at 09:07 PM 1
Share

@Alan$$anonymous$$attano - Speaking of keeping UA clean, you do know that you just brought this ancient question back to the front page by replying to a comment a user made over 5 years ago?

avatar image CSXsonic tanoshimi · Jan 10, 2017 at 01:53 AM 0
Share

Interesting...

avatar image
0

Answer by Kronnect · Dec 22, 2015 at 09:11 AM

Well, I created Volumetric Fog & Mist. Check out this video: http://youtu.be/8mNRcQ9_Gf4

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 AlanMattano · Nov 04, 2016 at 10:21 PM

[2016] In the Unity Adam Interior demo, on the asset store, (Unity 5.4.1) you can find a "VolumetricFog" script attach to the camera. The Asset script is in Features, Volumetric Fog Folder. It works in a small interior (illumination is less than 10 m) with no directional light.

There is this also this True Volumetric Lights (Now Open Source) here: https://forum.unity3d.com/threads/true-volumetric-lights-now-open-source.390818/

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 AlanMattano · Nov 04, 2016 at 10:30 PM 0
Share

@tanoshimi I didn't know that, thanks. I'm using the VolumetricFog script that is included to new $$anonymous$$Interior asset. Searching for documentation about the script, this question was first in google results. I think questions must be general and eternal and answers must be improved with new ones.

  • 1
  • 2
  • ›

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

9 People are following this question.

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

Related Questions

Unwanted HDRP Volumetric lighting has grainy effect based on distance 1 Answer

Volumetrics (Fog, Clouds, etc.) 1 Answer

Simplest way to achieve this Fog effect 1 Answer

Foggy Water? 1 Answer

Volumetric fog / mist 2 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