Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
0 registered members (), 1,012 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[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
C
Commander_Z Offline OP
Guest
Commander_Z  Offline OP
Guest
C

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:

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 Offline
User
TheShooter  Offline
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 laugh
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....
laugh good luck

Last edited by TheShooter; 10/23/10 00:43.

Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*
Re: Freeze of ODE Engine [Re: TheShooter] #345087
10/23/10 01:12
10/23/10 01:12
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
"PhysX is only working right on NVIDIA Cards, not on ATI Cards"


Ehm... where did you get this information? It works the same on both cards, the only difference is, that some nVidia cards can accelerate the physics calculations (AFAIK).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Freeze of ODE Engine [Re: Superku] #345107
10/23/10 09:34
10/23/10 09:34
Joined: Apr 2008
Posts: 650
Sajeth Offline
User
Sajeth  Offline
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 Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: TheShooter
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
C
Commander_Z Offline OP
Guest
Commander_Z  Offline OP
Guest
C

Joined: Oct 2010
Posts: 3
None of your answers is a real help wink 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 smirk 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.
Re: Freeze of ODE Engine [Re: Superku] #345130
10/23/10 14:06
10/23/10 14:06
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
TheShooter Offline
User
TheShooter  Offline
User

Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
I know that PhysX runs on an ATI card. But the accelerator which accelerates the physical calculations does not go on an ATI. So it can come to falls, however, must not be.

Sorry for my english laugh


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1