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
1
Question by Hawkeye0203 · Aug 06, 2012 at 04:53 PM · distancespherefogpoint light

Fog only working on light sources?

Hello everyone! I'm going to preface this question by saying I am EXTREMELY NEW to both game development and Unity. I have been a programmer in other languages for years, but just recently decided to try my hand at game development so if the answer is obvious, please be gentle. :)

I have an outer space scene with stars/suns that are point light sources with a basic texture. Around each are planets, which are just untextured spheres at this moment. When I apply fog, the suns behave as expected with the furthest away being completely obscured while the closer they get, they brighter they get. However, the planets seem to be unaffected by the fog. They show up no matter how far away they are. Is this just a setting I missed somewhere or does it have to do with them not be textured? Or maybe something else all together?

Thanks in advance for anyone that can help me out!

EDIT: Attached screenshot. You can see at the "farthest" distance, there isn't a sun to be seen, but you can still see the planets/spheres just fine, albeit small.

alt text

galaxy.unity.jpg (15.4 kB)
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 Meltdown · Aug 06, 2012 at 07:14 PM 0
Share

That doesn't sound right can you post a screenshot? What shader are your planets using?

avatar image Hawkeye0203 · Aug 06, 2012 at 11:49 PM 0
Share

I edited to post a screenshot. Farthest distance can still see the spheres, but no sun. $$anonymous$$id-range can see a barely visible sun and closest is an obvious sun.

1 Reply

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

Answer by Hawkeye0203 · Aug 16, 2012 at 06:54 PM

I just wanted to post the answer I found myself. The planets were not being hidden by the fog because they were not textured. Once I textured them, they acted as expected

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

8 People are following this question.

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

Related Questions

A node in a childnode? 1 Answer

How can I cause a sphere to bounce forward infinitely with the same distance 3 Answers

How to scale an object between two values over distance 1 Answer

How to calculate speed & distance on a sphere? 1 Answer

Underwater - Fog and Skybox 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