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: Smooth Plasma Effect

Author
Message
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 13th Nov 2006 15:55 Edited at: 13th Nov 2006 16:02
Argh! Not another plasma demo! Well, yes it is. Enjoy.





I have included a load and save routine, so you can save a file with the desired start position of the demo. Just press space to save the desired starting point. Then the next time you run it, it will start from the point you chose.


Please help me test this code! I have attempted to use a timer loop so that it works the same at different frames per second. But because my pc is so slow I can only test it over a small range of fps's. Please test it at a low fps (say 20 fps) by adjusting line 3 to 'sync rate 20', then put it back to the maximum fps (sync rate 0) and tell me if it behaves any differently - eg. if it seems to go faster, or appears jerky or jagged. Thanks.



Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th Nov 2006 16:00
Tested it at 20, and it's still just as smooth.. obviously lower fos, but smooth never the less. Very nice job

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 13th Nov 2006 16:02
Thanks Zoto - what was the max fps you got?

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th Nov 2006 16:06
About 29fps, but my computer's garbage.

wildbill
18
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 13th Nov 2006 16:30
I tried it at 20 fps and 0 fps. I was getting about 60 fps on my dell m70 laptop. It looked good at both rates.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 13th Nov 2006 17:52
Very nice. I tried it at sync rate 20, and it was noticeably 'jerky' although not too bad. At sync rate 0 it was extremely smooth, no problems at all, and averaged around 130 fps. This is with DBPro 6.3 in Window Full Screen mode.

In FSEX it locked at 60fps (the max refresh of my monitor) but was as smooth as silk, as was Window Full Screen with the vsync on and no sync rate set at all.

"Bite my shiny metal ass" (Futurama)
"Don't ping my cheese with your bandwidth" (Dilbert)
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 13th Nov 2006 18:38
Great - thanks for the feedback guys.

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th Nov 2006 19:21
I really like how it's kinda smoky.

UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 13th Nov 2006 19:55 Edited at: 13th Nov 2006 19:55
Pretty!

I got 72 with a student tablet pc.

Good job

Gamer Making
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 14th Nov 2006 02:38
what tha code for computer to explode ric? when you run code.

Bach Tran
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Nov 2006 22:14
That's in the 20 line challenge thread GM...

Mr Tank
21
Years of Service
User Offline
Joined: 25th Nov 2002
Location: United Kingdom
Posted: 15th Nov 2006 04:12
That's nice. Runs at 14 fps on mine.


You'll be able to click on this someday.
Senkan
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the frozen Finland.
Posted: 6th Dec 2006 19:12
Very nice Plasma demo. My FPS was around 60 with my home computer.
Good job Ric!

"Whatever that was, I don't care."
-Someone from FarCry

Login to post a reply

Server time is: 2024-11-22 23:11:48
Your offset time is: 2024-11-22 23:11:48