Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Lens flares

Author
Message
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 30th Jul 2003 21:32 Edited at: 30th Jul 2003 21:33
Hi All,

A nice subtle lens flare, because there isn't enough of them already .

http://www.realgametools.net/forums/attachments/VANB-Lensflare.zip

Van-B

My cats breath smells of cat food.
Robin
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location: United Kingdom
Posted: 1st Aug 2003 13:19
Thanks very much, have been looking for this for quite a while - I'd like to use this in my game if that is OK?

Robin

ps. Works in DBC too, just add wrapvalues to the mouselook line and rem out the lighting commands at the beginning


http://www.thegameszone.tk
robin@thegameszone.tk
sinny
21
Years of Service
User Offline
Joined: 7th Feb 2003
Location:
Posted: 1st Aug 2003 14:33
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 1st Aug 2003 14:40
Nice, how'd you get the flare textures to come out so well (the gradient transparency thing), ghost object?

"Computers are useless they can only give you answers."
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 1st Aug 2003 15:39
Thanks guys, feel free to use it as you see fit.

It uses FADE OBJECT to fade the effect out when it's near the edges of the screen, better than just hiding them. In Patch5, I reckon there's a couple of problems, so I suggest changing it so each lens is a tiny amount different on the Z positioning, like .01 or something, because they seem to overlap now and interfere, probably Lees new alpha commands would work better than fade object.


Van-B

My cats breath smells of cat food.
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 2nd Aug 2003 05:49
Ahh, I see.

"Computers are useless they can only give you answers."
Robin
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location: United Kingdom
Posted: 2nd Aug 2003 17:33
I noticed something - when you point the camera at the sun, and then keep on moving the mouse up, the sunflare still stays on the screen, even when you are not facing it...


http://www.thegameszone.tk
robin@thegameszone.tk
UberTuba
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 3rd Aug 2003 14:46
one of the prettyest effects in DBpro ive ever seen.

can i use it in my game?

the artist formally known as darkfluff
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 3rd Aug 2003 15:34
Thanks - and of course you can use it.


Van-B

My cats breath smells of cat food.

Login to post a reply

Server time is: 2024-04-16 23:34:52
Your offset time is: 2024-04-16 23:34:52