Geeks3D Forums

GeeXLab => GeeXLab - english forum => Topic started by: JeGX on May 17, 2013, 04:05:16 PM

Title: PhysX 3 plugin WIP
Post by: JeGX on May 17, 2013, 04:05:16 PM
I started today the dev of a PhysX 3 plugin for GLSL Hacker...

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_loaded.jpg)

Title: PhysX 3 plugin WIP - Rigid Bodies
Post by: JeGX on May 20, 2013, 08:18:59 PM
PhysX 3 plugin WIP - some falling spheres (CPU rigid body). Green spheres are sleeping.

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_rigid_body_01)
Title: PhysX 3 plugin WIP - Smash the stack
Post by: JeGX on May 23, 2013, 09:28:02 AM
Still so cool to be able to smash a stack of boxes  ;D

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_rigid_body_03.jpg)

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_rigid_body_04.jpg)

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_rigid_body_05.jpg)
Title: PhysX 3 plugin WIP - PVD, PhysX Visual Debugger
Post by: JeGX on May 23, 2013, 10:44:30 AM
GLSL Hacker is connected to PVD / PhysX Visual Debugger (via Lua/Python calls). The sad thing is that PVD seems to be only available in DEBUG builds. So PVD functions won't work in GLSL Hacker...

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_pvd_01.jpg)
Title: PhysX 3 plugin WIP - Mega box stack
Post by: JeGX on May 23, 2013, 12:40:34 PM
60 boxes wide stack (CPU PhysX):

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_60_boxes_wide_stack_01.jpg)

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_60_boxes_wide_stack_02.jpg)

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_60_boxes_wide_stack_03.jpg)
Title: PhysX 3 plugin WIP - 100 boxes wide stack
Post by: JeGX on May 23, 2013, 12:48:31 PM
100 boxes wide stack (CPU PhysX):

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_100_boxes_wide_stack_01.jpg)

(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_100_boxes_wide_stack_02.jpg)
Title: PhysX 3 plugin WIP - cloth
Post by: JeGX on May 26, 2013, 04:14:20 PM
First tests of PhysX 3 cloth module:


CPU PhysX:
(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_cloth_01.jpg)
(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_cloth_02.jpg)

GPU PhysX:
(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_cloth_03.jpg)

There must be a problem somewhere in my code, because a difference of 1000 FPS between CPU and GPU cloth is not normal...


Title: PhysX 3 plugin WIP - cloth (with normals for lighting)
Post by: JeGX on May 26, 2013, 07:33:42 PM
GPU PhysX with normals for correct lighting:
(http://www.ozone3d.net/public/jegx/201305/glslhacker_physx3_plugin_cloth_04.jpg)
Title: PhysX 3 plugin WIP - Cloth under Mac OS X
Post by: JeGX on June 07, 2013, 11:23:05 AM
First tests under Mac OS X 10.8.3. No GPU acceleration  :(

(http://www.ozone3d.net/public/jegx/201306/glslhacker_physx3_plugin_cloth_05_macosx.jpg)
Title: PhysX 3 plugin WIP - Particles
Post by: JeGX on June 10, 2013, 02:25:58 PM
Simple particle system (no particle interaction):
(http://www.ozone3d.net/public/jegx/201306/glslhacker_physx3_plugin_particles_01.jpg)


SPH particle system (fluid with particle interaction):
(http://www.ozone3d.net/public/jegx/201306/glslhacker_physx3_plugin_particles_fluid_sph_01.jpg)
Title: PhysX 3 plugin WIP - SPH Fluids + Mesh collisions
Post by: JeGX on June 11, 2013, 04:34:16 PM
SPH fluids + collision with a mesh actor (GPU PhysX)
(http://www.ozone3d.net/public/jegx/201306/glslhacker_physx3_plugin_particles_fluid_sph_02.jpg)


SPH fluids + collision with a mesh actor (CPU PhysX)
(http://www.ozone3d.net/public/jegx/201306/glslhacker_physx3_plugin_particles_fluid_sph_03.jpg)
Title: PhysX 3 plugin WIP - SPH Fluids + Mesh collisions
Post by: JeGX on June 11, 2013, 10:23:01 PM
CPU PhysX SPH fluids: collisions inside a box mesh actor work fine (if the actor is static).
(http://www.ozone3d.net/public/jegx/201306/glslhacker_physx3_plugin_particles_fluid_sph_04.jpg)


GPU PhysX SPH fluids: collisions inside a mesh actor do not work: particles go throught the box mesh. Weird, because in the previous post with the torus knot, the GPU collisions were properly handled...
(http://www.ozone3d.net/public/jegx/201306/glslhacker_physx3_plugin_particles_fluid_sph_05.jpg)
Title: PhysX 3.3 plugin WIP - cloth module test
Post by: JeGX on July 15, 2013, 01:11:42 PM
Cloth module of new PhysX 3.3 beta 2 works very fine now.

http://www.geeks3d.com/20130715/physx-sdk-3-3-beta-2-cloth-module-quick-test-glslhacker/

Cloth simulation running on CPU:
(http://www.ozone3d.net/public/jegx/201307/glslhacker_physx33_plugin_cpu_cloth_60x60.jpg)

Cloth simulation running on GPU:
(http://www.ozone3d.net/public/jegx/201307/glslhacker_physx33_plugin_gpu_cloth_60x60.jpg)