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 rick-grendel · Nov 20, 2014 at 08:02 AM · lighteffect

Light rays in the fog! But how?

Hello people on the internet!

I am making a game. In this game is Fog. In this game is A lot of light. Its an open world game. If there is fog in the real world. The littlewater particles will be lighted. This will create A "light ray" This is a effect that i really like. 1 problem :( I dont know how! This effect adds a lot of realism in my game. I want this as well on point as spotlights. (sorry for the bad English). I really like to have a realistic something, A script?

Tips tricks scripts links videos its all welcome!

I need this effect: http://mechanicaldummy.com/wp/wp-content/uploads/2013/12/lights-3.jpg

http://gallery.hd.org/_exhibits/light/_more2006/_more12/stadium-lights-on-football-athletics-ground-fog-mist-heavy-duty-metal-safety-security-fence-on-foggy-misty-December-night-in-Kingston-London-England-2-DHD.jpg

Comment
Add comment · Show 11
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 robertbu · Nov 20, 2014 at 08:08 AM 0
Share

Both of your links are broken

avatar image tanoshimi · Nov 20, 2014 at 08:08 AM 0
Share

Both your links are broken. Do you mean "God Rays"?

avatar image rick-grendel · Nov 20, 2014 at 08:30 AM 0
Share

@robertbu @ tanoshimi sorry both links are now available and i dont mean god rays this rays come only from a flashlight http://lmgtfy.com/?q=flashlight+fog

avatar image tanoshimi · Nov 20, 2014 at 08:33 AM 0
Share

O$$anonymous$$, so I think you're looking for "Volumetric light"

avatar image rick-grendel · Nov 20, 2014 at 08:37 AM 0
Share

@tanoshimi Yes!

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by HarshadK · Nov 20, 2014 at 08:54 AM

You can achieve the effect of volumetric light by adding a cookie in front of your spotlight.

EDIT:

Ok. You need to add a mesh in front of your spotlight that will cover the part of light to be hidden.

Watch the last part of this video for creating a professional logo . It is for blender but he has shown a method to do volumetric lighting which is what I'm talking about.

Comment
Add comment · Show 6 · 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 rick-grendel · Nov 20, 2014 at 09:00 AM 0
Share

If i add an cookie i havent the rays visible between the source of the spotlight and the end (here is the cookie visible) i want the rays between visible!

avatar image HarshadK · Nov 20, 2014 at 11:16 AM 0
Share

Check the edit in the answer.

avatar image rick-grendel · Nov 20, 2014 at 11:20 AM 0
Share

@Harshad$$anonymous$$ yes if checked it but I am searching for a more realistic one. I have a flashlight on the ground end it must be a kind of 3d effect. Image-effect?

avatar image HarshadK · Nov 20, 2014 at 11:50 AM 0
Share

If you need godrays: Post-Process Godrays In Unity

Also can't you use sun shafts Image Effect from Unity Pro?

avatar image rick-grendel · Nov 20, 2014 at 11:58 AM 0
Share

is that possible with spot light?

Show more comments

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

27 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

Related Questions

How do i put lights with muzzleflash? 1 Answer

light on collision help (scripting) 2 Answers

Flashlight battery script 3 Answers

Flash light off on start 1 Answer

shafts of light in fog? 3 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