small (32k) purebasic demonstration

Developed or developing a new product in PureBasic? Tell the world about it.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Branston.

Unfortunantly I just get this...

Code: Select all

PBTEST caused an invalid page fault in
module PBTEST.EXE at 017f:00424ca8.
Registers:
EAX=00000000 CS=017f EIP=00424ca8 EFLGS=00010206
EBX=00000013 SS=0187 ESP=0065fe00 EBP=004262f8
ECX=00426200 DS=0187 ESI=00000001 FS=2b5f
EDX=006d0082 ES=0187 EDI=00000111 GS=0000
Bytes at CS:EIP:
88 08 40 80 f9 00 75 f5 c3 81 fa 00 00 00 00 74 
Stack dump:
0040390f 00427024 00427028 00000000 81c13c20
00550000 0042953c 00000000 0065fe0c 0065fc30
0065ff68 0040109a 0042701c ffffffff 0065ff78
bff8b560
(Win98SE, Detonator 29.42, Geforce4)

Registered PB 3.2 Win98SE
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TronDoc.

I get this:
-------------------------------------
error?!
Release of rendering context failed!
-------------------------------------
What are the minimum requirements for this program to work? -jb

elecTRONics DOCtor
{registeredPB}P150 32Mb w98/DOS/Linux NO DirX NO IE :wink:
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by traumatic.
I get this:
-------------------------------------
error?!
Release of rendering context failed!
-------------------------------------
What are the minimum requirements for this program to work? -jb
the error message you've got should be _after_ the program quits since it tries to close the window it opened and give all memory back. hmm...

minimum requirements should be an opengl-accelerated graphics card with - let's say 16mb and a 'not too old' cpu, maybe everything from pII upwards will do the trick - most of the work is done by the graphics-card anyway


tinman:
yes, there's supposed to be text in front of the tunnel.
i think you can't see this because voodoo cards only accept textures in a square size (ie 32^2, 64^2 etc.) but i used a 512x256 texture for the fontset.

mr. vain
regarding the size:
today i played around with it, wrote some code to generate a texture for the tunnel instead of loading it from a bmp and ended up with 16.928 bytes. is that small enough for you?


so what do you guys think of 'pb128k' ?
not interested? should give some good reputation on purebasic if there's the one or other cool entry.


regards,
traumatic
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.
traumatic wrote

mr. vain
regarding the size:
today i played around with it, wrote some code to generate a texture for the tunnel instead of loading it from a bmp and ended up with 16.928 bytes. is that small enough for you?

so what do you guys think of 'pb128k' ?
not interested? should give some good reputation on purebasic if there's the one or other cool entry.
Hi traumatic
Yes, its really nice to see the same effect now in about 16k :wink: Nice Work! Still looking forward for the source to learn a bit about the OGL stuff, hehe!

A small 128kb exe (packed) PB compo would be nice idea i think... At the moment i dont have the time to code something fot that compo but i am sure there a some guys around on this comunity with some interest!? :wink:

Keep on ya great work traumatic!


PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by traumatic.

hi again,

if anyone's still interested, i uploaded a modified version at

http://files.connection-refused.org/pbtest2.zip

exe-filesize is 16.928 bytes, so the topic isn't correct anymore...

you can choose between three different textures by passing -2 or -3 to the app, e.g. "pbtest2.exe -2" (-1 is the same as no parameter passed).


the problems concerning screen-resolution-switching and 'background flickering through' should be gone now (?)

Branston: sorry, i really don't know what's going on there :|


traumatic
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Tron.
the problems concerning screen-resolution-switching and 'background flickering through' should be gone now (?)
This version works great! The background flickering is gone.
Cool Demo Traumatic!


"Honesty is the best policy, but insanity is a much better defense."
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi traumatic
Really nice to have three different textures (color-tables) optional!
Works fine here... Good job :wink:


PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Branston.

Hi traumatic
PBTest2 works fine here. Very impressive! :)


Registered PB 3.2 Win98SE
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
yes, there's supposed to be text in front of the tunnel.
i think you can't see this because voodoo cards only accept textures in a square size (ie 32^2, 64^2 etc.) but i used a 512x256 texture for the fontset.
OK, thanks. I didn't realise the V3 needed square textures (I also though they were limited to 256*256 max). Anyway, the OGL drivers are in a constant state of beta, since they are only updated by some dedicated people in their spare time.
so what do you guys think of 'pb128k' ?
not interested? should give some good reputation on purebasic if there's the one or other cool entry.
I think it's a real nice idea, but I would not have the time or artistic talent to create something people would like to see. Fairly dull, get the job done correctly, applications is my forte (hey, I'm an engineer :wink:.

--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.20)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.


Good job traumatic, flickering is gone and this is very nice to see :).

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by traumatic.

tinman:
I think it's a real nice idea, but I would not have the time or artistic talent to create something people would like to see. Fairly dull, get the job done correctly, applications is my forte (hey, I'm an engineer :wink:.
who said applications in 128k aren't interesting?
Good job traumatic, flickering is gone and this is very nice to see :).
Fred - AlphaSND
thanks again! but it's your language that makes things like this possible. while i'm at it: it'd be 'even nicer' if i wouldn't have to convert every float value into doubles via makefloatdouble() and could use negative floats without initializing variables first
well, if makefloatdouble() would work inside procedures at least...



err... who burned my topic? :wink:
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
I think it's a real nice idea, but I would not have the time or artistic talent to create something people would like to see. Fairly dull, get the job done correctly, applications is my forte (hey, I'm an engineer :wink:.
who said applications in 128k aren't interesting?
You haven't seen my applications :wink:
I've got 72kb of (compiled) code and it doesn't do anything yet :)


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.20)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

welcome in the scene.........

Its a long way to the top if you wanna .....CodeGuru
Post Reply