[help] how do i make a barrel ?

tsky

16-02-2007 11:35:23

Hi,

how do i make a barrel (oil, wine, etc.) ?

I only got an capsuleShape, sphereShape and boxShape ...?
But i need a cylinderShape !?

any good idea build this with one shape ?

tom

betajaen

16-02-2007 11:36:17

An nShape should do the trick.

tsky

16-02-2007 11:58:50

An nShape should do the trick.

answers faster than light...it will do...

hmm...:? seems that you only make an meshShape with the parameter data !?

So i can use my mesh itself that i got already ?!

My way at the moment is to simplify my objects with sometime serveral primitive geometries/shapes in max and export these primitive data and create native nxOgre/nx objects/bodies without meshes. Which should be much faster than meshes so my knowledge...

Is this not the right way ???
A cylinder should be an primitive object like an capsule or sphere !?

tom

betajaen

16-02-2007 12:13:07

Your idea is exactly what people should do, but to keep note that meshShapes are only for static bodies.

A cylinder isn't a primitive shape of PhysX, so I made a class called "nShape" which allows you to create cylinders through a convex shape.

Don't worry, it's incredibly fast. :D

tsky

17-02-2007 07:08:18

Your idea is exactly what people should do, but to keep note that meshShapes are only for static bodies.

A cylinder isn't a primitive shape of PhysX, so I made a class called "nShape" which allows you to create cylinders through a convex shape.

Don't worry, it's incredibly fast. :D


thanxs for help. It now works as i want.

I create an maxscript creates me an cylinder object with the nasty pivot in the middle of the object :-( and export only the params. Than i create the cylinder with nShape. About 8 barrels with only 12 sided nShape. With some other objects (boxes) it has an FPS of about 100 (Athlon1700+, 7600GS-agp, Ageia-PhysX hardware). The scene has about 20000 polys is it possible the get the performance of the PhysX only ? Our measures show that ageia could move 10K object at 60FPS....

tom

betajaen

17-02-2007 09:10:04

You won't be able to get 10,000 bodies in the scene and have 60FPS.

What is the triangle count of a single barrel?

tsky

17-02-2007 16:09:32

You won't be able to get 10,000 bodies in the scene and have 60FPS.

What is the triangle count of a single barrel?


Yes, if i render the body/actor it will be not possible, but that's another story...

My hole scene has 8860 polys. My single barrel 32 polys, and i have at this time 30 bodies.

my question is how can i get the fps from the actual physx simulation ?

@betajaen: http://cgr.informatik.fh-gelsenkirchen. ... chmark.pdf

betajaen

17-02-2007 18:32:03

Right, that's a lot of documentation there ;)

The FPS is really an Ogre problem. There are a number of ways to speed it up; Running in Release, batching and instancing.

There's quite a few posts about it on there too, the fact that you run PhysX to operate them doesn't mean squat on the FPS, since the calculations are mostly on the PPU anyway.