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 / Glow effect

Author
Message
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 3rd Jan 2005 02:50
Hello all, this is a little glow/blur snippet I made for my game (see the attached file). You can add more plains if you want more glow


Attachments

Login to view attachments
French gui
20
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 3rd Jan 2005 04:07
Very impressive effect!

Sorry for my English...
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 3rd Jan 2005 04:12
héhé

I've seen your effect in the french dbp forum

really nice

French gui
20
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 3rd Jan 2005 04:15 Edited at: 3rd Jan 2005 04:15
This is a french thread!!!

Sorry for my English...
punkfan91
19
Years of Service
User Offline
Joined: 23rd Dec 2004
Location: England
Posted: 3rd Jan 2005 04:20
Not any more
As for the effect; it is amazing! I love it! I put it into an FPS engine I am working on, and it makes it look really good. I think that Prince Of Persia: Warrior Within uses a method similar to this, as it looks like it has this kind of glow effect throughout the entire game. Thanks for releasing this code, I really like it!

www.somethingfishystudios.tk
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 3rd Jan 2005 05:08
Pretty wicked



WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
DEANO
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United States
Posted: 3rd Jan 2005 07:06
very cool!


Deano

"When I examine myself and my methods of thought, I come to the conclusion that the gift of fantasy has meant more than my talent for absorbing positive knowledge."
-ALBERT EINSTEIN
Tersaken
20
Years of Service
User Offline
Joined: 15th Dec 2003
Location: France ( Rennes )
Posted: 4th Jan 2005 03:22
I think you have been inspired by Blizt 3d's Demonstration
Good effect ! Well done !
Nothing else to say

Athlon Barton 2500+ ; 512 Mo DDR2 ; GeForce Fx 5200 Ultra 128 MoDDR.
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 4th Jan 2005 08:16 Edited at: 4th Jan 2005 08:23
That's a pretty good effect, however, it manages to drop my frame rate from 310 FPS to 130 FPS, so although the demo works fine, it would be way too slow in a program with full collision detection and other effects.

Quote: "I think that Prince Of Persia: Warrior Within uses a method similar to this, as it looks like it has this kind of glow effect throughout the entire game."


Prince of Persia uses a Burst shader that makes the whole scene appear with a dreamy glow. On lower-end graphics cards you wouldn't get the effect.


"Computers are useless, they can only give you christmasy answers."
Vues3d on Kalimee
20
Years of Service
User Offline
Joined: 12th May 2004
Location: NYON (SWITZERLAND)
Posted: 4th Jan 2005 17:29
AMAZING! Efficient & Beautiful effect!

Guido
http://www.vues3d.com
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 5th Jan 2005 04:08 Edited at: 6th Jan 2005 03:17
Thaks all ^^.

I Can't did anything to increase the frame rate Maybe there is an other way to get this effect without shaders (but I have doubts )
ALPHA ZERO PRODUCTIONS
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 10th Jan 2005 20:53
it doesn't work for me

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
Cha0s
19
Years of Service
User Offline
Joined: 10th Jan 2005
Location: France
Posted: 11th Jan 2005 02:31
good work math
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 11th Jan 2005 04:22
Strange
This snippet don't use shaders so i think it can't be a problem with your graphic card

(if the graphical demo with blur motion the works on your computer, my code should work too)
BiggAdd
Retired Moderator
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 16th Jan 2005 05:57
Thats wicked! Btw, Isn't that called bloom? or is that something different? Fable has got bloom shaders on all its models(makes it look cool)!

ALPHA ZERO PRODUCTIONS
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 17th Jan 2005 15:54
is it surposed to be blank ?

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
Sinistar
20
Years of Service
User Offline
Joined: 23rd Jul 2004
Location:
Posted: 19th Jan 2005 02:32
Cool. I took your glow effect and mixed it with my glow effect and put it in my no media FPS

http://forum.thegamecreators.com/?m=forum_view&t=46362&b=6

Instead of having 2 or more plains offset, I have 1 plain and I take the image (from camera 1) and paste it to a small 32x32 bitmap, blur the bitmap, fade it a little (fast cause its just 32x32) then get the texture for the plain.

