"This Is Art!" - A PureBasic Demo in 60kb

Developed or developing a new product in PureBasic? Tell the world about it.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Very entertaining. Good music - you're pretty talented with that synth!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Polo wrote:And set up OpenGL in linux is a nightmare ;)
No :wink:

OpenGL in Linux is often easier than in Windows. SDL is a shorter way to initialize OpenGL.
bye,
Daniel
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

Torus mania?
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

orange-blue wrote:don't you wan't to publich source code?
Ralf wrote:will you release and share the source
Sorry, I just can't break the tradition here ;)


If you happen to have any specific questions I'd of course be happy
to help you as much as I can.
Good programmers don't comment their code. It was hard to write, should be hard to read.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Traumatic strikes back ! Very impressive as always :twisted:
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Yeah I agree Fred.
He should make some demos and enter them in the demo scene competitions ;)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

DarkDragon wrote:
Polo wrote:And set up OpenGL in linux is a nightmare ;)
No :wink:

OpenGL in Linux is often easier than in Windows. SDL is a shorter way to initialize OpenGL.
Please do it if it's easy ;) Without SDL of course ;)
Because i've tried for DAYS to do that, and still not managed to do it, i've given it up since a few weeks ;)
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

:shock: wow man! this is the real shit!!!
i just loved the way you implment the music with the fading between demo to demo

damn man you rock, keep it that way (de leon jam x)
Blade
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Aug 06, 2003 2:49 pm
Location: Venice - Italy, Japan when possible.
Contact:

Post by Blade »

traumatic wrote:If you happen to have any specific questions I'd of course be happy to help you as much as I can.
I whish to know if you have coded DirectX "directly" (as you could do in C++ and in many other languages) or if you have used some built-in comands, such as the Sprite3D lib...

Anyway, don't matter your reply, your demo is still amazing :)
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Blade wrote:I whish to know if you have coded DirectX "directly" (as you could do in C++ and in many other languages) or if you have used some built-in comands, such as the Sprite3D lib...
Except for 'Memory', 'Library' and 'Window' no PB libraries have been used.
(Right, I could have done without them as well, that saved another 1-2kb
compressed ;))

So yes, it's all 'direct' Direct3D programming. Doing this in PB is almost the
same as in C (NOTE: not C++).

It's really not that hard at all:
Call "Direct3DCreate8" or "Direct3DCreate9" respectively from d3d8/9.dll,
setup a screen (GetAdapterDisplayMode) and finally call "CreateDevice".
That will return you a pointer to IDirect3DDevice*. Done.
Now you can go on like you would do in C or any other language.

All the interfaces you need have already been declared for you.
Everything else you need to know is inside the DX-SDK ;)



Thanks again for all your nice comments!

Take care of yourself! :)
Good programmers don't comment their code. It was hard to write, should be hard to read.
SoulReaper
Enthusiast
Enthusiast
Posts: 372
Joined: Sun Apr 03, 2005 2:14 am
Location: England

Post by SoulReaper »

Wow!! Simply amazing what people can do with Pure Basic...
Loved the Demo :D

Good Work traumatic :D
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Traumatic; my congratulations for this :)
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

However you managed it to do such nice stuff with DX only (without Sprite3D i think).... Very impressive work! traumatic the DX guru ;-)

Points: 10 / 10 Congratulations!
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Post by Guimauve »

MAN !! Only one word : NICE

:shock: :shock:

Regards

Guimauve
Armoured
Enthusiast
Enthusiast
Posts: 365
Joined: Mon Jan 26, 2004 11:39 am
Location: ITALY
Contact:

Post by Armoured »

GREAT! :shock:
Post Reply