How to stream the simulation to other softwares #24
-
I would like to use Physx to run the simulation and send the result in realtime to other applications, how can it be done? I would like at least a direction to look, because I cant see how to do that, and I'm also a beginner on C++, so its all new to me. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There is no feature in PhysX that will just do it for you, you will need to get the updated state from PhysX using the same functions the snippets (sample programs) use to retrieve updated transforms and send them to the renderer; except you will need to send these transforms over a socket or other interface to your other application, for which you will typically need to write some sort of plugin to receive the data. You will also need to worry about object life management on both sides of the connection. If you are a beginner you might be biting off more here than you can chew, honestly. I would start with an easier project to learn C++, because if you do this, you will simultaneously be learning, C++, PhysX, networking, and how to extend your target application, all at the same time. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure you came across this series of articles, but it's a must-read, especially since you said you're spending time on research it might save you a lot of it. |
Beta Was this translation helpful? Give feedback.
There is no feature in PhysX that will just do it for you, you will need to get the updated state from PhysX using the same functions the snippets (sample programs) use to retrieve updated transforms and send them to the renderer; except you will need to send these transforms over a socket or other interface to your other application, for which you will typically need to write some sort of plugin to receive the data. You will also need to worry about object life management on both sides of the connection.
If you are a beginner you might be biting off more here than you can chew, honestly. I would start with an easier project to learn C++, because if you do this, you will simultaneously be…