Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, NeoDumont), 761 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
PH_CONVEX vs PH_CUBE #406584
08/24/12 16:04
08/24/12 16:04
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 have (another) small problem:

If I use PH_CUBE with attached wheels attached to another model.
(Imagine a car and a trailer).

Everything works fine when PH_CUBE is used. As soon as I use
PH_CONVEX the model starts floating as it would be a balloon.

I made sure that the model has less than 256 polys. (It has way
less)

There are no differences beside the PhysX hull on the setup.

Regards,
Marian

Re: PH_CONVEX vs PH_CUBE [Re: Rei_Ayanami] #406596
08/25/12 09:07
08/25/12 09:07
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Take a look at PVD, what's going on?

If you don't have PVD, could you please make a small demo?


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: PH_CONVEX vs PH_CUBE [Re: rojart] #406599
08/25/12 10:43
08/25/12 10:43
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
Going to prepare a demo.

Thanks!

Re: PH_CONVEX vs PH_CUBE [Re: Rei_Ayanami] #406605
08/25/12 14:28
08/25/12 14:28
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
Okay, while preparing the demo for your, I found the problem:

The collision model was not centered (but positioned correctly). This led to the odd behavior, and everything works, as soon as I center the model in MED and adjust the position in the code.

Odd, however...


Still want a demo?

Re: PH_CONVEX vs PH_CUBE [Re: Rei_Ayanami] #406607
08/25/12 15:08
08/25/12 15:08
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I do grin (Yeeaahhh, I'm a rare bustard grin )


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: PH_CONVEX vs PH_CUBE [Re: Rei_Ayanami] #406608
08/25/12 15:55
08/25/12 15:55
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Originally Posted By: Rei_Ayanami
Okay, while preparing the demo for your, I found the problem:

The collision model was not centered (but positioned correctly). This led to the odd behavior, and everything works, as soon as I center the model in MED and adjust the position in the code.

Odd, however...

Still want a demo?

Not needed, if works properly, recently I had a similar problem with my Ragdoll code, I remember now.


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: PH_CONVEX vs PH_CUBE [Re: rojart] #406609
08/25/12 16:33
08/25/12 16:33
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
Hmn, okay.

Still odd.


Another (for me big) problem: CONVEX does not allow any special forms. PH_POLY is only for static. Is there no chance besides pXent_addshape?

Re: PH_CONVEX vs PH_CUBE [Re: Rei_Ayanami] #406610
08/25/12 17:39
08/25/12 17:39
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
PhysX allows only either spheres, cubes, capsules and convex things - custom shapes made of several, custom orientated, scaled and positioned shapes.

For a client, I needed very accurate physics shapes. So I took WED and created several scaled boxes, imported them, positioned, rotated and scaled them, to match the needed shape:



Then, I wrote a small Lite-C script, that took the arrangement and wrote a MDL file, that encoded the position, scale, rotation and type of each sub-shape. During runtime, I load the MDL, read out the data and use pXent_addshape to build my custom and yet accurate complex physics shape.

Yes, and it involves work. But in an ideal work, your modeller creates the model for your vehicle once and therefore you need only once to create such a setup.

Re: PH_CONVEX vs PH_CUBE [Re: HeelX] #406619
08/25/12 21:04
08/25/12 21:04
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
Okay, thanks for the answer laugh!


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