Author Topic: [Release] Xors3d build643 Wrapper for GLBasic  (Read 8536 times)

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Hi All,

At long last, here is the wrapper for Xors3d which I have been working on.
I will be keeping it up to date (well as much as time permits)
Many functions remain untested, but I have used many as well, and all I have needed so far work well.

I am including the GLBasic wrapper source code (just include with your project), as well as some additional PureBasic source code (for a helper DLL which comunicates with the library in utf8 when strings are passed), as well as a compiled version of the helper DLL (for those who don't own PureBasic and can't compile it themselves.)

Please note that any function which returns a const char* (string) will be appended with $.
Otherwise, everything uses the exact command names from the Xors3d documentation.

If you encounter any bugs, please post here and let me know, I will do my best to get everything working perfectly.
Or if you solve a problem, please also post here and let me know what was solved and how.

I hope this is useful to some in the community.
It should be a nice companion for BigSofty's iXors3d library, allowing you to test code locally in windows, and then only making minor adjustments to convert to iXors.

Thanks to all who assisted me on the forum when I encountered problems writing this wrapper, and especially to BigSofty.

regards,
Dave

[attachment deleted by admin]
« Last Edit: 2011-Jan-11 by Kitty Hello »
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5022
  • O Rly?
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #1 on: 2011-Jan-11 »
I test this later
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #2 on: 2011-Jan-11 »
Thanks Schranz0r  :)
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2628
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #3 on: 2011-Jan-11 »
A lot of works gone into this, congrats and thanks Dave!  :enc:

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)

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #4 on: 2011-Jan-11 »
Thanks Ian   :)

regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1635
  • Particle Hawk
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #5 on: 2011-Jan-11 »
Incredible lib. Ive heard good things about it.
However, please excuse my ignorance, is this for  opengl?
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #6 on: 2011-Jan-11 »
Hi Hemlos,

Xors3d is DirectX9.
iXors3d is OpenGLES

regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2628
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #7 on: 2011-Jan-12 »
Yes, it also has very nice entity manipulation commands, all gimbal lock free, perfect for say an flightsim for example...  ;)
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)

Offline Leginus

  • Dr. Type
  • ****
  • Posts: 288
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #8 on: 2011-Jan-12 »
Excellent work. Not something I will use in the next few weeks, but I was considering looking at some windows development this year, and I get the impression that Directx is slightly better supported on older gfx cards so this will be great.

Thanks for all your efforts

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #9 on: 2011-Jan-13 »
Thanks Leginus,

I hope it is useful for you.

regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1635
  • Particle Hawk
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #10 on: 2011-Jan-28 »
Hi Hemlos,

Xors3d is DirectX9.
iXors3d is OpenGLES

regards,
Dave

Oh i see, thanks for the clarification.


Yes, it also has very nice entity manipulation commands, all gimbal lock free, perfect for say an flightsim for example...  ;)

Gimbal lock is a side effect of opengl's inability to properly roll an object in 3 dimensions due to the internal object angular math(euler?) math.
Truely the only way to eliminate gimbal lock is by using the quaternion math lib you shared.
In case anyone wonders, you use the quat lib to roll-pitch-yaw the camera to the proper angles, aiming at a stationary object, then grab the sprite and billboard it. ;)
Thats all the bean im spilling tonight :P


Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline WPShadow

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1667
    • View Profile
    • http://lostrevenant.blogspot.com
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #11 on: 2011-Mar-03 »
Is there a chance for a short example, something like "hello world" with Xors3d?
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #12 on: 2011-Mar-06 »
Hi WPShadow,

I already answered you in your PM as you know, but I noticed you asked here also.
So in case anyone else is waiting for this, yes I will add some examples, but I am currently busy with work, as well as finishing some personal projects, but as soon as I have some time, hopefully soon, I will add examples.  :)

Regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline WPShadow

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1667
    • View Profile
    • http://lostrevenant.blogspot.com
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #13 on: 2011-Mar-09 »
Great! Thx!  :good:  :booze:
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Offline WPShadow

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1667
    • View Profile
    • http://lostrevenant.blogspot.com
Re: [Release] Xors3d build643 Wrapper for GLBasic
« Reply #14 on: 2011-Mar-16 »
Hi,

I had a little time, so I completed the first example!

It's the "Animated texture sample".

If there's enough time, I will "translate" the others. :-)

CU

W.

[attachment deleted by admin]
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est