gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Simple PhysicEngine Box2D

#109266 - jandujar - Thu Nov 16, 2006 5:43 pm

Hello, I'm trying to port a simple physicEngine called Box2D.

I have port all the C++ code, but the example doesn't work.

The example uses opengl to draq the demos, I have change some routines
GL_LINE_LOOP to GL_QUAD, etc..

The example compile and runs, but show nothing on the screen, I'm little noob with opengl and pseudo opengl on DS, maybe someone could helpme with this code. I would like to see the physic engine on the DS. I'm sure the problem is something about pseudo-opengl stuff.

The source(ready to compile with latest libnds and devkitpro) http://www.megaupload.com/?d=D1AYGRZ0
_________________
http://jandujar.homelinux.com
http://www.dsrobot.com

#109269 - KoshNi - Thu Nov 16, 2006 6:21 pm

I think I have once had a similar problem, which *might* have come from two things :
- using text and 3D simultaneously
- a wrong synchronisation between glPushMatrix and glPopMatrix (=call the latter without having called the former)
_________________
Sunshine. Beauty. Love. Happiness.