PDA

View Full Version : Chipmunk and ZenGL



Andru
07-12-2010, 09:57 AM
I'm writing Pascal header for Chipmunk (http://code.google.com/p/chipmunk-physics/). All main functions has been already implemented. Little bit later I will make package with this header, one or few demos and put all needed dll's and other stuff for different OS'es. Header will be independent, so it can be used without ZenGL too :)

Simple demo (http://zengl.org/demos/ZenChipmunkDemo.7z)

http://zengl.org/demos/zenchipmunk_01.png

dazappa
09-12-2010, 04:23 AM
(Link doesn't work) But looks good!

Andru
09-12-2010, 06:13 AM
My fault >_< Fixed.

PS: zglChipmunk.pas is already in svn.

virtual
09-12-2010, 12:49 PM
this is great , i've been always searching for a pascal translation of Chipmunk , thanks :)

dazappa
09-12-2010, 03:25 PM
With the screen packed full I get ~170fps. I'm not familiar with how Chipmunk works, however. The demo won't use more than 1 core, so I'm guessing Chipmunk doesn't operate in its own thread? That would seem odd to me... there should be at least 2-3 threads. (Game logic / drawing / physics) Fairly confident I'm not hitting a GPU barrier at least. As is though, looks like it should be able to make at least a basic physics based game with no problem.

Andru
09-12-2010, 05:48 PM
Chipmunk doesn't operate in its own thread?
If you want you can create your own thread and process Chipmunk there.


there should be at least 2-3 threads. (Game logic / drawing / physics)
It's not so simple as you imagine :)


this is great , i've been always searching for a pascal translation of Chipmunk , thanks
News didn't update yet on main page of pascalgamedevelopment, so I will write here - I'm working on Chipmunk binding for Pascal :) There is an official web-page - http://code.google.com/p/chipmunk-pascal/
At svn you can find version which have smaller dll and some files for static compilation with Chipmunk for FreePascal.

dazappa
09-12-2010, 11:21 PM
I have experience with multithreading, at the very least, but I haven't yet fiddled with testing threads and multiple cores. I've just assumed so far that if a thread is using a lot of CPU the OS would be intelligent enough to process the thread on a separate core.

SesillaAndromeda
12-12-2010, 11:32 AM
Hi Andru,

the dll is a original compiled C dll or not?

Thanks
Sesilla

Andru
15-12-2010, 08:42 AM
the dll is a original compiled C dll or not?
Original, compiled with MinGW32(GCC for Windows).

PS: sorry for the late answer, I just didn't saw your post :)