Page 1 of 2

2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Thu Aug 09, 2012 11:12 am
by IceSoft
Techdemo (at the momentl).

Screenshot:
Image
Download:
http://www.morty-productions.de/icesoft ... fSight.zip (86.1 KB)

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Thu Aug 09, 2012 6:48 pm
by Zach
Cool man :mrgreen:

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Wed Aug 22, 2012 4:19 am
by void
This is gorgeous.

How far away is the wrapper?

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Wed Aug 22, 2012 9:25 am
by Fred
Nice :)

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Wed Aug 22, 2012 6:14 pm
by IceSoft
void wrote:This is gorgeous.

How far away is the wrapper?
I think it is ready for take off ;-)
But before I reales it I want to write a small 'Angry Birds' example with the Chipmunk4PB wrapper at least.

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Wed Aug 22, 2012 6:29 pm
by Shield
Runs slower and slower, after a couple of seconds the line of sight isn't recognized correctly anymore
(full circle is being displayed all the time) and the application uses almost 2GB of ram after 20 seconds.

Something seems to be wrong there...

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Wed Aug 22, 2012 7:22 pm
by Fred
May be the event loop isn't correct, and messages stack up.

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Wed Aug 22, 2012 7:28 pm
by IceSoft
There was a 'Memory Leak' on the MP3D engine. Fixed on the MP3D engine.
I will upload a new version (with two lights) and fixed leak (MP3D)

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Wed Aug 22, 2012 8:20 pm
by IceSoft
Ok. Here is it. With two lights now.
Please try it. It should no longer leak and frozen.

And it have some more features:
You can switch on/off the displaying of objects (key: [1] and [0])
You can catch the objects and move it pressing the left mouse button:

Screenshot:
Image

Download:
http://www.morty-productions.de/icesoft ... ght_2L.zip (93.4kb)

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Thu Aug 23, 2012 3:19 pm
by void
Looking good. Have you decided what kind of terms you'll be releasing the wrapper under?

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Tue Aug 28, 2012 8:43 pm
by IceSoft
void wrote:Looking good. Have you decided what kind of terms you'll be releasing the wrapper under?
I think the Chipmunk4PB (for Chipmunk 6.1.1) will not released for free.
Only the Chipmunk4PB (for Chipmunk 5.3.5) will be still free.

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Tue Sep 04, 2012 6:31 am
by zxtunes.com
6fps ... :?

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Wed Sep 12, 2012 11:21 am
by void
IceSoft wrote:
void wrote:Looking good. Have you decided what kind of terms you'll be releasing the wrapper under?
I think the Chipmunk4PB (for Chipmunk 6.1.1) will not released for free.
Only the Chipmunk4PB (for Chipmunk 5.3.5) will be still free.
I am less concerned about price and more concerned about whether it will be a binary-only release.

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Wed Sep 12, 2012 3:16 pm
by IceSoft
void wrote:
IceSoft wrote:
void wrote:Looking good. Have you decided what kind of terms you'll be releasing the wrapper under?
I think the Chipmunk4PB (for Chipmunk 6.1.1) will not released for free.
Only the Chipmunk4PB (for Chipmunk 5.3.5) will be still free.
I am less concerned about price and more concerned about whether it will be a binary-only release.
It will be delivered like the MP3D engine.

A binary release with some demos (also binaries) and with lot of example codes.
Demos will be written by users which has used the Chipmunk4PB 5.3.3 version within his programs (e.g.: AndyLy with ForthRaider)
Examples will be the same as you can find with the Chipmunk distribution plus some more of course.
And last but not least: Chipmunk4PB will be have more additional features/helper function which willl help to write 2D (physics) games easier and faster as with the PureBasic nativ code only.
zxtunes.com wrote:
6fps ... :?
Currently it is not optimized. I got 10 FPS as you can see on the screenshot.

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Posted: Wed Sep 19, 2012 9:16 am
by void
IceSoft wrote:It will be delivered like the MP3D engine.

A binary release with some demos (also binaries) and with lot of example codes.
That's unfortunate. I was hoping to be able to use this, but I suppose I'll have to put together my own solution.