GLBasic forum

Main forum => GLBasic - en => Topic started by: jtassinari on 2010-Nov-29

Title: Maybe... help? (SOLVED)
Post by: jtassinari on 2010-Nov-29
Cheers everyone,

I started to use GLB a shot time ago. I read some of the docs and tested many samples.
So I started with something basic to see if what I've learned was close to something that could work.


I did a 3d model (really simple one) opened to test it with DDDView (and it worked fine), but when i run my script (execute my prj) i got nothing else then  a black screen with the axes...

Here is the code:
Code (glbasic) Select

// --------------------------------- //
// Project: Test_1
// Start: Monday, November 29, 2010
// IDE Version: 8.174
// seperate media and binaries?
// SETCURRENTDIR("Media")

GLOBAL eggman# = 0
GLOBAL sprt_0# = 1
GLOBAL lit#    =-2
LOCAL prc

LOADSPRITE "cube1_au.bmp", 0
//X_LOADOBJ  "EggMan_rig1.ddd", eggman
X_LOADOBJ  "EggMan.ddd", 1

WHILE TRUE
prc = MOD(GETTIMERALL(), 1000)/1000
X_MAKE3D 1, 500, 45
X_CAMERA 100, 100, -100, 0,0,0
X_SPOT_LT -2, RGB(25, 255, 255), 100,100,100, -10,-10,-10, 120
X_CULLMODE 1
X_SETTEXTURE 1, 0
//X_DRAWANIM eggman, 0, 2, prc, TRUE
X_DRAWOBJ 1, 0
X_DRAWAXES 0,0,0
SHOWSCREEN
WEND
END


All called files are in the dev directory and I wander how to make it work...
Thnaks for any help,
cheers,

jT


[attachment deleted by admin]
Title: Re: Maybe... help?
Post by: MrTAToad on 2010-Nov-29
Which dev  directory are the files in ?
Title: Re: Maybe... help?
Post by: jtassinari on 2010-Nov-29
hops...
thanks indeed I got out of the mess as i checked the media path =)

thanks MrTAToad,
cheers,

jT