Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible), 623 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 11 1 2 3 4 10 11
Re: pXent official release! (using NVIDIA PhysX) [Re: Tai] #289732
09/15/09 08:06
09/15/09 08:06
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
everything runs fine on me too but:

when i run this script with demo version it works, runs fine and objects collide with level:
Code:
#include <acknex.h>
#include "pXent.h"
#include <default.c>
#include <d3d9.h>

function ball()
{
	pXent_settype(my, PH_RIGID, 1);

	pXent_setfriction(my, 100);
	pXent_setelasticity(my, 10);

}

function on_mouse_left_event()
{
	while (mouse_left) {wait (1);}
	ent_create ("earth.mdl", nullvector, ball);
}


function main()
{
	fps_max = 70;
	video_mode=8;
	wait(1);
	pX_setgravity(vector(0,0,-9.81));
	pX_SetWorldSize(0.05);
	
	level_load("level.wmb");
	pXent_settype(level_ent,3,3);
}



but when i run it with licensed version i get a crash. error dialog says crash in "physx_startup"

i do not believe this is a bug, just asking for help.

p.s. if i remove the wait(1); line, both works but both doesnt collide with level.


3333333333
Re: pXent official release! (using NVIDIA PhysX) [Re: Quad] #289736
09/15/09 09:02
09/15/09 09:02
Joined: Mar 2009
Posts: 29
DavideG Offline
Newbie
DavideG  Offline
Newbie

Joined: Mar 2009
Posts: 29
It's fantastic Chris! good work!


-----------------------------------------
Intel Core i7 950 4.2 GHz OC
ASUS P6T DELUXE V2
Corsair H50 Liquid Cooling System
6 GB RAM DDR3 Triple Channel 1600 Mhz Corsair XMS3
Gainward GeForce GTX 480 1.5 GB GDDR5
HD Barracuda 1 TB 7200 RPM 64 MB Cache

Re: pXent official release! (using NVIDIA PhysX) [Re: DavideG] #289757
09/15/09 12:34
09/15/09 12:34
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
Have no fps problems and all works fine...

Windows Vista SP1
ATI Mobility Radeon HD 4650
+ installed PhysX drivers

Re: pXent official release! (using NVIDIA PhysX) [Re: GorNaKosh] #289769
09/15/09 13:35
09/15/09 13:35
Joined: Sep 2003
Posts: 271
Germany
Chris3D Offline OP
Member
Chris3D  Offline OP
Member

Joined: Sep 2003
Posts: 271
Germany
Thank you all for your comments!

@Quadraxas:
hi, I don't know why this error happens, but for a workaround you can try setting "-nx 100" in your command line options.

@the guys where the testlevel doesn't run:
did you try the carlevel? does it also not run?


website coming soon!
Re: pXent official release! (using NVIDIA PhysX) [Re: Chris3D] #289770
09/15/09 13:40
09/15/09 13:40
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Hey Chris,

yeah it worked this time thanks for the help.


3333333333
Re: pXent official release! (using NVIDIA PhysX) [Re: GorNaKosh] #289773
09/15/09 13:58
09/15/09 13:58
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Quadraxas: should works with pX_SetSimulationTime(60);wait(2); after pX_SetWorldSize(0.05);
Code:
#include <acknex.h>
#include "pXent.h"
#include <default.c>
#include <d3d9.h>

function ball()
{
	pXent_settype(my, PH_RIGID, 1);

	pXent_setfriction(my, 100);
	pXent_setelasticity(my, 10);

}

function on_mouse_left_event()
{
	while (mouse_left) {wait (1);}
	ent_create ("earth.mdl", nullvector, ball);
}


function main()
{
	fps_max = 70;
	video_mode=8;
	wait(1);
	pX_setgravity(vector(0,0,-9.81));
	pX_SetWorldSize(0.05);
        pX_SetSimulationTime(60);
	wait(2);
	level_load("level.wmb");
	pXent_settype(level_ent,3,3);
}



Chris: thx for update, now works with event, but I've problem with "wait (random(-10));" physics stops here, any solution?
With ODE this code works fine for me.
Code:
ENTITY* e_sphere;

function remove_ent()
{
	wait (random(-10));
	pXent_settype(me, 0, 0);
	ptr_remove(me);
}

function f_sphere()
{
        VECTOR vKick;
        e_sphere = my;
	c_setminmax(e_sphere);
	vKick.x = 1500; vKick.y = 0; vKick.z = 200;
	ini_physics(PH_SPHERE, 1, PH_SPHERE, 50, 50, 50, 50);
	if(ccd_onoff) pXent_SetCCDSkeleton(e_sphere,vector(0.25,0.25,0.25), 1);
	vec_rotate(vKick,camera.pan);
        //pXent_SetActorEventFlag ( e_sphere, level_ent, NX_NOTIFY_ON_START_TOUCH);
	activate_collision_event(e_sphere);
	pXent_addvelcentral(e_sphere, vKick);
	my.event = remove_ent;
	my.emask |= ENABLE_FRICTION;
}

function on_mouse_left_event()
{
	if (mouse_mode > 0) return;
	while (mouse_left) {wait (1);}
	e_sphere = ent_create ("ball.mdl" , camera.x, f_sphere);
	set (e_sphere, SHADOW);
}




Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: pXent official release! (using NVIDIA PhysX) [Re: rojart] #289782
09/15/09 14:49
09/15/09 14:49
Joined: Jun 2004
Posts: 655
to your left
BoH_Havoc Offline
User
BoH_Havoc  Offline
User

Joined: Jun 2004
Posts: 655
to your left
It's working now. Seems like i always downloaded an old version of the physx drivers. I'm now using 9.09.0408 (still don't know if this is the latest?) and it's working just fine.

Nice job, now add destructable objects and i will definately buy the plugin, even if it's 100€ wink


Shade-C EVO Lite-C Shader Framework
Re: pXent official release! (using NVIDIA PhysX) [Re: BoH_Havoc] #289791
09/15/09 15:57
09/15/09 15:57
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Hi Chris,

There seems to be a bug with scaled terrains

check it out:

http://img17.imageshack.us/img17/8049/asdasdmx.jpg
terrain gets some offset in z axis

Last edited by Quadraxas; 09/15/09 15:58.

3333333333
Re: pXent official release! (using NVIDIA PhysX) [Re: Quad] #289796
09/15/09 16:24
09/15/09 16:24
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Wow, that's nice.
But sometimes the objects hangs on its place, like ODE.

Re: pXent official release! (using NVIDIA PhysX) [Re: Cowabanga] #289857
09/15/09 22:04
09/15/09 22:04
Joined: Sep 2003
Posts: 271
Germany
Chris3D Offline OP
Member
Chris3D  Offline OP
Member

Joined: Sep 2003
Posts: 271
Germany
@Quadraxas:
Do you have scaling problems with pXent_settype(hmp,3,PH_TERRAIN) or pXent_settype(hmp,3,PH_POLY) ?
I will check this out!

@Cowabanga: Can you discribe the situation more detailed? when do the obejcts hang on its place? I haven't seen such case, yet.

@rojart: you are right! this is a problem, it stops because the event function runs in the phsyX main loop... but I think I can fix this.


website coming soon!
Page 2 of 11 1 2 3 4 10 11

Moderated by  aztec, Blink, HeelX 

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