Author Topic: PhysX 3 plugin WIP  (Read 8702 times)

0 Members and 1 Guest are viewing this topic.

JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP
« on: May 17, 2013, 03:05:16 PM »
I started today the dev of a PhysX 3 plugin for GLSL Hacker...



« Last Edit: May 20, 2013, 07:19:11 PM by JeGX »

JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - Rigid Bodies
« Reply #1 on: May 20, 2013, 07:18:59 PM »
PhysX 3 plugin WIP - some falling spheres (CPU rigid body). Green spheres are sleeping.


JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - Smash the stack
« Reply #2 on: May 23, 2013, 08:28:02 AM »
Still so cool to be able to smash a stack of boxes  ;D






« Last Edit: May 23, 2013, 08:29:42 AM by JeGX »

JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - PVD, PhysX Visual Debugger
« Reply #3 on: May 23, 2013, 09: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...



JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - Mega box stack
« Reply #4 on: May 23, 2013, 11:40:34 AM »
60 boxes wide stack (CPU PhysX):






JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - 100 boxes wide stack
« Reply #5 on: May 23, 2013, 11:48:31 AM »
100 boxes wide stack (CPU PhysX):





JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - cloth
« Reply #6 on: May 26, 2013, 03:14:20 PM »
First tests of PhysX 3 cloth module:


CPU PhysX:



GPU PhysX:


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



JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - cloth (with normals for lighting)
« Reply #7 on: May 26, 2013, 06:33:42 PM »
GPU PhysX with normals for correct lighting:

« Last Edit: May 26, 2013, 06:35:31 PM by JeGX »

JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - Cloth under Mac OS X
« Reply #8 on: June 07, 2013, 10:23:05 AM »
First tests under Mac OS X 10.8.3. No GPU acceleration  :(


JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - Particles
« Reply #9 on: June 10, 2013, 01:25:58 PM »
Simple particle system (no particle interaction):



SPH particle system (fluid with particle interaction):


JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - SPH Fluids + Mesh collisions
« Reply #10 on: June 11, 2013, 03:34:16 PM »
SPH fluids + collision with a mesh actor (GPU PhysX)



SPH fluids + collision with a mesh actor (CPU PhysX)


JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3 plugin WIP - SPH Fluids + Mesh collisions
« Reply #11 on: June 11, 2013, 09:23:01 PM »
CPU PhysX SPH fluids: collisions inside a box mesh actor work fine (if the actor is static).



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...


JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 583
    • View Profile
    • Geeks3D.com
PhysX 3.3 plugin WIP - cloth module test
« Reply #12 on: July 15, 2013, 12: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:


Cloth simulation running on GPU: