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 /
This question was closed Jan 12, 2016 at 06:01 AM by Le-Pampelmuse for the following reason:

The question is answered

avatar image
0
Question by TSRajesh · Jan 11, 2016 at 04:20 AM · fog

Fog effect not working in built exe

Hi, I use a blue fog when camera is underwater.. It works all OK if I run the game from within unity. But if i create a windows .exe and run the game from there, the fog is not seen anymore. Any pointers?

Thank You.

Comment
Add comment · Show 4
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 jmgek · Jan 11, 2016 at 04:35 AM 0
Share

A few things it might be, are you sure your scene is in the build with the fog.

Is your performance choice for running the game effecting it?

avatar image TSRajesh jmgek · Jan 11, 2016 at 05:55 AM 0
Share

Performance doesn't affect it.. same with good or beautiful.. I don't get "scene is in the build with the fog". Do we have separate renderer (or lighting.. as in the new unity) settings for making a standalone .exe than executing within unity? (It works O$$anonymous$$ if i run from unity)

avatar image Le-Pampelmuse · Jan 11, 2016 at 06:36 AM 1
Share

This is a very vaguely formulated question.

There are hundreds of reasons and possibilities what you are doing and what doesnt work and why.

You "use a blue fog" when a "camera is underwater".

What kind of fog are you using. Billboards, custom vertex/fragment shaders, etc. How do you apply it. Is the script set to execute normally and not only in the editor. Are you manipulating the editors rendering with shadermodel emulation settings. Are your quality settings allowing the fog to render. The editor will preview the currently edited quality setting in the quality settings tab.

I could continue this list, but I won't because it wouldn't help the situation. ;)

When asking a question please be concise and tell us exactly what you did and what you have tried already to solve your problem, so we have a base to begin with.

Please edit your question to suit the above points. Otherwise this is a guessing game. ^^

PS: What jmgek was asking is: Is your scene with the fog included in the list of scenes in the "build settings"? Is the build definitely starting with that same scene?

avatar image TSRajesh Le-Pampelmuse · Jan 11, 2016 at 07:15 AM 0
Share

Nothing fancy. Not billboard or custom shader or particles or anything. Just the fog.

     RenderSettings.fog = true;
     RenderSettings.fogColor = new Color(0,0.4f,0.7f,0.6f);
     RenderSettings.fogDensity =  0.04f;

Of course, the scene is included in the build scene list.. (Otherwise i won't be able to execute that scene right?) But No, i don't start in that scene. (This is the second scene actually.. ) In the quality settings it is set to "good", and in the standalone also I tried "good". (Actually, tried all quality settings in standalone). I don't see any setting in quality settings that refer to fog. Only in the per-scene "lighting" menu.

2 Replies

  • Sort: 
avatar image
5
Best Answer

Answer by TSRajesh · Jan 11, 2016 at 07:47 AM

Okay, what worked for me is the solution I saw in the stackoverflow forum.. Changing the changing the "Shader Stripping" fog modes, in Graphics settings, to manual. This apparently is some sort of workaround, but works..

http://stackoverflow.com/questions/23541146/no-fog-after-build

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 Stephen_O · Aug 31, 2016 at 05:49 PM 0
Share

This worked great, thanks!

avatar image
0

Answer by jmgek · Jan 11, 2016 at 06:28 AM

Try to set the fog to 'Linear'. Linear fog will show a consistent experience between the editor and devices/screens.

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 TSRajesh · Jan 11, 2016 at 07:03 AM 0
Share

I already tried that, before posting the question. (After soem googling) In Windows->Lilghting-> Fog->Fog $$anonymous$$ode = Linear.. Still the same. Woks in Unity run, doesn't work in standalone executable..

Follow this Question

Answers Answers and Comments

34 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

Related Questions

How to do a fog effect on Android devices ? 0 Answers

Volumetric glow from emissive material in HDRP? 0 Answers

Sprites do not work with global fog 0 Answers

Change fog density between cameras?,Changing the density of fog 0 Answers

Unity3D Fog Bug Please Help 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