Friday 24 December 2010

Developer Journal 22

Changes
* Added a third wall.
* Added a fourth wall.
* Removed sky box.
* Physics code uses object position and orientation values. Physics code previously generated positions and orientations and applied them to objects.

Reminders
* Get shadows to work.
* Texture the ground.
* Texture the cubes.
* Fix segmentation fault.

Notes

*I'd like to write a tutorial about how to rotate an object in Bullet.
* I'm worried that tuning agent parameters to get agent populations to persist will take a long time.
* Grr. Agents have a Euler rotation and a Quaternion rotation. The Euler part can just represent the angle agents want to turn and the Quaternion part can represent actual orientation.
* I'm getting a strange segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
0x004b8c1f in operator* (v1=..., v2=...) at E:/agi/dep/bullet/src/LinearMath/btVector3.h:366
(gdb) bt
#0  0x004b8c1f in operator* (v1=..., v2=...) at E:/agi/dep/bullet/src/LinearMath/btVector3.h:366
#1  0x00485fbd in btRigidBody::applyCentralForce (this=0xbaadf00d, force=...) at E:/agi/dep/bullet/src/BulletDynamics/Dynamics/btRigidBody.h:270
#2  0x00485ef0 in btRigidBody::applyForce (this=0xbaadf00d, force=..., rel_pos=...) at E:/agi/dep/bullet/src/BulletDynamics/Dynamics/btRigidBody.h:306
#3  0x004295cd in PhysicsBullet::Update (this=0xefc510) at E:\agi\polyworld\physics\PhysicsBullet.cpp:206
#4  0x004283bf in Physics::Update (this=0xf1b288) at E:\agi\polyworld\physics\Physics.cpp:25
#5  0x00408c61 in TSimulation::Update (this=0x22fe20) at E:\agi\polyworld\app\Simulation.cpp:1159
#6  0x0040ef6c in TSimulation::Run (this=0x22fe20) at E:\agi\polyworld\app\Simulation.cpp:2888
#7  0x004102a8 in WinMain@16 (hInst=0x400000, strCmdLine=0x241f06 "") at E:\agi\polyworld\app\main.cpp:24
#8  0x00484df6 in main ()
(gdb)

No comments:

Post a Comment