Author Topic: BulletPhysics for GLBasic... first preview! :)  (Read 10798 times)

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Hi guys,

if you love physics in 3D games, but you don't know how to implement it...
I'm writing a BulletPhysics - wrapper library for GLBasic, so you can use it without much physics knowledge!

I don't know when I will publish the lib and the functions for glbasic, but it won't take too long, I think!

In the demo are 625 falling boxes (only on Windows PC! Later for iDevices etc., I hope! :)).

Cheers

[attachment deleted by admin]
« Last Edit: 2012-Feb-29 by backslider »

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4158
  • On the shoulders of giants.
    • View Profile
    • My Apps
Nice :)
I came. I saw. I played.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10739
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
oh. cool. I can make my CogWork game for iOS then.

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5055
  • O Rly?
    • View Profile
 <3
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 Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Excellent. Hopefully will be fast enough on mobile devices (any chance of Android and WebOS?)! Out of interest on the most simple of levels would this allow decent collision detection for complex 3D objects?

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1544
    • View Profile
 :booze:

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2668
    • View Profile
Wow, should be great.  :good:

I've used Bullet on iOS via iXors in the past, even compiled the static lib via GLB but it sucked ass on the iPhone. I don't think that it was Bullets fault though, the version that was used in iOS was not optimised for the platform at all and I've seen other iOS bullet examples run fine since then.
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 Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Quote
it sucked ass on the iPhone
Hopefully the newer version works better!

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4306
    • View Profile
    • Portfolio
Really great! chances of a video? :good:

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Quote
Excellent. Hopefully will be fast enough on mobile devices (any chance of Android and WebOS?)! Out of interest on the most simple of levels would this allow decent collision detection for complex 3D objects?
- Bullet should be fast enough on iOS I think, but we will see. :)
- It should work on Android and WebOS if it works on iOS.
- At the moment you can only create simple bodies like a box, sphere, cylinder, cone and a capsule but Bullet itself supports complex models! So yes, in the future it should work with complex 3D objects! ;) Maybe I will write a DDD-Import Function, so you can load your glbasic models directly. But first I have to check how to implement complex meshes!

Quote
Really great! chances of a video? :good:
In the first post is a demo program... Maybe I will record a video later. :D

Cheers

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4306
    • View Profile
    • Portfolio
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #10 on: 2012-Feb-29 »
I tried it, looks wondeful.
Could you update the demo to have user controlled camera? like left/right/up/down all targeting center + zoom in/out?

Sorry the request, I´m just way excited by it.
The video would be more like a ´show the world´ kind of thing, don´t bother.

That + shadows and I would piss my pants... :-[

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #11 on: 2012-Feb-29 »
I tried it, looks wondeful.
Could you update the demo to have user controlled camera? like left/right/up/down all targeting center + zoom in/out?

Sorry the request, I´m just way excited by it.
The video would be more like a ´show the world´ kind of thing, don´t bother.

That + shadows and I would piss my pants... :-[

That should be possible! ;)
I will do it later at home and update it.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4306
    • View Profile
    • Portfolio
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #12 on: 2012-Feb-29 »
thanks backslider...that ought to be seen closer!
congrats for the work!

I tried changing the texture to diferent ones but it seems each cube is square mapped by that,
Idea was to get the colors of the glbasic logo there and... would ask " can anyone spot where it landed ´correctly´?"

Like I said, I´m quite excited by it, too much bullet tests on blender on this side... :good:

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #13 on: 2012-Feb-29 »
Quote
Bullet should be fast enough on iOS I think, but we will see.
Crossing everything I have for that one! I mean it doesn't need to handle 600+ falling cubes, but fast enough for a simple enough game would be awesome!

Quote
It should work on Android and WebOS if it works on iOS.
Nice. Sounds great if it all works out! Keep up the good work!

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2668
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #14 on: 2012-Feb-29 »
- At the moment you can only create simple bodies like a box, sphere, cylinder, cone and a capsule but Bullet itself supports complex models! So yes, in the future it should work with complex 3D objects! ;) Maybe I will write a DDD-Import Function, so you can load your glbasic models directly. But first I have to check how to implement complex meshes!

Couldn't X_GETFACE be used to extract the mesh data, rather than write a full importer?
« Last Edit: 2012-Feb-29 by 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)