VGFX-Demos


MATRIX/2

This is my first demo for the VFGX - graphic library. Soon the famous MATRIX sequel MARTIX RELOADED will start and i did want i ever wanted to program since i saw the first part: the scrolling matrix! There are some implementations (even a OS/2 one with VIO-output via ncurses) but this one i did completely myself. I found a Katana-keyset on the net, rescaled and repainted it a bit, sat down and within half an our the first matrix was ready. All in all it took 2 or 3 hours for a smooth scrolling, lighting ect. but here it is :

Matrix/2 screenschoot


You can download the binary here (143kB). You will need some helpers and dlls (290kB) as well. Unzip all files into a directory and run matrix.exe! At the moment i use dualmode RC5 since i had problems with the RC6. Currently the whole thing is somekind of speed-measurement. On my K6/2-500 i get about 33 fps when not interrupted by the screenshoot ;-). Note that when you run Matrix/2 your mouse will be grabbed. You can free it by CTRL+F12 and regrab by CTRL+F11. With installed SDDHELP.SYS (if your're running SDD 7 / SNAP you have this already, if not you can download it at the dualmode-homepage) you can press CTRL+F10 to activate fullscreen. CRTL+F9 will switch back to the WPS, ESC terminates the application. DO NOT TRY TASK-SWITCHING WHILE RUNNING FULLSCREEN, IT MAY CAUSE SYSTEM INSTABITY!!!. The program will use 640x480x16 and displaying 30*21=630 font-sprites with changing brithness, also including one complete backgound copy. Well, i think it is quite fast for that!

NEW:

You can use MATRIX [xdim] [ydim] [minimum speed] [random speed] to set a resolution and scrolling speed. If you want to set speed than you have to give a resolution! So "MATRIX 640 480 2 10" will run in 640x480 sets the minimum speed to 2 and random speed to 10 (so scrolling speed will be in the interval [2..12])In fullscreen the picture will be centered, so black borders will probabely occur with odd resolutions. Default is "640 480 10 10" .


History

13.05.03

  • first simple scroller

15.05.03

  • first release and a short note to comp.os.os2.games

16.05.03

  • made it to os2world in one day! ;-)

  • lot's of feedback, thanks to all of you. I will prepare and publish the results here this weekend

  • re-enabled FPS-Control (Q for 25 FPS, W for free speed)

  • splitt off the helper dlls and exes to helper.zip, you just need this file once

17.05.03

  • collected speed results (see below)

  • fixed bug "real division by zero" when pressing W

18.05.03

  • changed to "timer01" in dualmode for smooth scrolling & CPU reduction

  • added possibility to set resolution

  • added fluctuating brightness

19.05.03

  • addded possibility to set scrolling speed

29.10.03

  • A long time passed by but i finally managed to create a new version!
    This time it uses warpoverlay, so you need a working warpoverlay + a graphics board that supports RGB (FOURCC_R565) overlay As far as i know this is supported by:

    Rage128, Radeon,i740, Savages,Matrox G400 and Neomagic

    not supported for NVidia chips and for Matrox G200


    If you have a supported chip go get MATRIXOVERLAY.ZIP, unpack to any directory.

    Then

      1. Set your system to 32k or 64k color resolution
      2. Select no background image for the desktop.
      3. Set the desktop-color to R=4 G=2 B=13 (at least on my system this works)
      4. Start MATRIXFS [width] [hight] [speed]  


    Do not use odd values for width, or the image may be distorted. The third   parameter [speed] can control the framerate and thus (appart the size of   the image) the CPU usage. For my system (PIII 650) "MATRIXFS 512 512 20" gives   WITH running Z! about 57% CPU. Speed is aproximate the FPS, set speed to "0"   (or to extreme values, e.g. 1000) to see how fast it may be.

    HOW TO STOP THE PROGRAM


    Either select it in the warpcenter (if you have) or switch to it by ALT-TAB   and press ESC. The program should stop. You should be able to kill in the   windows-list or with other process-killers.

    GO MAKE THE WINDOZE LOOSERS CRY!



   

                 

 
some speed measurements with 640x480 and no FPS control

CPU

Speed

Chipset

 fullscreen

windowed 

Intel

2 GHz

ATI Mobility RADEON 7500

100

75

AthlonXP

1800+

Matrox MGA 450

119

119

PIII

750

Matrox MGA 400

66

42

PIII

unknown

ATI Rage

51

30

K6/2

500

Geforce2 Mx/Mx400

33

28

K6/3

450

Matrox G400

35

34

PIII

866

unknown

25

20

AthlonXP

2800+

Matrox G550

108

108

AthlonXP

1.67 GHz

Geforce2 Mx/Mx400

117

86




zurück
Kontakt & Rechtliches