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 / [DBP]Swirl generator

Author
Message
Cave Man
17
Years of Service
User Offline
Joined: 22nd Aug 2006
Location: North Carolina, US
Posted: 8th Nov 2007 15:49 Edited at: 8th Nov 2007 19:06
This snippet will fill the screen with a swirl of colors It's pretty slow. I'm going to look into putting it in a shader so it can be dynamic

Here it is. Make sure you set the first line to your resolution
Mr Kohlenstoff
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 8th Nov 2007 16:27
Nice effect.

Cave Man
17
Years of Service
User Offline
Joined: 22nd Aug 2006
Location: North Carolina, US
Posted: 8th Nov 2007 19:10
Thanks
I just edited the snippet to use pointers, it's faster now. It generates them in less than three seconds.(on my computer anyways)
Gamer Making
17
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 9th Nov 2007 03:43
nice. cool effect !

Bach Tran
da power pwnerer
17
Years of Service
User Offline
Joined: 28th Jul 2006
Location: Pittsburgh, PA
Posted: 9th Nov 2007 22:15
lol, it looks like something the NES would do if you bump it or something

Cool effect



-Dan


http://Freewebs.com/noobisoft
Come to Noobisoft's website today!
calcyman
16
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 13th Nov 2007 18:06
Brings back memories of Commodore 64's when loading a disk.
If it was set to a low resolution (640x480) it would look pretty convincing!

Your signature has been erased by a hyper-intelligent pan-dimensional being (a mod)
Cave Man
17
Years of Service
User Offline
Joined: 22nd Aug 2006
Location: North Carolina, US
Posted: 16th Nov 2007 20:10 Edited at: 16th Nov 2007 20:13
@ da power and Calcyman
Haha, thanks for the comments.

I ported the swirl code to a shader. It's WAY faster now, and it's in 3D. You can also change the parameters to to the swirl in real time.
Many thanks to Green Gandalf and Chris K for helping me learn HLSL.

Here's the zip with all the files. Enjoy

Attachments

Login to view attachments
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 2nd Dec 2007 20:16
i works at 1> fps

Your signature has been erased by a mod because it's larger than 600x120
da power pwnerer
17
Years of Service
User Offline
Joined: 28th Jul 2006
Location: Pittsburgh, PA
Posted: 22nd Dec 2007 14:34
@kaedroho- set the sync rate to 0, the fps bolts up. If that doesn't work, use fastsync in the loop instead of sync

I get 850 fps , nice effect




-Dan


http://Freewebs.com/noobisoft
Come to Noobisoft's website today!

Login to post a reply

Server time is: 2024-05-18 02:01:50
Your offset time is: 2024-05-18 02:01:50