Notice the glowie light.

Attachments

Login to view attachments
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 26th Jan 2005 05:06
Nice.

1800+ XP - GeforceFX 5600 - 256MbDDR - 60Gb Hdd - XP Pro (SP2)
ALPHA ZERO PRODUCTIONS
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 19th Mar 2005 02:55
hey math can you make it a function plz ?

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP [URL=http://www.a-z-p.co.nr][/URL]
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 19th Mar 2005 03:42
Here is the function
ALPHA ZERO PRODUCTIONS
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 29th Mar 2005 11:39
how does it work ??? i keep having trouble making it work

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP [URL=http://www.a-z-p.co.nr][/URL]
BF game programmer
19
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: hoover alabama
Posted: 29th Mar 2005 13:57
cool i like it !

james bond rules
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 24th Apr 2005 00:31
Which part of this code would I need to change if I wanted to increase or decrease the amount of glow exactly?

Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 8th May 2005 02:26
just add some more plains in the plain init code to increase glow, and remove to decrease.
NzO
19
Years of Service
User Offline
Joined: 3rd Jun 2005
Location:
Posted: 4th Jun 2005 02:27
French people don't be silly Great work math for this effect.

NzO
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 1st Oct 2005 19:48
somehow when i try to add it into my game, nothing happens.

what happens is:
* when turned off i get 66fps (i have a really slow computer) and no blur(obviously)
* when turned on (with make_glow(4,62,1,1)) i get 30fps and no blur.

may it have anything to do with newton?
hardly.. but have you tested it with newton running?

may it have anything to do with the image number?
i am allready using image 1 so i changed that to something that is not in use.

really cool effect though, and i cant wait to get it to work

Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 1st Oct 2005 21:21
Do you position and turn the second camera in the main loop ?
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 1st Oct 2005 22:08
yes, using the "update_glow(1,fov#)" function you've made.

i tried that demo with the cubes ands spheres. it works.
but in my game it dont... this is so weird. i have copied everything from that demo into my game, but it still won't work.


totally offtopic:
Quote: "Your Post Count

To date you have posted:

1001 Forum Messages
76 Forum Threads

Assuming you took a mere 20 seconds to write each message, you've spent 5.56 hours (0.23 days) posting to this forum.

Must... get... life... "

wow, i just passed the 1000's post

Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 1st Oct 2005 23:30
I've juste found 2 errors in my functions :




Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 2nd Oct 2005 05:28
Hot! I'm impressed.


You are not alone.
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 2nd Oct 2005 16:59
still no workey for me

nothing is wrong with your code i have written several tests and they all work as expected. both dbp and newton.

the thing that is weird is everyone seems to get it working except me
like my game is doomed not to have blur effect in it. that sucks.

and it makes me pretty mad when i find a cool effect and i cant use it in my game, but i can use it anywhere else!!

Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 2nd Oct 2005 21:40
Did you set fov# to 62 ?
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 2nd Oct 2005 22:02
yes, and 62.0..

ill have a closer look at this tomorrow or the day after tomorrow (lol)..

Vues3d on Kalimee
20
Years of Service
User Offline
Joined: 12th May 2004
Location: NYON (SWITZERLAND)
Posted: 5th Oct 2005 14:07
I'm trying your code & this would be nice to use... but, there is a way to select only the object I want to glow instead of the whole scene???

Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 5th Oct 2005 16:33
You can't, or you need to clone all objects you want to glow and position them at x,y+5000,z (or something like that), set object light to 0 and position your camera at camx,camy+5000,camz.

The problem is that the glow will be too bright and opaque, so you have to position a grey plain in front of the second camera.
Louiz ofRohr
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 7th Oct 2005 23:13
I thought I was the only one who used that effect with a plain object

well done (very before me )



The worst foe lies within the self..

>WorstGame<
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 8th Oct 2005 13:22
Someone did that before me too : the motion blur demo in the showcase use the same effect (I think).
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 16th Oct 2005 19:37
Math89,
remember i had problems with your function?
well, i figured out what was wrong cant use any fog in the game

Login to post a reply

Server time is: 2024-11-23 11:28:56
Your offset time is: 2024-11-23 11:28:56