PhysX explained
PhysX |
Author: | NovodeX AG (ETH Zurich) |
Developer: | Nvidia Corporation (2008-present) Ageia (2004-2008) NovodeX AG (2001-2004) |
Latest Release Version: | Blast 5.0.0; PhysX SDK 5.1.3; Flow 2.0.2 |
Repo: | https://github.com/NVIDIA-Omniverse/PhysX (5.x) https://github.com/NVIDIAGameWorks/PhysX (4.x) |
Programming Language: | C++ |
Operating System: | Microsoft Windows, macOS, Linux, PlayStation 2, PlayStation 3, PlayStation 4, Xbox 360, Xbox One, Wii, iOS, Android |
Genre: | Physics simulation |
License: | BSD-3 |
Website: | Nvidia PhysX developer site Documentation |
PhysX is an open-source[1] realtime physics engine middleware SDK developed by Nvidia as a part of Nvidia GameWorks software suite.
Initially, video games supporting PhysX were meant to be accelerated by PhysX PPU (expansion cards designed by Ageia). However, after Ageia's acquisition by Nvidia, dedicated PhysX cards have been discontinued in favor of the API being run on CUDA-enabled GeForce GPUs. In both cases, hardware acceleration allowed for the offloading of physics calculations from the CPU, allowing it to perform other tasks instead.
PhysX and other middleware physics engines are used in many video games today because they free game developers from having to write their own code that implements classical mechanics (Newtonian physics) to do, for example, soft body dynamics.[2]
History
What is known today as PhysX originated as a physics simulation engine called NovodeX. The engine was developed by Swiss company NovodeX AG, an ETH Zurich spin-off.[3] In 2004, Ageia acquired NovodeX AG and began developing a hardware technology that could accelerate physics calculations, aiding the CPU. Ageia called the technology PhysX, the SDK was renamed from NovodeX to PhysX, and the accelerator cards were dubbed PPUs (Physics Processing Units).[4]
In its implementation, the first video game to use PhysX technology is The Stalin Subway, released in Russia-only game stores in September 2005.[5]
In 2008, Ageia was itself acquired by graphics technology manufacturer Nvidia.[6] Nvidia started enabling PhysX hardware acceleration on its line of GeForce graphics cards[7] and eventually dropped support for Ageia PPUs.
PhysX SDK 3.0 was released in May 2011 and represented a significant rewrite of the SDK, bringing improvements such as more efficient multithreading and a unified code base for all supported platforms.
At GDC 2015, Nvidia made the source code for PhysX available on GitHub, but required registration at developer.nvidia.com.[8] The proprietary SDK was provided to developers for free for both commercial and non-commercial use on Windows, Linux, macOS, iOS and Android platforms.[9]
On December 3, 2018, PhysX was made open source under a 3-clause BSD license, but this change applied only to computer and mobile platforms.[10]
On November 8, 2022, the open source release was updated to PhysX 5, under the same 3-clause BSD license.[11]
Features
The PhysX engine and SDK are available for Microsoft Windows, macOS, Linux, PlayStation 3,[12] [13] PlayStation 4,[14] Xbox 360,[15] Xbox One,[16] Wii,[17] iOS and Android.
PhysX is a multi-threaded physics simulation SDK. It supports rigid body dynamics, soft body dynamics (like cloth simulation, including tearing and pressurized cloth), ragdolls and character controllers, vehicle dynamics, particles and volumetric fluid simulation.
Hardware acceleration
PPU
A physics processing unit (PPU) is a processor specially designed to alleviate the calculation burden on the CPU, specifically calculations involving physics. PhysX PPUs were offered to consumers in the forms of PCI or PCIe cards by ASUS,[18] BFG Technologies,[19] [20] Dell[21] and ELSA Technology.[22]
Beginning with version 2.8.3 of the PhysX SDK, support for PPU cards was dropped, and PPU cards are no longer manufactured.[23] The last incarnation of PhysX PPU standalone card designed by Ageia had roughly the same PhysX performance as a dedicated 9800GTX.[24]
GPU
After Nvidia's acquisition of Ageia, PhysX development turned away from PPU expansion cards and focused instead on the GPGPU capabilities of modern GPUs.
Modern GPUs are very efficient at manipulating and displaying computer graphics, and their highly parallel structure makes them more effective than general-purpose CPUs for accelerating physical simulations using PhysX.
Any CUDA-ready GeForce graphics card (8-series or later GPU with a minimum of 32 cores and a minimum of 256 MB dedicated graphics memory[25]) can take advantage of PhysX without the need to install a dedicated PhysX card.
APEX
Nvidia APEX technology is a multi-platform scalable dynamics framework build around the PhysX SDK. It was first introduced in Mafia II in August 2010.[26] Nvidia's APEX comprises the following modules: APEX Destruction, APEX Clothing, APEX Particles, APEX Turbulence, APEX ForceField and formerly APEX Vegetation which was suspended in 2011.[27] [28]
From version 1.4.1 APEX SDK is deprecated.[29]
Nvidia FleX
FleX is a particle based simulation technique for real-time visual effects. Traditionally, visual effects are made using a combination of elements created using specialized solvers for rigid bodies, fluids, clothing, etc. Because FleX uses a unified particle representation for all object types, it enables new effects where different simulated substances can interact with each other seamlessly. Such unified physics solvers are a staple of the offline computer graphics world, where tools such as Autodesk Maya's nCloth, and Softimage's Lagoa are widely used. The goal for FleX is to use the power of GPUs to bring the capabilities of these offline applications to real-time computer graphics.[30]
Criticism from Real World Technologies
On July 5, 2010, Real World Technologies published an analysis[31] of the PhysX architecture. According to this analysis, most of the code used in PhysX applications at the time was based on x87 instructions without any multithreading optimization. This could cause significant performance drops when running PhysX code on the CPU. The article suggested that a PhysX rewrite using SSE instructions may substantially lessen the performance discrepancy between CPU PhysX and GPU PhysX.
In response to the Real World Technologies analysis, Mike Skolones, product manager of PhysX, said[32] that SSE support had been left behind because most games are developed for consoles first and then ported to the PC. As a result, modern computers run these games faster and better than the consoles even with little or no optimization.Senior PR manager of Nvidia, Bryan Del Rizzo, explained that multithreading had already been available with CPU PhysX 2.x and that it had been up to the developer to make use of it. He also stated that automatic multithreading and SSE would be introduced with version 3 of the PhysX SDK.[33]
PhysX SDK 3.0 was released in May 2011 and represented a significant rewrite of the SDK, bringing improvements such as more efficient multithreading and a unified code base for all supported platforms.
Usage
PhysX in video games
PhysX technology is used by game engines such as Unreal Engine (version 3 onwards), Unity, Gamebryo, Vision (version 6 onwards), Instinct Engine,[34] Panda3D, Diesel, Torque, HeroEngine, and BigWorld.[25]
As one of the handful of major physics engines, it is used in many games, such as , Warframe, Killing Floor 2, Fallout 4, , Planetside 2, and Borderlands 2. Most of these games use the CPU to process the physics simulations.
Video games with optional support for hardware-accelerated PhysX often include additional effects such as tearable cloth, dynamic smoke or simulated particle debris.[35] [36] [37]
PhysX in other software
Other software with PhysX support includes:
- Active Worlds (AW), a 3D virtual reality platform with its client running on Windows
- Amazon Lumberyard, a 3D game development engine developed by Amazon[38]
- Autodesk 3ds Max, Autodesk Maya and Autodesk Softimage, computer animation suites[39] [40] [41]
- DarkBASIC Professional (with DarkPHYSICS upgrade), a programming language targeted at game development[42]
- DX Studio, an integrated development environment for creating interactive 3D graphics[43]
- ForgeLight, a game engine developed by the former Sony Online Entertainment.
- Futuremark's 3DMark06 and Vantage benchmarking tools[44]
- Microsoft Robotics Studio, an environment for robot control and simulation[45]
- Nvidia's SuperSonic Sled and Raging Rapids Ride, technology demos
- OGRE (via the NxOgre wrapper), an open source rendering engine
- The Physics Abstraction Layer, a physical simulation API abstraction system (it provides COLLADA and Scythe Physics Editor support for PhysX)[46]
- Rayfire, a plug-in for Autodesk 3ds Max that allows fracturing and other physics simulations
- The Physics Engine Evaluation Lab, a tool designed to evaluate, compare and benchmark physics engines.
- Unreal Engine game development software by Epic Games. Unreal Engine 4.26 and onwards has officially deprecated PhysX.[47]
- Unity by Unity ApS. Unity's Data-Oriented Technology Stack does not use PhysX.[48]
See also
External links
Notes and References
- News: NVIDIA PhysX SDK 4.1. Engadget. 2022-04-05. en-US.
- Web site: NVIDIA announces the release of PhysX SDK V3. Nvidia. https://web.archive.org/web/20110524145446/http://developer.nvidia.com/physx-sdk-v30. May 24, 2011. dead. June 3, 2011.
- Web site: NovodeX AG. ETH Zürich. https://web.archive.org/web/20180108063920/https://www.ethz.ch/en/industry-and-society/entrepreneurship/spin-offs/exits/novodex.html. January 8, 2018. December 4, 2018.
- Web site: AGEIA Technologies Interview . César A. Berardini . April 12, 2005 . June 8, 2011 . dead . https://web.archive.org/web/20110921011441/http://interviews.teamxbox.com/xbox/1117/AGEIA-Technologies-Interview/p1 . September 21, 2011 .
- Web site: Physics Engine: PhysX . 2023-09-06 . MobyGames . en.
- NVIDIA completes Acquisition of AGEIA Technologies. February 13, 2008. NVIDIA Corporation. March 18, 2009.
- Web site: PhysX For CUDA, Linux Support A Given? . Phoronix . Phoronix Media . February 14, 2008 . February 14, 2008.
- Web site: PhysX On GitHub. Nvidia. March 6, 2015.
- Web site: PhysX SDK as of January 7, 2017. Nvidia. https://web.archive.org/web/20170107003159/https://developer.nvidia.com/physx-sdk. September 3, 2017. January 7, 2017.
- Web site: PhysX SDK. November 28, 2018. NVIDIA Developer. en. https://web.archive.org/web/20181205103131/https://developer.nvidia.com/physx-sdk. December 5, 2018. December 5, 2018.
- Web site: Open Source Simulation Expands with NVIDIA PhysX 5 Release. November 8, 2022 . Nvidia. https://web.archive.org/web/20230528035837/https://developer.nvidia.com/blog/open-source-simulation-expands-with-nvidia-physx-5-release/. June 15, 2023. May 28, 2023.
- Sony Computer Entertainment Enters Into Strategic Licensing Agreement With AGEIA. July 21, 2005. Sony Computer Entertainment, Inc.. August 23, 2006. dead. https://web.archive.org/web/20060311061054/http://www.scei.co.jp/corporate/release/pdf/050721be.pdf. March 11, 2006.
- Web site: Playstation 3 gets free PhysX from Nvidia. March 18, 2009 . Kotaku.
- Web site: Nvidia Announces PhysX Support for PlayStation 4. Lowe. Scott. March 7, 2013.
- Web site: PhysX – Overview – GeForce. Nvidia.com. November 30, 2011. April 29, 2009. https://web.archive.org/web/20090429032417/http://www.nvidia.com/object/nvidia_physx.html. dead.
- Web site: NVIDIA Announces PhysX Support for Microsoft Xbox One Game Console. Nvidia.com. https://web.archive.org/web/20141109040434/http://nvidianews.nvidia.com/News/nvidia-announces-physx-support-for-microsoft-xbox-one-game-console-997.aspx. November 9, 2014. dead. November 9, 2014.
- Web site: News – Pre-GDC: Nvidia PhysX Approved For Wii Developers. March 19, 2009. Gamasutra. November 30, 2011.
- Web site: Asus 128mb PhysX Card Review/Preview. July 12, 2006.
- Web site: AGEIA And BFG Technologies Enter Into Retail Distribution Agreement. https://web.archive.org/web/20060426124859/http://www.bfgtech.com/news_8.31.05.html. April 26, 2006.
- Web site: BFG Ageia PhysX Card Review. 2007-10-01.
- Web site: AGEIA PhysX - graphics card - AGEIA PhysX - 128 MB Specs. Cnet.
- Web site: ELSA teams up with Ageia.
- Web site: How to restore PPU support with latest PhysX Drivers | PhysXInfo.com – PhysX News . PhysXInfo.com . January 17, 2011 . November 30, 2011 . November 24, 2011 . https://web.archive.org/web/20111124044806/http://physxinfo.com/news/4697/how-to-restore-ppu-support-with-latest-physx-drivers/ . dead .
- Web site: English articles from PC Games Hardware. www.pcgameshardware.com. January 26, 2009.
- Web site: PhysX FAQ. Nvidia.com. December 10, 2015.
- Web site: Mafia-II Video Game Performance Review . August 23, 2010 . Olin Coles . BenchmarkReviews.com.
- Web site: APEX . June 8, 2011.
- Web site: Category:APEX - PhysX Wiki . PhysXInfo.com . 21 July 2013.
- Web site: APEX 1.4.1 - Release Notes (APEX has been deprecated). gameworksdocs.nvidia.com. December 5, 2018.
- Web site: NVIDIA FleX. 2015-08-13. NVIDIA Developer. en. 2019-04-17.
- Web site: PhysX87: Software Deficiency. www.realworldtech.com.
- Web site: Stokes . Jon . Did NVIDIA cripple its CPU gaming physics library to spite Intel? . Arstechnica.com . July 8, 2010 . November 30, 2011.
- Web site: Nvidia: We're not hobbling CPU PhysX | thinq_ | Page 1 . Thinq.co.uk . November 30, 2011.
- Web site: Instinct Software - Instinct Engine SDK . Instinctengine.com . 2013-10-04 . https://web.archive.org/web/20150213215822/http://instinctengine.com/index.php/products/instinct-studio-sdk . February 13, 2015 . dead . mdy-all .
- Web site: A look at PhysX in Mirror's Edge . Matt Butrovich . . February 12, 2009 . April 6, 2011.
- Web site: Nvidia's PhysX makes PC Batman: Arkham Asylum worth the wait . Rich Brown . . September 21, 2009 . April 6, 2011.
- Web site: Mafia II: Is Applied PhysX Worth It? . Matthew Murray . . September 2, 2010 . April 6, 2011 . December 30, 2010 . https://web.archive.org/web/20101230135015/http://www.extremetech.com/article2/0,2845,2368499,00.asp . dead .
- Web site: PhysX - Lumberyard User Guide. April 15, 2020. September 22, 2020. https://web.archive.org/web/20200922021924/https://docs.aws.amazon.com/lumberyard/latest/userguide/gems-system-gem-physx.html. dead.
- Web site: Videos: Autodesk reveals new features in Maya 2012 . Jim Thacker . cgchannel.com . March 1, 2011 . April 6, 2011.
- Web site: 3ds Max 2012 and Maya 2012 adds PhysX support . Beyond3D.com . March 1, 2011 . April 6, 2011 . https://web.archive.org/web/20170708155351/https://www.beyond3d.com/content/news/765 . July 8, 2017 . dead .
- Web site: NVidia PhysX and CUDA in Softimage 2011 . Randall Hand . Vizworld.com . May 5, 2010 . April 6, 2011.
- The Game Creators . September 23, 2006 . March 22, 2006 . The Game Creators Integrate AGEIA PhysX Technology into DarkBASIC Professional . dead . https://web.archive.org/web/20060427020754/http://www.gamedev.net/community/forums/topic.asp?topic_id=382741 . April 27, 2006 .
- Web site: Overview. DX Studio. Worldweaver. November 2, 2008. https://web.archive.org/web/20090705092517/http://www.dxstudio.com/features.aspx. July 5, 2009. dead.
- News: AGEIA Joins Futuremark's 3DMark Benchmark Development Program. September 27, 2006. BusinessWire. FindArticles. CBS Interactive. November 3, 2008.
- Web site: Simulation Overview. Microsoft Robotics Developer Center. March 2012 . Microsoft.
- Web site: Engines. Physics Abstraction Layer. Adrian. Boeing. November 18, 2007.
- Web site: Unreal Engine 4.26 Preview. September 24, 2020.
- Web site: Unity - Manual: Physics.