[Released] iXors3D Header Update and Library Update (ver 0.111)

Previous topic - Next topic

bigsofty

Yep, I saw the Hash keys in an Xcode project files and thought "I'm not touch that!"  :whistle:
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

bigsofty

Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

codegit

------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

kaotiklabs

any small step-by-step of how to integrate it?

I downloaded but didn´t find an especific glbasic readme.
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

mentalthink

HI, Kaotic you have a .txt on explain about to put the libraries on Glbasic.
it´s calles quick Ixors3D Instllation guide.

I think whit this can makes works.


bigsofty

Your very welcome James.

Yep, that's the readme for the GLB install.

Cheers,


Ian
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

kaotiklabs

Thanks, I don´t understand why I bypassed that file. xD
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

mentalthink

HI, anybody can put on the forum the _maze test , because on the web of Ian the example don´t be downloaded.
Another question is, how make to run the wrapper, I follow all the steps for run it on glbasic and always appear this error, I think something I making wrong, but I don´t kwon what.

linking:
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1e): undefined reference to `_xGraphics3D'
*** FATAL ERROR - Please post this output in the forum
_______________________________________

Note: I stay trying compile for Windows, I kwon what the library is for Iphone, but anyway you have to test on PC,?¿

And another point, I have two functions on the wrapper what don´t appear in blue, own a standard function, this is normal or only occurs to me.

This wrapper is for v8 of GLasic or runs equal in v.7

Best Regards
Iván J.

bigsofty

Hi,

I have only tried it with V7, if any one uses V8, then please post.

The maze example is no longer available, I'll update it to match the new command set soon.

I am afraid, I don't have a great amount of time for examples. I will be keeping the headers up to date though.

Cheers,


Ian
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

mentalthink

Hi Ian, thanks for reply.

Well, I use v7 of glbasic but I don´t arrive to works on my Glbasic, I don´t know what happens, for try the library don´t need to buy the Xors of pay, no?¿.

I like to try this library, becasuse I think have 3D whit this quality on Iphone can be maravellous, I wait to the next update ;).

Another question Ian, can be posssible, I don´t kwon if require lot of time, to make what xors works in another platforms, in example Windows mobile and WIZ (in near future Canno), I don´t know if this is from your part or the people what made Xors.

I don´t want say to have to make, only is if it´s will can be done, i Know have to do this, is too much work.

Thanks Ian, again.

Best Regards,
Iván J.

bigsofty

No problem Ivan.

Well I'll retest the headers later today and do a quick "hello world" example too.

iXors3D's big brother Xors3D, is available for Windows. It's syntactically similar to iXors, so coverting the code to run on Windows is a definate possibility.

As far as, other platforms are concerned I would advise posting a request on the Xors3D forum.

Cheers,


Ian
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

mentalthink

HI Ian, thank, but don´t care, I don´t have too much hurry.
Make the "hello world", when you can, I don´t want opress whit this theme.

Anyway thanks for your support.

Best Regards,
Iván J

NOTE:Sorry for my english I´m using  babylon and I don´t know if some words can be go to confussion. (opress)

bigsofty

Hi Ivan,

Your English is working out fine, if I get confused I'll let you know. ;)

Looks like a no go for tonight. I recently updated to iOS 4 and now my provisioning profiles are not working. I have to download the latest SDK I think, this will take a while (2 Gig!).

I'll re-try tomorrow,

Cheers,


Ian
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

Not being able to code for 4.0 with a 3.2 SDK that deploys to 3.0 is a PITA! Really, why oh why must I always upgrade everything just to "quickly" test an App...

bigsofty

Sorry its a little late Ivan but here you go.

Cheers,


Ian

Code (glbasic) Select
// Small example.

GLOBAL md2%
GLOBAL camera%, light%, font%, tex2%, tex3%, floor%
GLOBAL player_type%=1
GLOBAL scene_type%=2
DIM z%[1]

// we need TO see things AND be able TO move around IN the world
xGraphics3D(1)
font = xLoadFont("Media/Tahoma22")
tex2 = xLoadTexture("Media/wall.jpg",FLAGS_MIPMAPPED%)
tex3 = xLoadTexture("Media/model/dragon.bmp",FLAGS_MIPMAPPED%)
md2% = xLoadAnimMesh("Media/model/dragon.md2", 0)

// Set the font
xSetFont(font)

// create the ground
floor=xCreateCube(0)
xScaleEntity(floor,50,1,50,0)
xPositionEntity(floor,50,-4,50,0)
xEntityColor(floor,255,255,255)
xScaleTexture(tex2,10,10)
xEntityTexture(floor,tex2,0,0)
xEntityType(floor,scene_type,FALSE)

// create player POV
camera%=xCreateCamera(0)
xPositionEntity(camera%,80,80,80,0)
xCameraRange(camera%,.1,500)
xEntityRadius(camera%,2,5)
xEntityType(camera%,player_type,FALSE)
xCameraClsMode( camera, FALSE, TRUE )

// Turn on Tilt
xEnableAccelerometer(TRUE)

// TO make things a wee bit brighter, though we can use AmbientLight, AS well
light%=xCreateLight(0,0)

// set up our collisions
xCollisions(player_type,scene_type,2,2)

// Setup MD2
xEntityTexture(md2,tex3,0,0)
xAnimate(md2%,ANIMATION_LOOP%,1,0,1)
xScaleEntity(md2%,0.5,0.5,0.5,0)
xPositionEntity(md2%,50,10,50,0)

WHILE 1=1
xClsColor( ABS(SIN(GETTIMERALL()/100))*255, ABS(SIN(GETTIMERALL()/300))*255, ABS(SIN(GETTIMERALL()/600))*255 )
xCls()

xTranslateEntity(camera%,0,-1,0) // a little bit of gravity FOR us
// Tilt move
IF xGravitationY() > -0.20 THEN xMoveEntity(camera,0,0,-.2,0)
IF xGravitationY() < -0.40 THEN xMoveEntity(camera,0,0,0.1,0)
IF xGravitationX() < -0.20 THEN xTurnEntity(camera,0,1,0,0)
IF xGravitationX() > 0.20 THEN xTurnEntity(camera,0,-1,0,0)
//    xTurnEntity(camera,0,xTouchX(0)-xTouchPrevX(0),0,0) // Touch turn?

xUpdateWorld(1)
xRenderWorld()
xText(0,0,"FPS:"+xFPSCounter(),FALSE,FALSE)
xFlip()
WEND


[attachment deleted by admin]
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)