Posted By: Commander_Z
[SOLVED by upgrading to GS8] Freeze of ODE Engine - 10/22/10 22:59
Hi,
i'am evaluating GS7 and was testing the physics engine today.
I tried the sample from the A7 guide. But after arbitrary time (seconds to minutes) the physic engine freezes (not the game engine).
Here is the code:
The level consists of a big plate and a few blocks as ramps for the rolling and jumping ball.
I have tried to use a bigger nexus (100 MB) and i have tried to set fps_max to 30 also. But neither did help.
Would appreciate any help. I have tried this with Windows 7 + ATI Mobile 5870 (Asus G73 notebook, i7 720M, 8 GB) and Vista with ATI 5950 (desktop, Intel E6600, 4 GB).
i'am evaluating GS7 and was testing the physics engine today.
I tried the sample from the A7 guide. But after arbitrary time (seconds to minutes) the physic engine freezes (not the game engine).
Here is the code:
Code:
///////////////////////////////
#define PRAGMA_PATH "%EXE_DIR%\templates\images";
#define PRAGMA_PATH "%EXE_DIR%\templates\models";
#define PRAGMA_PATH "%EXE_DIR%\templates\sounds";
#include <acknex.h>
#include <default.c>
#include "mtlFX.c"
///////////////////////////////
VECTOR ball_speed;
ENTITY *ball;
function main()
{
video_mode = 9;
level_load("test11.WMB");
wait(2);
ball = ent_create("ball.mdl", vector(-128, 0, 16), NULL);
ph_setgravity(vector(0,0, -386));
phent_settype(ball, PH_RIGID, PH_SPHERE);
phent_setmass(ball, 3, PH_SPHERE);
phent_setfriction(ball, 80);
phent_setdamping(ball, 40, 40);
phent_setelasticity(ball, 50, 20);
camera.z = 200;
camera.tilt = -20;
camera.pan = 0;
while(1) {
ball_speed.x = 130 * (key_d - key_a) * time_step;
ball_speed.y = 130 * (key_w - key_s) * time_step;
ball_speed.z = 0;
phent_addtorqueglobal(ball, ball_speed);
camera.x = ball.x - 300;
camera.y = ball.y;
wait(1);
}
}
The level consists of a big plate and a few blocks as ramps for the rolling and jumping ball.
I have tried to use a bigger nexus (100 MB) and i have tried to set fps_max to 30 also. But neither did help.
Would appreciate any help. I have tried this with Windows 7 + ATI Mobile 5870 (Asus G73 notebook, i7 720M, 8 GB) and Vista with ATI 5950 (desktop, Intel E6600, 4 GB).
