Game Development Community

Sun/Lens Flare Client Side

by Chris "C2" Byars · in Torque Game Engine · 07/31/2005 (8:49 am) · 17 replies

Has anyone been able to get the sun/lens flare to work client side as well, not only visible to the server player? (I'm no C++ guru, so I'm no help with fixing it to work client side)

#1
08/02/2005 (4:48 pm)
Isn't this in TGE 1.3/1.4? I could swear theirs lens flares on the sun in TGE 1.3/1.4 ?
#2
08/02/2005 (4:50 pm)
It is. Check the fps.starter kit.
#3
08/02/2005 (5:28 pm)
Erm..I'm not talking about the nice "flame" edge effect of fxSunFlares... the sun flare code by Tim Newell draws the images and circles effects as if a camera lens is being used.

Like this one.
www.gamedev.net/reference/articles/lensflare/lens-flare-tut-shot1.jpg

The code Tim Newell wrote only works for the server player, not the clients.
#4
08/02/2005 (6:40 pm)
I know, and were saying we think its already in there, that resource is from 2002, which is when tge was 1.1 i think. I'm pretty sure alot of those FX Code was put into the head (ala fxShapeReplicator). Dig a little bit, you may find it. If not, were wrong, i'm not 100% sure its there, i'm almost possitive i've seen it before.
#5
08/03/2005 (5:03 pm)
Not in 1.3 or 1.4. I'm sure someone must have fixed the C++ file for this lens flare to get it to appear client-side.. :/
#6
10/20/2005 (11:43 am)
Why not make it yourself?

This + This = what you want...maybe :P
#7
10/20/2005 (11:47 am)
Because..

Quote:
I'm no C++ guru, so I'm no help with fixing it to work client side..
#8
10/20/2005 (12:34 pm)
I don't mean to hijack the thread, but...

What, exactly, is the big deal about 'lens flare'? Unless your game is taking place from the perspective of a camera, you shouldn't *have* lens flare, it's not something that happens to the human eye. I've just never understood why people like it so much.
#9
10/20/2005 (12:35 pm)
Our characters are in a suit, with a reflective glass opening in the helmet, it would cause a lens flare. Not to mention, it looks cool. ;)
#10
10/20/2005 (2:05 pm)
... or in-game movie style cutscences. Also, I guess 3d person camera views could also include it, because realistically, you dont control your body from outside your body.

John
#11
10/20/2005 (3:27 pm)
I handle Lens Flare using a GUI Object.
#12
10/20/2005 (3:40 pm)
Alrighty then. So, has anyone gotten the lens flare working client side?
#13
10/20/2005 (3:46 pm)
Umm... me.
#14
10/20/2005 (3:51 pm)
Is it the same resource? Same effect, I mean. What's different?
#15
10/20/2005 (3:57 pm)
I wrote my own Lens Flare object using TSE Gui Code, and wrote it in TGE as well... it's... ummm... client-side, because GUI objects are client side objects?
#16
10/20/2005 (4:02 pm)
Does it fade to white if you look near/directly at the sun?

Mind sending me an e-mail with the resources? :P
#17
10/20/2005 (4:03 pm)
Of course it fades to white, with near-bias.

I would, but I am trying to keep a hold on some technologies in Kuiper until an unspecified date :( Just look at the basic GUI objects, and figure out how they work.