Author Topic: physics  (Read 3546 times)

bolbo

  • Newcomer
  • *
  • Posts: 25
    • View Profile
Re: preview of physics example coming in v0.6
« Reply #15 on: 25. July 2013, 16:43:29 »
I had only tested the Coffephysics samples on Opera, now I've tried them on other browsers.
Opera: it works very well ; Chrome: It works but performs worse ; Firefox : seems to work only with canvas. I had not tested them on Safari or ios because I don't own any portable device.
As for coffescript seems to be just a number of preprocessors that compile directly to javascript.
There you have more information about the engine, an interview with the developer and a review of the engine on several browsers.
http://badassjs.com/post/18503583619/coffeephysics-a-fast-new-physics-engine-written-in
http://blog.duncanhall.net/2012/03/painting-pixels-with-easeljs-and-coffee-physics/

I have read that most of the current physics engines for javascript are ports from other languages more focused on features than on performance. My only point it was to remark that performance may be not only a matter of hardware requirements but also compatibility with browsers.   
« Last Edit: 25. July 2013, 17:14:57 by bolbo »

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: preview of physics example coming in v0.6
« Reply #16 on: 25. July 2013, 17:26:42 »
WebGL is enabled on my Firefox on Windows here, all I get is a grey image.
Guilects phyiscs example works fluently on my old Core2Duo with 60 fps. This should work even better on a i3?

EDIT: All other examples on that webpage are working, though. Don't know why the physics example does not work on any of my computers ...
« Last Edit: 25. July 2013, 17:35:20 by Cybermonkey »
Best regards,
Cybermonkey

bolbo

  • Newcomer
  • *
  • Posts: 25
    • View Profile
Re: preview of physics example coming in v0.6
« Reply #17 on: 26. July 2013, 18:08:36 »
@Cybermonkey
perhaps your problem is related with the user interface of that page, could you try the same samples located on the githup server:
http://soulwire.github.io/Coffee-Physics/

By the way, coud anyone check if Guilect's sample works on mobile devices ?

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: preview of physics example coming in v0.6
« Reply #18 on: 30. August 2013, 14:05:07 »
@Guilect
Maybe rename this thread to "BB Physics"  i.e. drop the "Preview" ?

I am getting pretty good 35 to 55 fps on the physics example on my Tablet when using Firefox browser.  Chrome and Samsung not so good.

But the app is designed for key control, not for touch, so I cant interact with it on the tablet.





Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: physics
« Reply #19 on: 30. August 2013, 14:45:27 »
@SteveOW
That is a good frame rate from a tablet.
Glad to hear it.