QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Bullet Physics 2.64-RC3 for PSP

This is a discussion on Bullet Physics 2.64-RC3 for PSP within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi. I'm creating my new game and I just wanted to ask if someone was trying or was able to ...

Reply
 
LinkBack Thread Tools
Old 01-05-2009, 06:36 AM   #1
 
Drakon's Avatar
 
Join Date: Jul 2008
Location: Poland
Posts: 46
Trader Feedback: 0
Cool Bullet Physics 2.70 for PSP

Quote:
Hi. I'm creating my new game and I just wanted to ask if someone was trying or was able to build Bullet physic engine for psp?

I was able to build only version 2.61 but had some errors with linking :/

Sooo anyone?
EDIT
Here is Bullet Physics library 2.70 for psp - http://drakon.xxl-web.pl/wp-content/bullet-2.70_psp.rar

It comes with simple demo1 - floor and box(press X to add new box),demo2 - soft body(working now ^^).
Tested only on psp slim.

Last edited by Drakon; 01-07-2009 at 12:47 AM.. Reason: Working soft bodt demo ;)
Drakon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-05-2009, 06:42 AM   #2
 
RupertAvery's Avatar
 
Join Date: Apr 2008
Location: in a hobbit hole
Posts: 67
Trader Feedback: 0
Default

Can you paste your errors?
RupertAvery is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-05-2009, 06:59 AM   #3
 
Drakon's Avatar
 
Join Date: Jul 2008
Location: Poland
Posts: 46
Trader Feedback: 0
Default

I don't want to junk this thread so maybe here:
Spoiler for errors...:

