I've put up a new version which allows one to use the mouse to draw as many boxes as desired:
http://edgeofvision.com/2010/01/28/mouse-drawing-boxes-in-gwt-phys2d-google-code-repository/ http://edgeofvision.com/tag/gwt-phys2d/ http://gwt-phys2d.appspot.com/ It definitely slows down quite a bit when you have many boxes, at least on the netbook I'm using as a test platform. I'm fairly certain this is due to absurd numbers of objects having to be garbage collected every frame, which should be more-or-less straightforward to fix. I've also created a Google Code project and subversion repository: http://code.google.com/p/gwt-phys2d/ Enjoy! On Jan 22, 2:08 pm, Neil Halelamien <[email protected]> wrote: > Thanks! I'm thinking of adding some functionality this weekend for > allowing a user to click-add however many objects they want, which > will make it easy to see how it scales. > > On Jan 22, 6:57 am, Joel Webber <[email protected]> wrote: > > > > > [+gwt-contrib] > > > That's pretty impressive. Have you tried it on any larger scene graphs? I'd > > love to see how it scales. It looks quite smooth on Chrome already. > > > On Fri, Jan 22, 2010 at 3:05 AM, Neil Halelamien <[email protected]> wrote: > > > I quasi-ported the Phys2d Java physics library to run with GWT and gwt- > > > g2d (for HTML5 canvas rendering). You can see the result (and download > > > the library source) here: > > > >http://edgeofvision.com/2010/01/22/initial-release-of-gwt-phys2d-java... > > >http://gwt-phys2d.appspot.com > > > > If anybody's interested in actually using this and/or contributing, > > > I'd be happy to clean things up and create a Google Code project for > > > it. It was pretty much just a self-education project though, so I > > > probably won't be doing too much more with it myself. I imagine it > > > might be handy for a GWT game programming project out there, though. > > > > -- Neil -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
