i am affter a lense flare efeect
lens flare
the closest thing we have to a lens flare is the corona, not really a lens flare but it works well with lights,
below from the docs
Corona
The Corona entity is used to place a corona (or halo) around some object, most likely a light.
Field Descriptions
The fields for the Corona entity are:
Field
Description
BoneName
Name of actor bone to attach to
Color
Color of corona
EntityName
Name of the entity to attach this entity to
FadeTime
How long the fade takes to drop to zero visibility, in seconds
MaxRadius
Maximum radius corona will ever increase to, in texels
MaxRadiusDistance
Above this distance, corona is capped at MaxRadius
MaxVisibleDistance
Maximum distance corona is visible at, in texels
MinRadius
Minimum radius corona will ever drop to, in texels
MinRadiusDistance
Below this distance, corona is capped at MinRadius
Model
Name of the world model to attach to
szEntityName
Name of this entity
TriggerName
Name of trigger entity
however the skydome has a built in flare feature with the sun.
below from the docs
Corona
The Corona entity is used to place a corona (or halo) around some object, most likely a light.
Field Descriptions
The fields for the Corona entity are:
Field
Description
BoneName
Name of actor bone to attach to
Color
Color of corona
EntityName
Name of the entity to attach this entity to
FadeTime
How long the fade takes to drop to zero visibility, in seconds
MaxRadius
Maximum radius corona will ever increase to, in texels
MaxRadiusDistance
Above this distance, corona is capped at MaxRadius
MaxVisibleDistance
Maximum distance corona is visible at, in texels
MinRadius
Minimum radius corona will ever drop to, in texels
MinRadiusDistance
Below this distance, corona is capped at MinRadius
Model
Name of the world model to attach to
szEntityName
Name of this entity
TriggerName
Name of trigger entity
however the skydome has a built in flare feature with the sun.
-
- Posts: 866
- Joined: Fri Jul 08, 2005 4:27 am
- Location: PA, USA
Hmmm.... I think I know how to do it. Well, in theory that is.
Here is what I thought up:
You will need to make a few 2D entities that will always face the player. Each entity will be a section of the lens flare. Then attach them to another object to line up all the sections of the lens flare. So then you have a nice line of lens flare effects. Then attach them to the player and keep the object always rotated twords your light source. Then when the player rotates twords the light source, the lens flare shows up because the entities come into veiw. If you really wanted to, you could even code somthing to brighten the screen the more directly the player faces the light source.
Does that make sense? I think that will get the effect. I am about 70% sure that it will work. The only thing I am not sure on is if the lens flare will be in the right spots when viewing it. But it will get the effect on screen. Oh, I just realised that if you do the method above, you would be able to see the lens flare when you are in buildings and other things that should not have lens flare. If you were to try my theory you would need to create a way to turn it off in areas that should not have it. Despite that fatal flaw, I hope my theory above helps in some manner.
Here is what I thought up:
You will need to make a few 2D entities that will always face the player. Each entity will be a section of the lens flare. Then attach them to another object to line up all the sections of the lens flare. So then you have a nice line of lens flare effects. Then attach them to the player and keep the object always rotated twords your light source. Then when the player rotates twords the light source, the lens flare shows up because the entities come into veiw. If you really wanted to, you could even code somthing to brighten the screen the more directly the player faces the light source.
Does that make sense? I think that will get the effect. I am about 70% sure that it will work. The only thing I am not sure on is if the lens flare will be in the right spots when viewing it. But it will get the effect on screen. Oh, I just realised that if you do the method above, you would be able to see the lens flare when you are in buildings and other things that should not have lens flare. If you were to try my theory you would need to create a way to turn it off in areas that should not have it. Despite that fatal flaw, I hope my theory above helps in some manner.
Think outside the box.
To go on an adventure, one must discard the comforts and safety of the known and trusted.
To go on an adventure, one must discard the comforts and safety of the known and trusted.
yea sounds like an idea, i was thinking of something similar, having severl squars made from bsp geometry and barke down the lense flare with transparency values then line them up as its only in one cut scene i wanted it in at the moment and the player dont move, the only problem is braking the picture of the lens flare down into its different layers.
and for anyone else who wants to get this effect wouldnt having a spotlight do the job of brightening the screnn up?
and for anyone else who wants to get this effect wouldnt having a spotlight do the job of brightening the screnn up?
*GD*
Sounds cool !
But just curious what are you using i for? Ive never realy got games that gave you lense flare when you look at the sun, since when I look at the sun I just go a bit blind Ive never seen a lense flare in RL (real life).
But just curious what are you using i for? Ive never realy got games that gave you lense flare when you look at the sun, since when I look at the sun I just go a bit blind Ive never seen a lense flare in RL (real life).
My Deviant Art - http://black-crusader.deviantart.com
Wicked cool! Oh just wondering, what program do you use to do your cutscenes in? In my new game they are an integral part but I cant seem to work out how to make good cut scenes, i dont even know where to start!
My Deviant Art - http://black-crusader.deviantart.com
Well, one thing ive found is a free CG cutscene maker called Blender 3D they used sumink just like it on the first toystory so it really powerful!
Theres a great wikipedia on it but its like 300 pages im on like page 10! LOL !
Any way it might help heres the links! http://en.wikibooks.org/wiki/Blender_3D ... le_Version
http://www.blender.org/cms/Home.2.0.html
Theres a great wikipedia on it but its like 300 pages im on like page 10! LOL !
Any way it might help heres the links! http://en.wikibooks.org/wiki/Blender_3D ... le_Version
http://www.blender.org/cms/Home.2.0.html
My Deviant Art - http://black-crusader.deviantart.com