Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - matchy

#41
GLBasic - en / Midi reader
2010-Sep-24
Moru's midi creator lib is great for writing midi files and I see the the read midi functions are left empty. I've tried to write these but I can't get it working.
Any chance of anyone able to update this lib?  O_O
#42
GLBasic - en / Wav byte
2010-Sep-09
Is this right or how can the write spot be set regarding WAV header file creation?!   :blink:

Code (glbasic) Select

WRITESTR  iWavefile,"RIFF"                    // 04
WRITEBYTE iWavefile,INTEGER(iRIFFLength)     // 08
WRITESTR  iWavefile,"WAVE"                    // 12  Format
WRITESTR  iWavefile,"fmt "                    // 16  Subchunk1ID
WRITEBYTE iWavefile,INTEGER(16)               // 20  Subchunk1Size (16 FOR PCM)
WRITEBYTE iWavefile,INTEGER(1)                // 22  AudioFormat   (1 FOR PCM)
WRITEBYTE iWavefile,INTEGER(iChannels)        // 24  NumChannels Mono/Stereo
WRITEBYTE iWavefile,INTEGER(iSampleRate)      // 28  SamplesPerSecond
WRITEBYTE iWavefile,INTEGER(iBytesPerSecond)
WRITEBYTE iWavefile,INTEGER(iBlockAlign)
WRITEBYTE iWavefile,INTEGER(iBitsPerSample)   // 36
WRITESTR  iWavefile,"data"                    // 40  Subchunk2ID
WRITEBYTE iWavefile,INTEGER(iDataLength)      // 44  Subchunk2Size


WAV file format:
https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
#43
Here is a video and source test for Apple's iAd Banner with GLB.  :good:
http://www.youtube.com/watch?v=ndQYcpnGTGQ

Easy to implement and works for portrait and landscape rotatable, so room for these function parameters. The only small objc issue is if I set the banner at the bottom of the screen, it jumps back to the top after viewing the ad.  :sick:

Update: my file removed...used trucidare's!

[UPDATE]
Latest version seems here:
http://www.glbasic.com/forum/index.php?topic=5932.new;topicseen#new
#44
A string that is joined by chr$(13)+chr$(10) (CR LF) for PUTFILE will insert 2 lines, but chr$(9) (DEL) to remove won't so I'm wondering if it is possible.
#45
Beta Tests / Gem Rain
2010-Apr-10
Gem Rain for Windows is in the showcase.  8)
This is the same version for the iPhone and I think it's been working okay but feel free to beta test it please!

http://www.glbasic.com/showroom.php?lang=en&game=gemrain
#46
In WINCE, SETCURRENTDIR does work with GETFILELIST. It just returns the file list from the root "/" folder.  :sick:
#47
GLBasic - en / 3D Alpha
2009-Nov-21
Objects that are drawn with an opaque alphamode only allow other objects that have been pre-drawn to be seen thru. Is there a way for post-drawn objects?


Code (glbasic) Select
// Sample of triangles drawn behind first are only opaque.
funStart3DAlpha()

FUNCTION funStart3DAlpha:
funCreateTriangle(0)
funAnimate()
ENDFUNCTION

FUNCTION funAnimate:
LOCAL z

WHILE TRUE
X_MAKE3D 1,10, 45
X_CAMERA 0, 0.25, -2, 0, 0, 4
ALPHAMODE 0.075
FOR z=1 TO 3
X_MOVEMENT -1,  0, 4-z
X_DRAWOBJ   0, -1
NEXT
FOR z=1 TO 3
X_MOVEMENT  1,  0, z
X_DRAWOBJ   0, -1
NEXT
SHOWSCREEN
WEND
ENDFUNCTION

FUNCTION funCreateTriangle: num
LOCAL col

col=RGB(255,255,255)
X_OBJSTART num
X_OBJADDVERTEX -0.5,  0.5, 0.0,  0.1, 1.0,  col
X_OBJADDVERTEX  0.0, -0.5, 0.0,  0.5, 0.0,  col
X_OBJADDVERTEX  0.5,  0.5, 0.0,  0.5, 1.0,  col
X_OBJEND
ENDFUNCTION


[attachment deleted by admin]
#48
On Win32 it's fine but the iPhone can't find the shader fragment file whether it's in the app or media folder (always false).

IF X_LOADSHADER(12, "", "multitexture.frag")=FALSE THEN DEBUG "File not found"
IF X_LOADSHADER(12, "", "Media/multitexture.frag")=FALSE THEN DEBUG "File not found"
SETCURRENTDIR("Media") : IF X_LOADSHADER(12, "", "multitexture.frag")=FALSE THEN DEBUG "File not found - help!"

#49
Beta Tests / Maze tiler test
2008-Jan-21
Testing out a total of 3MEG bitmap sprites with PeeJay's Random Maze Generator.

#50
Just wanted to try something useful limited to no sprite file bmp loading, grab or poly. Even the text is hard coded for now as I can't read ini or text data files

So for new years the pocket sized lcd marquee was fun to try out. :D



EDIT by Schranz0r:

You can post YoutubeMovies with

(youtube) mPRg6GdL7JM (/youtube)  Just replace ( with [

Thats it ;)
#51
Help! DRAWRECT and PRINT work okay but I can't seem to get LOADSPRITE/DRAWSPRITE or LOADSOUND/PLAYSOUND to work on my Pocket PC (iPaq rx1945).