psp-gcc -ID:/pspsdk/psp/include/Bullet -I. -ID:/pspsdk/psp/sdk/include -O2 -G0 -Wall -g -D_PSP_FW_VE
RSION=371 -L. -LD:/pspsdk/psp/sdk/lib -specs=D:/pspsdk/psp/sdk/lib/prxspecs -Wl,-q,-TD:/pspsdk/psp/
sdk/lib/linkfile.prx main.o CTimer.o Render.o vram.o image.o D:/pspsdk/psp/sdk/lib/prxexports.o -l
bulletmath -lbulletcollision -lbulletdynamics -lpng -lz -lpspgum -lpspgu -lstdc++ -lpsprtc -lpspctr
l -lm -lpspvfpu -lpspsdk -lmmio -lpsppower -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -l
pspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o Infysics
.elf
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btBoxShape.o).rodata._
ZTV10btBoxShape[vtable for btBoxShape]+0x20): undefined reference to `btConvexInternalShape::s etLoca
lScaling(btVector3 const&)'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btBoxShape.o).rodata._
ZTV10btBoxShape[vtable for btBoxShape]+0x44): undefined reference to `btConvexInternalShape::g etAabb
Slow(btTransform const&, btVector3&, btVector3&) const'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btSphereShape.o): In fun
ction `btSphereShape::btSphereS hape(float)':
btSphereShape.cpp.text+ 0x2d4): undefined reference to `btConvexInternalShape::b tConvexInternalShap
e()'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btSphereShape.o): In fun
ction `btSphereShape::btSphereS hape(float)':
btSphereShape.cpp.text+ 0x314): undefined reference to `btConvexInternalShape::b tConvexInternalShap
e()'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btSphereShape.o).rodat
a._ZTV13btSphereShape[vtable for btSphereShape]+0x20): undefined reference to `btConvexInternalShape
::setLocalScaling(btVecto r3 const&)'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btSphereShape.o).rodat
a._ZTV13btSphereShape[vtable for btSphereShape]+0x44): undefined reference to `btConvexInternalShape
::getAabbSlow(btTransform const&, btVector3&, btVector3&) const'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btCylinderShape.o).rod
ata._ZTV16btCylinderShape Z[vtable for btCylinderShapeZ]+0x20): undefined reference to `btConvexInter
nalShape::setLocalScaling (btVector3 const&)'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btCylinderShape.o).rod
ata._ZTV16btCylinderShape Z[vtable for btCylinderShapeZ]+0x44): undefined reference to `btConvexInter
nalShape::getAabbSlow(btT ransform const&, btVector3&, btVector3&) const'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btCylinderShape.o).rod
ata._ZTV16btCylinderShape X[vtable for btCylinderShapeX]+0x20): undefined reference to `btConvexInter
nalShape::setLocalScaling (btVector3 const&)'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btCylinderShape.o).rod
ata._ZTV16btCylinderShape X[vtable for btCylinderShapeX]+0x44): undefined reference to `btConvexInter
nalShape::getAabbSlow(btT ransform const&, btVector3&, btVector3&) const'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btCylinderShape.o).rod
ata._ZTV15btCylinderShape[vtable for btCylinderShape]+0x20): undefined reference to `btConvexInterna
lShape::setLocalScaling(b tVector3 const&)'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btCylinderShape.o).rod
ata._ZTV15btCylinderShape[vtable for btCylinderShape]+0x44): undefined reference to `btConvexInterna
lShape::getAabbSlow(btTra nsform const&, btVector3&, btVector3&) const'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btPolyhedralConvexShape.
o): In function `btPolyhedralConvexShape: :btPolyhedralConvexShape( )':
btPolyhedralConvexShape.c pp.text+0x5c0): undefined reference to `btConvexInternalShape::b tConvexIn
ternalShape()'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btPolyhedralConvexShape.
o): In function `btPolyhedralConvexShape: :btPolyhedralConvexShape( )':
btPolyhedralConvexShape.c pp.text+0x628): undefined reference to `btConvexInternalShape::b tConvexIn
ternalShape()'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btPolyhedralConvexShape.
o).rodata._ZTV23btPolyh edralConvexShape[vtable for btPolyhedralConvexShape]+0x20): undefined refer
ence to `btConvexInternalShape::s etLocalScaling(btVector3 const&)'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btPolyhedralConvexShape.
o).rodata._ZTV23btPolyh edralConvexShape[vtable for btPolyhedralConvexShape]+0x38): undefined refer
ence to `btConvexInternalShape::l ocalGetSupportingVertex(b tVector3 const&) const'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletcollision.a( btPolyhedralConvexShape.
o).rodata._ZTV23btPolyh edralConvexShape[vtable for btPolyhedralConvexShape]+0x44): undefined refer
ence to `btConvexInternalShape::g etAabbSlow(btTransform const&, btVector3&, btVector3&) const'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletdynamics.a(b tRigidBody.o): In functi
on `btRigidBody::addConstrai ntRef(btTypedConstraint*) ':
btRigidBody.cpp.text+0x 408): undefined reference to `btAlignedAlloc(int, int)'
btRigidBody.cpp.text+0x 41c): undefined reference to `btAlignedFree(void*)'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletdynamics.a(b tRigidBody.o): In functi
on `btRigidBody::btRigidBody (float, btMotionState*, btCollisionShape*, btVector3 const&, float, floa
t, float, float)':
btRigidBody.cpp.text+0x 133c): undefined reference to `btCollisionObject::btCol lisionObject()'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletdynamics.a(b tRigidBody.o): In functi
on `btRigidBody::btRigidBody (float, btMotionState*, btCollisionShape*, btVector3 const&, float, floa
t, float, float)':
btRigidBody.cpp.text+0x 1638): undefined reference to `btCollisionObject::btCol lisionObject()'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletdynamics.a(b tRigidBody.o): In functi
on `btRigidBody::~btRigidBod y()':
btRigidBody.cpp.text._Z N11btRigidBodyD0Ev[btRigidBody::~btRigidBody ()]+0x54): undefined reference
to `btCollisionObject::~btCo llisionObject()'
btRigidBody.cpp.text._Z N11btRigidBodyD0Ev[btRigidBody::~btRigidBody ()]+0x70): undefined reference
to `btAlignedFree(void*)'
d:/pspsdk/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libbulletdynamics.a(b tRigidBody.o): In functi
on `btRigidBody::~btRigidBod y()':
btRigidBody.cpp.text._Z N11btRigidBodyD1Ev[btRigidBody::~btRigidBody ()]+0x60): undefined reference
to `btCollisionObject::~btCo llisionObject()'
btRigidBody.cpp.text._Z N11btRigidBodyD1Ev[btRigidBody::~btRigidBody ()]+0x68): undefined reference
to `btAlignedFree(void*)'
collect2: ld returned 1 exit status
make: *** [Infysics.elf] Error 1


I compiled Bullet library - get 3 files libbulletmath.a libbulletcollision.a libbulletdynamics.a , now I want to make simple test app but when I add some objects to the code then I got linking errors at the end.. :/

Of course I added lbulletmath -lbulletcollision -lbulletdynamics to the make file...
Spoiler for makefile:
TARGET = Bullet
OBJS = main.o CTimer.o Render.o vram.o image.o

