lens flare

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

lens flare

Post by scott »

i am affter a lense flare efeect

Image
*GD*
User avatar
Spyrewolf
Posts: 450
Joined: Tue Jul 05, 2005 4:53 am
Location: Wellington::New Zealand

Post by Spyrewolf »

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.
MakerOfGames
Posts: 866
Joined: Fri Jul 08, 2005 4:27 am
Location: PA, USA

Post by MakerOfGames »

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.
Think outside the box.
To go on an adventure, one must discard the comforts and safety of the known and trusted.
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott »

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?
*GD*
User avatar
psYco
Posts: 782
Joined: Wed Mar 15, 2006 10:55 am
Location: England

Post by psYco »

Sounds cool :D !
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).
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott »

ive got a view of the earth with the sun just coming into focus with an animation within the scene. just wanted a cool cutscene
*GD*
User avatar
psYco
Posts: 782
Joined: Wed Mar 15, 2006 10:55 am
Location: England

Post by psYco »

Wicked cool! :D 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! :(
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott »

neither do i, its something i have to look into
*GD*
User avatar
psYco
Posts: 782
Joined: Wed Mar 15, 2006 10:55 am
Location: England

Post by psYco »

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! :D

Theres a great wikipedia on it but its like 300 pages im on like page 10! LOL :roll: !

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
Post Reply