The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the newest Gaming News from
QJ.NET in your email each day?




Want to learn more about the team who brings you the QJ news?

Read about them now!

 


Results 1 to 11 of 11

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 ...

  
  1. #1
    QJ Gamer Green
    Points: 3,502, Level: 37
    Level completed: 2%, Points required for next Level: 148
    Overall activity: 0%

    Join Date
    Jul 2008
    Location
    Poland
    Posts
    62
    QJ Pts
    3,502
    Level
    37
    Downloads
    0
    Uploads
    0

    Cool Bullet Physics 2.70 for PSP

    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-06-2009 at 11:47 PM. Reason: Working soft bodt demo ;)

  2. #2
    QJ Gamer Green
    Points: 4,053, Level: 40
    Level completed: 52%, Points required for next Level: 97
    Overall activity: 0%

    Join Date
    Apr 2008
    Location
    in a hobbit hole
    Posts
    67
    QJ Pts
    4,053
    Level
    40
    Downloads
    0
    Uploads
    0

    Default

    Can you paste your errors?

  3. #3
    QJ Gamer Green
    Points: 3,502, Level: 37
    Level completed: 2%, Points required for next Level: 148
    Overall activity: 0%

    Join Date
    Jul 2008
    Location
    Poland
    Posts
    62
    QJ Pts
    3,502
    Level
    37
    Downloads
    0
    Uploads
    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._ZTV23btPolyhedra lConvexShape[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._ZTV23btPolyhedra lConvexShape[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._ZTV23btPolyhedra lConvexShape[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+0x408): undefined reference to `btAlignedAlloc(int, int)'
    btRigidBody.cpp.text+0x41c): 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+0x133c): 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+0x1638): 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._ZN11btRigidBodyD0E v[btRigidBody::~btRigidBody ()]+0x54): undefined reference
    to `btCollisionObject::~btCo llisionObject()'
    btRigidBody.cpp.text._ZN11btRigidBodyD0E v[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._ZN11btRigidBodyD1E v[btRigidBody::~btRigidBody ()]+0x60): undefined reference
    to `btCollisionObject::~btCo llisionObject()'
    btRigidBody.cpp.text._ZN11btRigidBodyD1E v[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...

  4. #4
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    Where's Bullet library?

  5. #5
    QJ Gamer Green
    Points: 3,502, Level: 37
    Level completed: 2%, Points required for next Level: 148
    Overall activity: 0%

    Join Date
    Jul 2008
    Location
    Poland
    Posts
    62
    QJ Pts
    3,502
    Level
    37
    Downloads
    0
    Uploads
    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:>

  6. #6
    Lua guy
    Points: 10,655, Level: 68
    Level completed: 52%, Points required for next Level: 195
    Overall activity: 0%

    Join Date
    Jan 2008
    Location
    Wales, cardiff
    Posts
    1,442
    QJ Pts
    10,655
    Level
    68
    My Mood
    Blah
    Downloads
    0
    Uploads
    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)

  7. #7
    QJ Gamer Green
    Points: 3,502, Level: 37
    Level completed: 2%, Points required for next Level: 148
    Overall activity: 0%

    Join Date
    Jul 2008
    Location
    Poland
    Posts
    62
    QJ Pts
    3,502
    Level
    37
    Downloads
    0
    Uploads
    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-06-2009 at 11:47 PM.

  8. #8
    QJ Gamer Green
    Points: 2,761, Level: 32
    Level completed: 8%, Points required for next Level: 139
    Overall activity: 0%

    Join Date
    Mar 2008
    Posts
    41
    QJ Pts
    2,761
    Level
    32
    Downloads
    0
    Uploads
    0

    Default

    anyway, good job! =D . looks like not gonna be updates for Jellycar for a while.... XD

  9. #9
    QJ Gamer Bronze
    Points: 4,815, Level: 44
    Level completed: 33%, Points required for next Level: 135
    Overall activity: 0%

    Join Date
    Apr 2007
    Posts
    184
    QJ Pts
    4,815
    Level
    44
    Downloads
    0
    Uploads
    0

    Default

    Good work Drakon :)

  10. #10
    QJ Gamer Green
    Points: 3,502, Level: 37
    Level completed: 2%, Points required for next Level: 148
    Overall activity: 0%

    Join Date
    Jul 2008
    Location
    Poland
    Posts
    62
    QJ Pts
    3,502
    Level
    37
    Downloads
    0
    Uploads
    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

  11. #11
    xMod.
    Points: 4,576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Join Date
    Oct 2008
    Location
    Melbourne, Australia
    Posts
    675
    QJ Pts
    4,576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Default

    dam thats my fav game!


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





All times are GMT -8. The time now is 08:30 AM.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2013, Caputo Media, LLC. All Rights Reserved. Cluster C3.
Contact Us | Free Flash Games | Ad Blockers Suck! Why?