Dark Bit Factory & Gravity

PROGRAMMING => General coding questions => Topic started by: rdc on October 14, 2006

Title: Light Effecrs
Post by: rdc on October 14, 2006
Hey guys, I have a question for you gurus. I found TinyPTC for Delphi at this site:

http://home.kabelfoon.nl/~rhordijk/progs.html

If you scroll down on the page you'll see a section named Lights (under the Delphi header). The effect is quite cool, but the source code link points to a different file, and it seems the site is old and not being maintained. I was wondering if any of you know of some tutorials on this, or maybe have done this effect before. Mr. Google didn't really turn up anything useful.

Thanks!

Title: Re: Light Effecrs
Post by: Shockwave on October 14, 2006
Did you want to make something that just looked like the images?
The effect looks very much like a radial blur. Optimus posted a brilliant explanation of how to make them.

Try using this forum search with the keywords "radial blur", meanwhile I'll have a look later and post the link to the topic :)
Title: Re: Light Effecrs
Post by: rdc on October 15, 2006
Super. I'll do a search. Thanks.
Title: Re: Light Effecrs
Post by: Shockwave on October 16, 2006
Found it;

http://dbfinteractive.com/index.php?topic=219.0
Title: Re: Light Effecrs
Post by: rdc on October 16, 2006
I'll have a look thanks.
Title: Re: Light Effecrs
Post by: Shockwave on October 17, 2006
Let us know if it's what you were looking for, if not I'm sure that some code can be cooked up for you.
Title: Re: Light Effecrs
Post by: ferris on October 17, 2006
It seems you want to do this in 3D. Hopefully, because 2D is *MUCH* harder ;) !

Here's what you do:

1. Create an effect and draw it to a texture buffer.
2. Now draw this texture over and over, each time slightly larger and with more transparency.
3. Play with how many times you draw it, the rate it grows and the rate it "fades" until you get what you're looking for.
4. Enjoy :D .

Hope that helps,
Jake
Title: Re: Light Effecrs
Post by: rdc on October 17, 2006
I found some VB code that does a a bit what I am looking for, so I am going to try and port that to Delphi and see what I get. Once I get the basic code running, I'll play around with it and see what I can come up with. Thanks for the info guys.
Title: Re: Light Effecrs
Post by: mind on October 24, 2006
Quote from: rdc on October 14, 2006
Hey guys, I have a question for you gurus. I found TinyPTC for Delphi at this site:

http://home.kabelfoon.nl/~rhordijk/progs.html

If you scroll down on the page you'll see a section named Lights (under the Delphi header). The effect is quite cool, but the source code link points to a different file, and it seems the site is old and not being maintained. I was wondering if any of you know of some tutorials on this, or maybe have done this effect before. Mr. Google didn't really turn up anything useful.

Thanks!



the archive with the sourcecode can be found here: http://home.kabelfoon.nl/~rhordijk/data/bgl.zip

enjoy
Title: Re: Light Effecrs
Post by: Shockwave on October 24, 2006
Thanks Mind and  :hi: to the forum.
Title: Re: Light Effecrs
Post by: rdc on October 24, 2006
Thanks mind. Maybe I can figure this stuff out yet. :)
Title: Re: Light Effecrs
Post by: mind on October 24, 2006
anytime.. and thanks for the welcome :)