• Welcome to Theos PowerBasic Museum 2017.

BassBox 2011 (version 2.60)

Started by Patrice Terrier, January 07, 2009, 09:03:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Patrice Terrier

#45
Here is a preview of the revisited MATRIX.

I still have some work to do on it, however it will give you already a good vision of what i have done with Jürgen code.

The attached ZIP file is provided without the source code, because i must clean it before posting it there.

Use the Left and Right mouse button to change the background, and do the same while holding down the Left Shift key, to move from one frame to another.

Note: The textures have been designed to be displayed full screen, using BassBox 2.53+, and full HD mode (1920 x 1080) that will be the new standard ;)



...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#46
Here is the first release of the "Matrix revisited"

Once again i would like to thank Jürgen who did all the hard work of translating the C++ code to BBplugin.

Screen shots:







...

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#47
Second release of the "Matrix revisited" with new textures and full source code.

Several changes in this version:

- Now you can have an unlimited number of backgrounds and frames,
 as long as you name them this way:
 BKG_*.jpg (background)
 FRM_*.png (transparent frame)

- New BBplugin.inc API(s)
 FUNCTION BBP_IsKeyDown (BYVAL CheckKey AS LONG) AS LONG
 FUNCTION BBP_IsShiftKeyPressed () AS LONG
 FUNCTION BBP_IsCtrlKeyPressed () AS LONG
 FUNCTION BBP_IsLButtonDown () AS LONG
 FUNCTION BBP_IsRButtonDown () AS LONG
 SUB BBP_ListDeleteAll(BYVAL hList AS LONG)
 SUB BBP_ListSelectPlus(BYVAL hList AS LONG, BYVAL nSelected AS LONG)
 FUNCTION BBP_ListGetCursel(BYVAL hList AS LONG) AS LONG
 FUNCTION BBP_ListAdd(BYVAL hList AS LONG, zTmp AS ASCIIZ) AS LONG
 FUNCTION BBP_ListGetText(BYVAL hList AS LONG, BYVAL Item AS LONG) AS STRING
 FUNCTION BBP_ListCount(BYVAL hList AS LONG) AS LONG
 SUB BBP_DetectTexture(BYVAL sFilter AS STRING, BYVAL hList AS LONG, BYVAL nUseItem AS LONG)
 FUNCTION BBP_UpdateNamedGLTextureFromFile(zFullName AS ASCIIZ, BYVAL NamedTexture AS LONG, BYVAL nSquareMode AS LONG) AS LONG

- All the backgrounds are rectangular to best fit on full HD display (with aspect preservation).

- All settings are set to enhanced mode.

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

Running in full aero crystal mode on windows 7



...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#49
This version introduces the new HUD buttons, to navigate between frames or backgrounds.

The HUD buttons are drawn in 2D OpenGL mode, using standard pixel window coordinates.

To show them, move the mouse cursor either on top or bottom of the window.
(They are shown or hidden automatically).

You can just click the left mouse button on an arrow, or hold the left mouse button down to change in sequence.

New frames have been added.


Here is a screen shot showing the bottom HUD buttons:


...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

This is the fourth "mouture", with:

- Little pulsating effect for the background image.
- Two more backgrounds.
- New restore HUD button (to switch back from full screen mode).


Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Jürgen Huhn

Patrice!

I think With this Plugin,
a new Level of Quality is realized as a Standart for future BBPlugins!
PowerBasic provide`s very good handling for any Kind of Array`s, but to use
an unvisible "Lisbox window" is another elegant Solution to Hanle the Texture`s.
I have the Idear to use a "Listview Control", because there are a bit more Function`s..
For example, usage of Colums for different Proberty`s or sorting by
Filenames seperated from Pathname`s, Filesize, Last Modified, File extension`s and so on..

But for first, i found a little Problem..
On my Laptop doesn`t exist your zTrace.dll and by running the Plugin without the DLL, you`re
not be able to select another Texture for the Background and no HD-Button`s are displayed.

