|
0 registered members (),
1,012
guests, and 8
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
[SOLVED by upgrading to GS8] Freeze of ODE Engine
#345079
10/22/10 22:59
10/22/10 22:59
|
Joined: Oct 2010
Posts: 3
Commander_Z
OP
Guest
|
OP
Guest
Joined: Oct 2010
Posts: 3
|
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:
///////////////////////////////
#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).
Last edited by Commander_Z; 10/23/10 13:41.
|
|
|
Re: Freeze of ODE Engine
[Re: Commander_Z]
#345085
10/23/10 00:42
10/23/10 00:42
|
Joined: Jul 2010
Posts: 974 United Arab Emirates, Dubai
TheShooter
User
|
User
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
|
Did you use PhysX? PhysX is only working right on NVIDIA Cards, not on ATI Cards. I know this problem, then I have the ATI HD 5970.... You must optimize the Physx engine, so that it work with a ATI Card..... But this can only the Pr0 programmers... I don't know whether you are one.... And sorry for my English  I hope it helps you ^^ EDIT: I see that you dont use the physX engine.... but if you use A8 you will get ptobably errors with the A7 physics engine....  good luck
Last edited by TheShooter; 10/23/10 00:43.
|
|
|
Re: Freeze of ODE Engine
[Re: Superku]
#345107
10/23/10 09:34
10/23/10 09:34
|
Joined: Apr 2008
Posts: 650
Sajeth
User
|
User
Joined: Apr 2008
Posts: 650
|
People should propably just refrain from posting if they dont have the slightest idea what they are talking about - and not just make up facts from some vague ideas they got somewhere. No offense, but misinformation is nothing but trouble.
Teleschrott-Fan.
|
|
|
Re: Freeze of ODE Engine
[Re: TheShooter]
#345116
10/23/10 11:27
10/23/10 11:27
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Did you use PhysX? PhysX is only working right on NVIDIA Cards, not on ATI Cards. I know this problem, then I have the ATI HD 5970.... You must optimize the Physx engine, so that it work with a ATI Card..... But this can only the Pr0 programmers... I don't know whether you are one....  MFW
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Freeze of ODE Engine
[Re: WretchedSid]
#345128
10/23/10 13:40
10/23/10 13:40
|
Joined: Oct 2010
Posts: 3
Commander_Z
OP
Guest
|
OP
Guest
Joined: Oct 2010
Posts: 3
|
None of your answers is a real help  I know PhysX of Nvidia. It is also working with ATI and other hardware, but the computing is done with software not hardware accelerated as with Nividia hardware. As i can see ODE (Open Dynamics Engine) was used do develop the Nvidia engine. ODE has stopped working a few years ago and the last update of their DLL was 2007. But i don't know how to update my GS7 to use the new version. But with GS7.5 (SYBEX-Edition) i had to much problems (Models need texture to be displayed in engine, Vertex Apply on Bones had a lot of bugs, a lot of crashes of the engine etc.) so i upgraded to GS8 Extra directly from the developer of the engine. Now it seems that i do not get this freezes  And the cause is: GS8 uses Nvidia PhysX as physics engine. Now i am curious wheter i will get "new" problems or the GS8 is more or less bug free. But anyway thanks a lot.
Last edited by Commander_Z; 10/23/10 14:42.
|
|
|
|