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

#41
first I tested on iphone :

1000X1000 texture - Work
1024x1024 texture - Don't Work (stretch texture)
2000x2000 texture - Don't Work (stretch texture)
1000x2000 texture - Don't Work (stretch texture)

After:
I tested a loop of single sprite (first with polyvector an after with drawsprite) over 150 sprite (128x128 px)  load the iPhone crash ..... :S

This is the limit of GLBasic???????   :blink:

the limit of allocated memory is 600 kB????

I have 45MB memory free on iphone ......  :'(
#42
Hi,
In these days I built an editor in VB.net for GLBASIC (Edit Sprite, Level, Sound ecc...).

This is the video:

http://www.screencast.com/t/ZWVkY2U5ZWU

I do not know if I'll finish it.

Unfortunately I only now realized that I can not compile from external editor (only glbasic editor  :'(  )
#43
I test this simple 3D code:


Code (glbasic) Select

// Animation Demo
// Start: Friday, March 22, 2002
SYSTEMPOINTER TRUE
SETSCREEN 480,320,TRUE
SMOOTHSHADING TRUE

TYPE tMouse
x%
y%
active%
ENDTYPE

// Array to hold mice

GLOBAL mouse[] AS tMouse
DIM mouse[5]


X_LOADOBJ  "media/1.ddd", 1
LOADSPRITE "media/player01.jpg", 1

WHILE TRUE
updateMice()



IF mouse[0].active THEN phi=phi+GETTIMER()/100
// IF KEY(208) THEN MOVE = MOVE - 10
X_MAKE3D 1, 1000, 45
X_CAMERA 0, 0, -250 + MOVE, 0, 0, 0
X_SPOT_LT 0, RGB(255,255,255), 0,50,100,0,10,100,180

//phi=phi+GETTIMER()/100
permil=permil+GETTIMER()/20000; IF permil>=1 THEN permil=0

X_ROTATION 180, 1,0,0
X_ROTATION phi, 0,-1,0

X_SETTEXTURE 1,-1
X_DRAWANIM 1, 0, 128, permil, TRUE

GOSUB ShowFPS
PRINT "MOVE" + MOVE,0,20
SHOWSCREEN
WEND


// ------------------------------------------------------------- //
// -=#  SHOWFPS  #=-
// ------------------------------------------------------------- //
SUB ShowFPS:
X_MAKE2D
dtime=GETTIMER()
fps = ((1000/dtime)+fps)/2
delay=delay+dtime
IF delay>1000 // 1/2 sec
delay=0
fps_draw=fps
ENDIF
PRINT "FPS: "+fps_draw+"px:" + ply_x + " py:" + ply_y + " d:" + ply_dir, 0 ,0
ENDSUB // SHOWFPS



FUNCTION updateMice:
FOR imouse% = 0 TO GETMOUSECOUNT()-1
SETACTIVEMOUSE imouse%
MOUSESTATE mx%, my%, b1%, b2%
mouse[imouse].x=mx
mouse[imouse].y=my
mouse[imouse].active=b1
NEXT
ENDFUNCTION






I export the 3D model from 3D studio max to 3ds ... and i convert the 3ds (whit tool) in .ddd model

In Windows mode the code work fine, but in iphone runtime the model not show in screen ...

Detail model:
3d model polys -> 700
texture format -> jpg - 128x128

Help!
#44
Hi all,  :booze:
I use this array:

Code (glbasic) Select


TYPE livello
x%
y%
obj%
obj_1%
mx%
my%
active%
anim%
timer_anim%
explode%
explode_tmp%
rimnatric%
pos_x%
pos_y%
not_recopied%
remove%
new_x%
new_y%
x_1%
y_1%
ENDTYPE

GLOBAL livello1[] AS livello
DIM livello1[30][30]





this is the function for update sprite array:

Code (glbasic) Select

FOR x% = 0 TO 3
FOR y% = 0 TO 3
DRAWSPRITE livello1[x][y].obj,  livello1[x][y].x , livello1[x][y].y
NEXT
NEXT



when i compile the first two row work fine, but the last two row crash the application (application locked - terminated whit task manager)


|W|W|D|D|
|W|W|D|D|
|W|W|D|D|
|W|W|D|D|

W= WORK
D = DON'T WORK - TASKMANAGER TO CLOSE APPLICATION


I use sprite 62*62 png 24 bit
any suggestion ???
#45
GLBasic - en / ALPHAMODE
2009-Nov-14
1 - how to work this comman for single sprite (myobj.png 24 bit whit trasparency)????? (work whit iphone????)
2 - how to import external  *.GBAS in my project ???
#46
GLBasic Free export for iphone ???

It's possible to build an application whitout registration (99$) to the apple developer?

Thanx  :good:

Excuse me for my bad english  :whistle: