- Home /
one more quick question if you will
Hey everyone I had my earlier question about lighting answered but I have one more quick question I would like to ask. The scene I'm working on for those that didn't read my last question is a scene in a 3d rpg game I'm working on where a hero gets teleported by a friend to a dimension he created where everything is black. His friend is sitting about an hours walk from where the hero is by a camp fire. So in order to show the hero where he is using the campfire he puts up a glow in the sky like a rainbow. So my question is how do i achieve that glow effect and how do i make it disappear as the hero gets closer?
I like the game idea. :) But I'm afraid it will be very hard for people to help answer this question because it's hard to narrow it down to technicalities just from the information you've given.
Ins$$anonymous$$d of presenting the gameplay/storyline idea, focus on describing the technical aspects of the game. Is this an FPS-style game? A 2D scroller? A platformer? Is it viewed from above? From the side?
If I were to venture a first guess, I'd say it sounds like this "glow" thing is like a flaregun, like an emergency distress signal from a ship? Take a look at particle systems, how to emit a single particle, and perhaps think about attaching a lightsource to the flare, so that it can light up its surroundings.
If this is not what you were thinking, you need to describe your scene in greater technical detail.
Alright well first off this game will be a active battle system rpg. The glow is not so much a flare gun its just this glow in the sky that disappears when you get closer to the location of the campfire where the friend is sitting at.
Answer by Tocaro · Nov 21, 2011 at 08:26 AM
Probably a combination of particle effects and a script adjusted spotlight. Go to the game objects menu and click create other, find and click the particle system. Once it's in, start adjusting values till you get the effect you like.
Then you'll need to modify the particle system so that the particles shrink or whatnot the closer the hero gets.
Use this:
var dist = Vector3.Distance(Hero.position, Campfire.position)
Read the dist between the two and adjust your particles and spotlight accordingly(use in Update() or an invoke repeating).
That doesn't look right since the particles sparkle out. I just need a gold rainbow like glow effect that disappears when you get closer it isn't very bright any one have any ideas?
Your answer
Follow this Question
Related Questions
Neon light or LED light 1 Answer
How do I do neon/glowing effect? 3 Answers
Some lighting advice, please 2 Answers
Making glowing lines and shapes 1 Answer
Glow Plane Trigger 0 Answers