- Home /
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
@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
O$$anonymous$$, so I think you're looking for "Volumetric light"
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.
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!
@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?
If you need godrays: Post-Process Godrays In Unity
Also can't you use sun shafts Image Effect from Unity Pro?
Your answer
Follow this Question
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