I would suggest to put the zTrace.dll into the zip to resolve the Problem!

Now i want to say,

the new Plugin is the nicest MatrixFall i`ve ever seen and
thank You for this fantastic Teamwork!!

...
;)
.¸.•'´¯)¸.•'´¯)¸.•'´¯)¸.•'´¯)
¤ª"˜¨¨¯¯¨¨˜"ª¤....¤ ª"˜¨

Patrice Terrier

Jürgen (and others)

I have attached to this post three more Matrix backgrounds that i think you may like...

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#53
Jürgen

I have much more textures that those i have posted here, thus feel free to change their number if they don't match with yours, it is what i am doing myself  ;)

I shall download now your new one.

1> Added:
I have removed your last ZIP, because the Matrix.bas version you put in it, was not using 2.04 but a previous one (without the changes done to ColorInit).
After checking JH_glGetMessage.inc, i found that JH_glResizeViewport and JH_glDoMsg are not used by the plugin.

Note: I am using zXref to cleanup the code, and keep the plugin as small as possible.

2> Added:
I have reworked your texture and added a new frame to use with it.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

I have also reworked the attached BKG_012.jpg to remove the jpeg pixel artefacts.

Note: I always use best quality with JPEG to avoid artefacts, when playing in full screen mode.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#55
Jürgen

If you post a new version make sure you start from the version 2.04, that was posted here, and not from an oldest one, thank you.

Here is the good ColorInit:

SUB ColorInit()
   DIM gbbColor(1 TO 33) AS LONG, sCoef AS SINGLE
   sCoef = 0.75                                              
   gbbColor(1)  = RGB(32  * sCoef,  32 * sCoef,  32 * sCoef) 'RGB(32,32,32)  
   gbbColor(2)  = RGB(0   * sCoef,  44 * sCoef, 233 * sCoef) 'RGB(0,44,233)  
   gbbColor(3)  = RGB(0   * sCoef,  67 * sCoef, 210 * sCoef) 'RGB(0,67,210)  
   gbbColor(4)  = RGB(0   * sCoef,  89 * sCoef, 187 * sCoef) 'RGB(0,89,187)  
   gbbColor(5)  = RGB(0   * sCoef, 112 * sCoef, 164 * sCoef) 'RGB(0,112,164)
   gbbColor(6)  = RGB(0   * sCoef, 135 * sCoef, 142 * sCoef) 'RGB(0,135,142)
   gbbColor(7)  = RGB(0   * sCoef, 159 * sCoef, 117 * sCoef) 'RGB(0,159,117)
   gbbColor(8)  = RGB(0   * sCoef, 183 * sCoef,  88 * sCoef) 'RGB(0,183,88)  
   gbbColor(9)  = RGB(0   * sCoef, 207 * sCoef,  58 * sCoef) 'RGB(0,207,58)  
   gbbColor(10) = RGB(0   * sCoef, 231 * sCoef,  29 * sCoef) 'RGB(0,231,29)
                                                                             
   gbbColor(11) = RGB(26  * sCoef, 234 * sCoef,  26 * sCoef) 'RGB(26,234,26)
   gbbColor(12) = RGB(52  * sCoef, 237 * sCoef,  23 * sCoef) 'RGB(52,237,23)
   gbbColor(13) = RGB(79  * sCoef, 240 * sCoef,  20 * sCoef) 'RGB(79,240,20)
   gbbColor(14) = RGB(105 * sCoef, 243 * sCoef,  17 * sCoef) 'RGB(105,243,17)
   gbbColor(15) = RGB(126 * sCoef, 245 * sCoef,  14 * sCoef) 'RGB(126,245,14)
   gbbColor(16) = RGB(147 * sCoef, 248 * sCoef,  11 * sCoef) 'RGB(147,248,11)
   gbbColor(17) = RGB(168 * sCoef, 250 * sCoef,   8 * sCoef) 'RGB(168,250,8)
   gbbColor(18) = RGB(189 * sCoef, 253 * sCoef,   5 * sCoef) 'RGB(189,253,5)
   gbbColor(19) = RGB(210 * sCoef, 255 * sCoef,   2 * sCoef) 'RGB(210,255,2)
   gbbColor(20) = RGB(233 * sCoef, 255 * sCoef,   0 * sCoef) 'RGB(233,255,0)
                                                                             
   gbbColor(21) = RGB(255 * sCoef, 255 * sCoef,   0 * sCoef) 'RGB(255,255,0)
   gbbColor(22) = RGB(255 * sCoef, 251 * sCoef,   0 * sCoef) 'RGB(255,251,0)
   gbbColor(23) = RGB(255 * sCoef, 235 * sCoef,   0 * sCoef) 'RGB(255,235,0)
   gbbColor(24) = RGB(255 * sCoef, 215 * sCoef,   0 * sCoef) 'RGB(255,215,0)
   gbbColor(25) = RGB(255 * sCoef, 196 * sCoef,   0 * sCoef) 'RGB(255,196,0)
   gbbColor(26) = RGB(255 * sCoef, 176 * sCoef,   0 * sCoef) 'RGB(255,176,0)
   gbbColor(27) = RGB(255 * sCoef, 156 * sCoef,   0 * sCoef) 'RGB(255,156,0)
   gbbColor(28) = RGB(253 * sCoef, 137 * sCoef,   0 * sCoef) 'RGB(253,137,0)
   gbbColor(29) = RGB(255 * sCoef, 117 * sCoef,   0 * sCoef) 'RGB(255,117,0)
   gbbColor(30) = RGB(255 * sCoef,  97 * sCoef,   0 * sCoef) 'RGB(255,97,0)  
   gbbColor(31) = RGB(255 * sCoef,  78 * sCoef,   0 * sCoef) 'RGB(255,78,0)  
   gbbColor(32) = RGB(255 * sCoef,  58 * sCoef,   0 * sCoef) 'RGB(255,58,0)  
   gbbColor(33) = RGB(255 * sCoef,   0 * sCoef,   0 * sCoef) 'RGB(255,0,0)  
END SUB


and the function using it:


        'CALL glColor4ub(BBP_GetRValue(RGBColor) * 0.75, BBP_GetGValue(RGBColor) * 0.75, BBP_GetBValue(RGBColor) * 0.75, 128)
        CALL glColor4ub(BBP_GetRValue(RGBColor), BBP_GetGValue(RGBColor), BBP_GetBValue(RGBColor), 128)


...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Jürgen Huhn

#56
Patrice,

thank you very much for your work!!

I really appreciate that!

And i will keep in Mind to take the latest Version next time...

Thank`s a lot!

:)
.¸.•'´¯)¸.•'´¯)¸.•'´¯)¸.•'´¯)
¤ª"˜¨¨¯¯¨¨˜"ª¤....¤ ª"˜¨

Jürgen Huhn

Bonjour Patrice,

votre MatrixFont La texture est très bon - le job idéal!

Dois vous remercier!

Thank You very much!!

..
.¸.•'´¯)¸.•'´¯)¸.•'´¯)¸.•'´¯)
¤ª"˜¨¨¯¯¨¨˜"ª¤....¤ ª"˜¨

Patrice Terrier

Here are two new backgrounds.

Suggestion for the Bubble plugin  ;D
(replace the MatrixFont texture with a bubble one, and draw them from bottom to top instead of top to bottom).

...

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Jürgen Huhn

Quote from: Patrice Terrier on February 24, 2010, 05:22:52 PM

Suggestion for the Bubble plugin  ;D



Or an Aquarium with Bubbles and swimming Fishes :)

Funny Idear, i think about it..

I want to see the new Background`s now..

Thank`s again!!
...
.¸.•'´¯)¸.•'´¯)¸.•'´¯)¸.•'´¯)
¤ª"˜¨¨¯¯¨¨˜"ª¤....¤ ª"˜¨