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 - bigsofty

GLBasic - en / Type error?
Using types as parameter and return values for a small function library and Im getting this error...

Code (glbasic) Select
*** Configuration: WIN32 ***
GPC - GLBasic Precompiler V.2007.050 - 3D, NET

Wordcount:215 commands

C:/DOCUME~1/Dad/LOCALS~1/Temp/glbasic/gpc_temp5.cpp:9: error: expected constructor, destructor, or type conversion before '=' token
C:/DOCUME~1/Dad/LOCALS~1/Temp/glbasic/gpc_temp5.cpp:9: error: expected `,' or `;' before '=' token
*** FATAL ERROR - Please post this output in the forum
*** Finished ***
Time: 3.3 sec
Build: 0 succeeded
*** 1 FAILED ***
Is there a way to get a 2D Sprite, to control its transparency via the alpha channel of its PNG?

Also how do I achieve additive blending (in opengl something like... GlBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA)) in 2D?
Code (glbasic) Select
LOCAL face[]
   X_LOADOBJ "wumbo.ddd", 0

   X_MAKE3D 1,500,45
   X_CAMERA 10,2,-1, 0,2,0
   X_DRAWOBJ 0, 2
   count = X_NUMFACES(0)
   FOR i=0 TO count-1
      X_GETFACE 0, 2, i, face[]
      // face[node 0..2][x,y,z,tx,ty,col]
      X_LINE face[0][0], face[0][1], face[0][2], face[1][0], face[1][1], face[1][2], 4, RGB(0,0,255)
      X_LINE face[2][0], face[2][1], face[2][2], face[1][0], face[1][1], face[1][2], 4, RGB(0,0,255)
      X_LINE face[0][0], face[0][1], face[0][2], face[2][0], face[2][1], face[2][2], 4, RGB(0,0,255)
      X_DOT face[0][0], face[0][1], face[0][2], 8, RGB(0,255,0)
      X_DOT face[1][0], face[1][1], face[1][2], 8, RGB(0,255,0)
      X_DOT face[2][0], face[2][1], face[2][2], 8, RGB(0,255,0)

This line ...
Code (glbasic) Select
  FOR i=0 TO count-1needs to be changed to...
Code (glbasic) Select
  FOR i=0 TO count-1 STEP 3Run it, you can see the difference... could be revealing a bug, as there not strictly dealing with faces...?
:booze: :booze:I hope everyone has a safe and happy Christmas!:booze: :booze:
GLBasic - en / Multi Core
I like a lot of people, have just gotten a multi core CPU.

It would be nice to have thread support (even just 2) to separate visuals from logic processing in my game, currently the 2nd processor is not being used by GLB.
GLBasic - en / Quiet...
Its been pretty quiet here, everyone getting ready for Christmas?
Does GLBasic use bones for its model animation (quaterions/slerps) or just mesh deformations (ala MD2)?

For the ObjectCreation Demo 3D project....

*** Configuration: WIN32 ***

GPC - GLBasic Precompiler V.2006.244 - 3D, NET
ObjectCreation.gbas (4 KB)
..\..\..\Common\3DPrimitives.gbas (failed to open)
"ObjectCreation.gbas"(12) error : call to undefined function : CreateSphere

I had a quick look in the "common" directory, there are 3 files in there, none of which are "3DPrimitives.gbas".

Before I spend to much time on it. What experiences, if any, has anyone had with a scrolling tilemap on the  PDA platform? Is it a practicle method of scrolling the screen, has anyone managed more that 1 layer? Should I go with the old fashioned flip screen arcade adventure aproach?

Any info apreaciated,

GLBasic - en / GLBasic news?
Kinda bored, anything to look forward to in the GLBasic pipeline?

Any news Gernot?


GLBasic - en / Gp2x
A linux based handheld console...

... totaly opensource, no need for licenses to develop on it.

A possible future platform for GLBasic?

GLBasic - en / Requests
Hi Gernot,

Some requests, not important but food for thought...

I would like to see an LOD Landscape object, hightfield based with collision and multiple texture support.

Access to the GLBasic rendering pipeline via a plug-in custom command API. Create your own commands, via a DLL or have the ability witihin GLBasic to compile command libs?

No small requests, I know.

Any comments?

#295 Blender for the pocket PC, its amazing what people can squeeze into there PPC!


I was wondering what is in store for the future of GLBasic Gernot, what is the feature roadmap that we can look forward to?

I personaly would like to see Shaders and possibly LOD controlable landcape rendering at some point?

What is your take on things, longterm Gernot?

Not an essential but my favourite feature of the Delphi IDE is Code Folding. This is the ablility to 'fold' a block of code into a code folded marker '...'

For example :-

Code (glbasic) Select
[-]FUNCTION PSprite: id, tile, width, height, x, y
LOCAL sx, sy, tx, ty, dx, dy
LOCAL p2x, p2y
LOCAL cols, c
    GETSPRITESIZE id, sx, sy
    cols = INTEGER(sx / width)
    tx = MOD(tile, cols) * width
    ty = INTEGER(tile/cols) * height

        POLYVECTOR x,      y       ,tx      ,ty       ,c
        POLYVECTOR x,      y+height,tx      ,ty+height,c
        POLYVECTOR x+width,y+height,tx+width,ty+height,c
        POLYVECTOR x+width,y       ,tx+width,ty       ,c

Code (glbasic) Select
[+]FUNCTION PSprite: id, tile, width, height, x, y ...Browsing and arranging your code is a much easier afair.

As I said, not essential but I would love to see it in the editor. :)

Some, mainly pocket pc, questions Gernot,

1) How do you stop a GLBasic program that is stuck in an infinte loop?

2) What commands access the joypad/buttons of a PDA from with GLBasic?

3) How do you access the stylus of a PDA from within GLBasic?

4) Is there anyway to get system information from GLBasic when running on a PDA (Screensize/Colurs available/Memory/ SD Card installed/size etc...)

Thanks for any answers,

Got this error with the latest build of the Demo, when trying to compile for WINCE?