Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Deleting PhysX Objects #406331
08/17/12 12:30
08/17/12 12:30
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline OP
Expert
Rei_Ayanami  Offline OP
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Hey,

I cannot delete PhysX objects. If I have a function that creates
an object with Raycasting wheels, and shortly after delete it, the
graphical representation is gone, but in the PhysX Debugger
everything stays and other objects still react on it.

If I call the function again, odd things happen. As if the same
memory part is used again. If I manually overwrite the before
deleted memory with zeros, at least this works.

Also, calling pXcon_remove on a PH_WHEEL makes the function crash.

Any ideas? Please?



I am seriously wondering if anybody really used PhysX in GS, when I see those problems...

Re: Deleting PhysX Objects [Re: Rei_Ayanami] #406336
08/17/12 14:24
08/17/12 14:24
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Show me your code, maybe forgotten with pXent_settype( myPhysXentity, 0, 0 ); ?

0 = unregister the entity from the physics system.


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: Deleting PhysX Objects [Re: rojart] #406339
08/17/12 15:07
08/17/12 15:07
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
some times unregistering before deleting doesnt work with PH CHAR too


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Deleting PhysX Objects [Re: 3run] #406340
08/17/12 15:16
08/17/12 15:16
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline OP
Expert
Rei_Ayanami  Offline OP
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
pXent_settype(ent, 0, 0) does nothing.

(I also checked the PhysX Debugger)

Furthermore, the event physX_ent_remove should do that.


However, pXent_enable works for me.


On the other hand, the PhysX implementation really sucks, sorry, but I even have to clean up the level entities myself with pXent_enable one by one...

(thanks for your help ;))

Last edited by Rei_Ayanami; 08/17/12 15:17.
Re: Deleting PhysX Objects [Re: Rei_Ayanami] #406341
08/17/12 15:30
08/17/12 15:30
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Originally Posted By: Rei_Ayanami
the PhysX implementation really sucks, sorry, but I even have to clean up the level entities myself with pXent_enable one by one...
It turns out that I have to use the ackphysx plugin again very soon for a customer, so I will change that, so that this part will be better.

Re: Deleting PhysX Objects [Re: Rei_Ayanami] #406342
08/17/12 15:33
08/17/12 15:33
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Of course, but please show me some code, that reproduce your issue for me.


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: Deleting PhysX Objects [Re: rojart] #406343
08/17/12 16:36
08/17/12 16:36
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
rojart@ if you need, I can send you a small example of the same problem with PH CHAR. I'm waiting for snakes plugin! I hope it will be much better than the one which implemented by jcl.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Deleting PhysX Objects [Re: 3run] #406345
08/17/12 16:53
08/17/12 16:53
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
It would be useful laugh


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: Deleting PhysX Objects [Re: rojart] #406367
08/18/12 07:59
08/18/12 07:59
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
3run: Yes, you can send me that example.

Rei_Ayanami: In the first post, I see beta 8.34.0b, try with new update 8.40.1 and give me the chance to see your code.


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: Deleting PhysX Objects [Re: rojart] #406368
08/18/12 08:30
08/18/12 08:30
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Sorry for a delay, here is the demo for you all to try:
Download link
I've tried it with the latest beta version, still sucks.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 1 of 2 1 2

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