Simple Physics Engine wrapper for FreeBASIC

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
D.J.Peters
Posts: 8208
Joined: May 28, 2005 3:28
Contact:

Simple Physics Engine wrapper for FreeBASIC

Postby D.J.Peters » Dec 01, 2011 9:12

preview of Simple Physics Engine
Image

SPE wrapper for FreeBASIC (none comercial windows)

homepage: spehome.com

download: fbSPE.zip

Joshy
Last edited by D.J.Peters on Oct 03, 2017 5:21, edited 1 time in total.
Aave
Posts: 128
Joined: Jun 13, 2008 19:55
Location: Helsinki, Finland
Contact:

Postby Aave » Dec 01, 2011 14:09

Hadn't heard about SPE before. I checked their (linux) demo and it seemed nice. However, there are a lot of free and open source physics libraries: Bullet, Newton, ODE... (that are commercial game quality, even feature films). Do you happen to know any advantages with SPE and how did you end up choosing to wrap this?
D.J.Peters
Posts: 8208
Joined: May 28, 2005 3:28
Contact:

Postby D.J.Peters » Dec 01, 2011 16:53

I gave FreeBASIC in the past ODE, Tokamak, PhysX and we have Newton
and now SPE too.

I tested more libs in the past but only with C++ and NET.

All the libs or wrappers for FreeBASIC comes with it's own features.

interface (easy or a hard learning curve)
accurate (more or less)
speed (usable with more than 1K objects?)
vehicle (if supported how realistic)
fluid (if supported how many particles)
multy threading ?
GPU support ?
...

The ChronoEngine (now open source) are on top on my to do list.

Joshy
oog
Posts: 124
Joined: Jul 08, 2011 20:34

Postby oog » Dec 16, 2011 20:23

I have a problem when compiling test_sphere.bas on Windows 7, 64Bit

Command:
fbc.exe test_sphere.bas

Error report:
P:\fb0-23\inc\GL\glut.bi(292) error 7: Expected ')' in 'declare sub glutIgnoreKeyRepeat alias "glutIgnoreKeyRepeat" (byval ignore as integer)'


When I manually change glut.bi, it compiles without error.

Change P:\fb0-23\inc\GL\glut.bi Line 292
declare sub glutIgnoreKeyRepeat alias "glutIgnoreKeyRepeat" (byval ignore as integer)
into
declare sub glutIgnoreKeyRepeat alias "glutIgnoreKeyRepeat" (byval ignor as integer)

Is "ignore" a reserved word?
Is there a bug within inc\GL\glut.bi?
counting_pine
Site Admin
Posts: 6241
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Postby counting_pine » Dec 16, 2011 21:06

It sounds like it's already defined elsewhere first.
Try putting "#define ignore ???" at the top of the code, and at the next point of definition it should give you an error of some sort.
oog
Posts: 124
Joined: Jul 08, 2011 20:34

Postby oog » Dec 17, 2011 12:49

counting_pine wrote:It sounds like it's already defined elsewhere first.
Try putting "#define ignore ???" at the top of the code, and at the next point of definition it should give you an error of some sort.


The smallest program to reproduce the error message:

Code: Select all

#include once "windows.bi"
#include once "GL/glut.bi"


When I comment out the first line, it compiles without error.
I tried the

Code: Select all

#define ignore 1

and found that winbase.bi defines IGNORE in line 419.

So if anybody want to compile the example files, glut.bi have to be patched as shown above.
TJF
Posts: 3609
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Postby TJF » Dec 17, 2011 14:00

oog wrote:So if anybody want to compile the example files, glut.bi have to be patched as shown above.

... Or windows.bi have to be covered in a NAMESPACE (or GL/glut.bi or both).
counting_pine
Site Admin
Posts: 6241
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Postby counting_pine » Dec 19, 2011 2:10

Perhaps it can be fixed by swapping the order of the two headers?

EDIT: added a bug report to freebasic-headers:
http://code.google.com/p/freebasic-head ... etail?id=8

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 7 guests