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

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #15 on: 2012-Feb-29 »
Obviously completely guessing here (but hey when in unknown territory might as well go for the max :happy: ), but is it possible to use the thread capability that Gernot brought up again in another thread (arf!) to make things faster? I mean putting all the physics logic behind the scenes onto another thread *should* help things out on a multi-core device right? Ok so might even make it slower on single-core devices, but practically nothing is these days really.

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

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #16 on: 2012-Feb-29 »
Backslider this is very cool.
Can't wait to see the iOS and WebOS versions.

I made a video of your Windows demo and posted on You Tube.
I hope you don't mind!

[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #17 on: 2012-Feb-29 »
Yeah cool, a video! :)
Very nice, thanks.

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #18 on: 2012-Feb-29 »
Ok guys,

I uploaded a new version of the demo in the first post.
Now the boxes have more friction you can rotate the cam with the mouse and the world has shadows... Much nicer now! :)

Next version in a few days I hope!

cheers and have a nice evening

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4306
    • View Profile
    • Portfolio
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #19 on: 2012-Feb-29 »
damn it, now I have to go put my pants on the washing machine... ;)
Really great! It runs incredibly fast here.

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3371
  • Integrated Brain
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #20 on: 2012-Feb-29 »
When has posted this ?¿... backslider your a crack...  :nw: :nw: :nw:

It´s simply awesoming , and well another great leap in 3D in Glbasic... :blink:

Offline Slydog

  • Prof. Inline
  • *****
  • Posts: 930
  • KodeSource
    • View Profile
    • KodeSource
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #21 on: 2012-Feb-29 »
 :nw:  Sooo cool!

How did you do your shadows?
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #22 on: 2012-Mar-01 »
New Video.

[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #23 on: 2012-Mar-01 »
Quote
:nw:  Sooo cool!
How did you do your shadows?

Very easy... For everything in 3D in GLBasic I use the EntitySystem. And there you can use the function
Code: (glbasic) [Select]
EntityEnableShadow(entity, TRUE) or sth. like that...

With the EntitySystem and the BulletPhysics lib you will have a really nice Engine for professional 3D games! :)

Today after work I will extend some functions and maybe I will upload a first demo project (the cubes in the first post), where you can see how the wrapper works and how you can use it with the EntitySystem.

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #24 on: 2012-Mar-01 »
Ok guys,

I uploaded the first version of the bullet physics engine code for glbasic and the demo project.
Hope you like it! :)

You can find the stuff here...
http://www.glbasic.com/forum/index.php?topic=7757.0

Show your physics! :D

cheers

Offline Slydog

  • Prof. Inline
  • *****
  • Posts: 930
  • KodeSource
    • View Profile
    • KodeSource
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #25 on: 2012-Mar-01 »
Thanks again!

I didn't know the Entity System had shadows! 
I'll have to check that out, and see how it does it.
Too late to convert my code now, as I'm using my own system.

Quote
With the EntitySystem and the BulletPhysics lib you will have a really nice Engine for professional 3D games! :)

Or better, build the BulletPhysics INTO the EntitySystem!
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #26 on: 2012-Mar-01 »
Quote
Or better, build the BulletPhysics INTO the EntitySystem!
Ooh, did anyone else get a bit of a shiver down their spine then? :) Heh, possibly after getting it on a mobile device?... But yeah would be amazing to be all built into the 3DES. And possibly on a different thread (although difficult to update objects if GL objects can't be touched on a different thread. Possibly update all physics and then 3DES updates the objects on the main thread)?...

Cheers
« Last Edit: 2012-Mar-01 by Crivens »
Current fave quote: Cause you like musicians and I like people with boobs.

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #27 on: 2012-Mar-01 »
At the moment putting the ES and Bullet together isn't a good idea, because Bullet isn't multiplatform, yet. ;)

Offline Slydog

  • Prof. Inline
  • *****
  • Posts: 930
  • KodeSource
    • View Profile
    • KodeSource
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #28 on: 2012-Mar-01 »
Oh, yeah, I forgot about physics libraries, they generally want a fixed frame rate right?  (deterministic?)
In Unity3D, they have two callback functions, one to handle the current frame, and one to handle your physics updates.  (At least this was in Unity 2)
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: BulletPhysics for GLBasic... first preview! :)
« Reply #29 on: 2012-Mar-01 »
Huh?

Bullet updates in the while loop like glbasic...