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

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

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

Wordcount:215 commands

compiling:
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 ***
#282
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?
#283
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)
   NEXT

   SHOWSCREEN
   MOUSEWAIT
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...?
#285
:booze: :booze:I hope everyone has a safe and happy Christmas!:booze: :booze:
#286
GLBasic - en / Multi Core
2006-Dec-21
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.
#287
GLBasic - en / Quiet...
2006-Dec-09
Its been pretty quiet here, everyone getting ready for Christmas?
#288
Does GLBasic use bones for its model animation (quaterions/slerps) or just mesh deformations (ala MD2)?

Ian
#289
For the ObjectCreation Demo 3D project....

_______________________________________
*** Configuration: WIN32 ***
precompiling...

GPC - GLBasic Precompiler V.2006.244 - 3D, NET
compiling...
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".

Ian
#290
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,

Ian
#291
GLBasic - en / GLBasic news?
2006-Aug-12
Kinda bored, anything to look forward to in the GLBasic pipeline?

Any news Gernot?

Cheers,


Ian
#293
GLBasic - en / Gp2x
2006-Jul-12
A linux based handheld console...

http://craig.gp2x.de/review/GP2XReview.html

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

A possible future platform for GLBasic?


Ian
#294
GLBasic - en / Requests
2006-Jun-18
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?


Ian
#295
http://russose.free.fr/ Blender for the pocket PC, its amazing what people can squeeze into there PPC!

Ian
#296
Hi,

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?

Ian
#297
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
    c=RGB(255,255,255)

    width=width-1
    height=height-1
    STARTPOLY id
        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
    ENDPOLY
ENDFUNCTION
Becomes...

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. :)
#298
Hi,

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,

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

Ian