PSPPATH = $(shell psp-config --psp-prefix)

CFLAGS = -O2 -G0 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
#-lpspgum_vfpu

BUILD_PRX = 1
PSP_FW_VERSION=371
#PSP_LARGE_MEMORY = 1

INCDIR = $(PSPPATH)/include/Bullet
LIBS = -lbulletmath -lbulletcollision -lbulletdynamics -lpng -lz -lpspgum -lpspgu -lstdc++ -lpsprtc -lpspctrl -lm -lpspvfpu -lpspsdk -lmmio -lpsppower
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Bullet Physics Test

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


hmm maybe building library was wrong... ehh grrr... or because i'm using windows and precompiled sdk...
Drakon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-05-2009, 03:53 PM   #4
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

Where's Bullet library?
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-06-2009, 06:04 AM   #5
 
Drakon's Avatar
 
Join Date: Jul 2008
Location: Poland
Posts: 46
Trader Feedback: 0
Default

Quote:
Originally Posted by Art View Post
Where's Bullet library?
If you want main site it's here : http://www.bulletphysics.com/

and version 2.64-RC3 for psp is here: http://drakon.xxl-web.pl/wp-content/...64-RC3_PSP.rar

Package contains sources of library with make file and simple demo.

Warnings:
1. Demo tested on slim psp - I think that it will not work on fat...(maybe someone will change the code).
2. In file :btDefaultCollisionConfig uration.cpp - I chaged
Code:
#define DEFAULT_MAX_OVERLAPPING_PAIRS 1024
#define DEFAULT_STACK_ALLOCATOR_SIZE	(5*1024)
from
Code:
#define DEFAULT_MAX_OVERLAPPING_PAIRS 65...
#define DEFAULT_STACK_ALLOCATOR_SIZE	(5*1024*1024)
so it can effects later but anyone can change this.

Compiling library:
1. Unpack .rar file, go to bullet-2.64-RC3\src folder and type make or use compile.bat if you are using windows.
2. Wait...
3. You should get 3 files : libbulletmath.a, libbulletcollision.a, libbulletdynamics.a
4. Copy them to the pspsdk\psp\lib
5. Copy all .h and subfolders with files to pspsdk\psp\include

Compiling demo:
1.Go to the demo folder and type make or use compile_slim.bat if you are using windows.

Later I will attack new version (soft bodies,soft bodies....)
Have a nice day:>
Drakon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-06-2009, 07:28 AM   #6
Enter Custom Title
 
dan369's Avatar
 
Join Date: Jan 2008
Real First Name: Dan
Location: Wales, cardiff
Just Played: Overlord 2
Posts: 1,308
Blog Entries: 1
Trader Feedback: 0
Default

Nice job porting the lib , i'll compile it now. (I'll test on my PHAT (the demo) to see if it works)
dan369 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-06-2009, 01:39 PM   #7
 
Drakon's Avatar
 
Join Date: Jul 2008
Location: Poland
Posts: 46
Trader Feedback: 0
Default

Me again - I have managed to build version 2.70 but >2.70 is no go... errors while compiling library.

Soft Body demo is working ^^.

Last edited by Drakon; 01-07-2009 at 12:47 AM..
Drakon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-08-2009, 04:29 AM   #8
 
Join Date: Mar 2008
Posts: 39
Trader Feedback: 0
Default

anyway, good job! =D . looks like not gonna be updates for Jellycar for a while.... XD
cheewongken is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-08-2009, 06:27 AM   #9
 
MK2k's Avatar
 
Join Date: Apr 2007
Posts: 181
Trader Feedback: 0
Default

Good work Drakon
MK2k is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-08-2009, 01:38 PM   #10
 
Drakon's Avatar
 
Join Date: Jul 2008
Location: Poland
Posts: 46
Trader Feedback: 0
Default

Thanks and yep, currently not enough time for JellyCar...
Also I'm wondering about performance with heavy use of vfpu math - I must test this
Drakon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-08-2009, 02:08 PM   #11
The Cake Is A LIE
 
slasher101's Avatar
 
My Mood: Daring
Join Date: Oct 2008
Real First Name: Adam
Location: Melbourne, Australia
Just Played: Far Cry 2
Posts: 669
Blog Entries: 1
Trader Feedback: 0
Default

dam thats my fav game!
slasher101 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
264rc3 , bullet , physics , psp

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 07:41 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us