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] Cool screensaver

Author
Message
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 28th Sep 2007 11:58
OK, this is my last try of posting this. If it dissappears again I give up!

A while back I made some code which generated a normal map in real-time of a water simulation which could then be used within a shader and was quite effective.

This is a little screensaver I made whilst messing around with the code from that water simulation.


I then made this slightly altered, more colourful, version.


Pyramid Games Ltd
17
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 28th Sep 2007 15:08
Woah! This is awesome.

CrayZXP
17
Years of Service
User Offline
Joined: 1st Dec 2006
Location: Obviously not behind you...
Posted: 28th Sep 2007 22:53
It looks like a special effect for an attack in an RPG!

(I just wish I knew how to set a DBPro app as a screen saver )

No Common Sense for the Common Things!!!
Aralox
17
Years of Service
User Offline
Joined: 16th Jan 2007
Location: Melbourne
Posted: 29th Sep 2007 03:26
That is Incredible! I could just keep staring at it!

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 29th Sep 2007 20:26
Thanks everyone!

@CrayZXP - In the Project Manager window go to EXE Filname and type "whatever.scr". Now copy the SCR file into your C:\WINDOWS\system32 folder. Right click on your Desktop and click on Properties and then Screen Saver and it should be in the drop down list.

Ankillito
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Litigious California
Posted: 30th Sep 2007 21:39
Cool! I finally get memblocks now! Thx.

http://forum.thegamecreators.com/xt/xt_apollo_pic.php?i=1234759
Ankillito
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Litigious California
Posted: 6th Oct 2007 05:24 Edited at: 6th Oct 2007 05:24
Well, I was trying to show up Teh Coder, but I knew it wouldn't happen. Here's my version, using his functions. It's slower, and doesn't look as complicated... I'm just glad I got something working.



http://forum.thegamecreators.com/xt/xt_apollo_pic.php?i=1234759
Aralox
17
Years of Service
User Offline
Joined: 16th Jan 2007
Location: Melbourne
Posted: 7th Oct 2007 10:57
Thats pretty nice, i like it.

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 7th Oct 2007 15:05
@Ankillito - I'm glad someone found the code useful and thought it worth showing me up! Thats a pretty cool effect you made too.

Ankillito
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Litigious California
Posted: 8th Oct 2007 00:52
Thx. If you run your code again though, mine looks really bland. But hey, I learned something, so I don't care. Right now, I'm trying to apply the memblock/image/texture technique to make a fire effect...

http://forum.thegamecreators.com/xt/xt_apollo_pic.php?i=1234759
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 8th Oct 2007 01:31
Cool. Good luck! If you need any help then let me know.

Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 8th Oct 2007 06:30
Can you post a screen shot?

Uhhhhhhh.... I forgot
Ankillito
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Litigious California
Posted: 8th Oct 2007 07:25 Edited at: 9th Oct 2007 02:03
of the fire? eh?

http://forum.thegamecreators.com/xt/xt_apollo_pic.php?i=1234759

Attachments

Login to view attachments
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 8th Oct 2007 12:49
If you meant a screen shot of my screen saver then here you go but you really can't get much idea of what it is like when it isn't moving.



Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 8th Oct 2007 16:25
This is pretty bad-ass. Well done

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 8th Oct 2007 17:26
Thanks!

TinTin
18
Years of Service
User Offline
Joined: 16th May 2006
Location: BORG Drone Ship - Being Assimilated near Roda Beta (28)
Posted: 9th Oct 2007 17:05
That looks cool Well done.
I can think of several uses for this...

1).. A majic reveal, using object transparency to display a character in the middle of this effect.

2).. A cool 3D cloud or smoke effect with a little modification.

3).. A cool backdrop to a menu screen.

Keep up the good work.

Go Create...

Cyberspace was becoming overcrowded and slummy so I decided to move. These nice chaps gave me a lift.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 10th Oct 2007 10:36
Thanks! Memblocks are just so incredibly useful that you could alter this in so many ways to create a different effect.

Silicon Zombie
17
Years of Service
User Offline
Joined: 7th Oct 2007
Location: UK
Posted: 10th Oct 2007 15:52
Thats a really nice effect you have there (Ive learnt alot of new things by looking at your code)

Thanks for sharing it with us.
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 10th Oct 2007 21:28
That is the coolest thing i have ever seen in DB Good work!
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 11th Oct 2007 02:33
Wow, that is absolutely amazing! Well done.

Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)
Ankillito
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Litigious California
Posted: 11th Oct 2007 02:48
Wow. Every time I look at it again, I feel unworthy...

http://forum.thegamecreators.com/xt/xt_apollo_pic.php?i=1234759
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 11th Oct 2007 11:20
Wow! Thanks! You are all incredibly kind worded!

@Silicon Zombie - Glad someone else could learn something from it.

dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 11th Oct 2007 13:14
Agreed, looks really cool; hard to believe it's a bunch of plains .

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 11th Oct 2007 19:06
Thanks, I must admit I was quite suprised it worked as effectively as it did.

Binary Coder
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Queensland, Australia
Posted: 13th Oct 2007 10:42
The screenshots look great, but im getting a runtime error
(memblock outside of range)

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 13th Oct 2007 12:37
Watch version of DarkBASIC are you using?

Binary Coder
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Queensland, Australia
Posted: 14th Oct 2007 02:12
Pro, but i think it is because i changed the display mode from 32 to 16 because my hardware cannot run it.

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 14th Oct 2007 03:52 Edited at: 14th Oct 2007 03:52
Quote: "Pro, but i think it is because i changed the display mode from 32 to 16 because my hardware cannot run it."

That's the problem then; when you make a memblock from an image the depth will match the resolution you're using (a 16bit memblock is half the size of a 32bit one, hence the error).

Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)
Binary Coder
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Queensland, Australia
Posted: 14th Oct 2007 07:05
Thanks Benjamin, any idea on how to fix it?

Login to post a reply

Server time is: 2024-11-22 13:33:28
Your offset time is: 2024-11-22 13:33:28