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 /
avatar image
0
Question by Ignition246 · Mar 15, 2011 at 09:52 PM · camerarpgviewfog

How to make a good fog effect?

I am currently working on an rpg type game, and while in a somewhat large city, it is very laggy. I am in the unity program, not on a network, just me and myself. I thought that the problem was maybe there were too many polygons on the screen at once, so i reduced the overall view, but now i need to make a good fog effect so that buildings dont just appear out of nowhere. Does anybody know how to make a good fog effect, or know a way around the lag i am experiencing? thanks

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

5 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Suraj. · Aug 14, 2015 at 07:22 AM

Hello. My friend this is how i created fog effect. Create empty object add particle system and use these settings. NO lag and pretty good effect. I used this for my 2D game. Just rotate and you can use it for 3D. alt text


fog.png (19.8 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 Harinezumi · Oct 11, 2017 at 03:40 PM 1
Share

I'm sorry to say this, but this screenshot is pretty useless without showing all the other parameters that are in emission, shape, etc. Also, in practice 20 000 max particles is way too much, it can drag your game to halt.

avatar image
0

Answer by 14ercooper · Aug 14, 2015 at 03:51 AM

Method 1 - Simple and easy:
Window --> Lighting
Scroll down and check fog
Edit settings to your liking

Method 2 - Slightly faster, more customization:
Remove Global Light
Add a point light, child to player
Create a material for skybox color
Window --> Lighting
Set skybox material to newly created material
Make sure Sun says None
Set Ambient Source to color
Set the ambient source color
Edit the point light, skybox color material, and ambient source color to suit your needs

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 Peter G · Mar 15, 2011 at 10:25 PM

You can turn on fog in the render settings, or you can manually add fog into your shaders.

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 Ignition246 · Mar 15, 2011 at 10:26 PM 0
Share

I did use the fog in the render settings, and it looks okay, but I want something that looks good. I will try the shaders thing though. Thanks

avatar image
0

Answer by efge · Mar 15, 2011 at 10:34 PM

Take a look at this answer Creating Mood and Atmosphere with lighting in Unity?.
There is a lot of information about lighting, fog, aerial perspective, colors etc.

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 sharpndagger · Dec 05, 2011 at 10:49 PM

i made the fog in the render settings to the color i wanted it (my case was grey). i then went to the camera and changed the camera background to the same/near the same color as what i made the fog and i then made a particles effect to go with the fog so it made it almost give it a Silent Hill kind of feeling with the ashes that are falling. it made the fog look good on my part give it a shot.

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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I know if a gameObject is 'seen' by a particular camera? 11 Answers

How do I calculate a view matrix using Matrix4x4.LookAt? 2 Answers

RPG scripts 2 Answers

Change camera when holding right mouse button 0 Answers

Camera messes up view(With pictures) 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