Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Tags in this Discussion

PhysX 3 render debug info?
  • Hi,

    I had this all working with PhysX 2.8.4 but I can't find any information about how to render debug info to screen alongside your game.

    I know you can access the render buffer for a given scene, but I looked at the header file for PxRenderBuffer but it is just an interface, where is it implemented?

    PxScene *scene;
    scene->getRenderBuffer();


    Another issue is that my download of 3.0 only the PhysXGuide.chm file works and not the PhysXSDK.chm. My download of 3.1 neither of them work, just wrong address for every single link in the contents section down the left.

  • 6 Comments sorted by
  • Vote Up1Vote Down Mike Skolones
    Posts: 128 Accepted Answer
    Hi,

    The docs problem is probably because Windows is blocking the content. If you look at the properties page for the chm file you should be able to unblock it. The debug rendering does work fine, with a few bugs here and there.
    -Mike
  • Vote Up1Vote Down DozyHole
    Posts: 4 Accepted Answer
    Hi Mike, you were correct, the content was being blocked. Thanks for your reply.

    My main problem was down to not including the correct header:
    #include "PxRenderBuffer.h"

    I thought everything I needed was included in this header:
    #include "PxPhysicsAPI.h"
    But it's not:)

    The RenderBuffer object can now be accessed.


  • Anyone?

    Even confirmation that PhysX 3 does have this feature implemented would be something.

    I presume it would be implemented, I did see a post where someone claimed to have it working but there were no details.

    I just need a push in the right direction, as explained, the PhysXSDK.chm does not work so I am short on information.
  • -->But it's not:)

    Yes, we're improving the header situation in the 3.2 release (well, that's the intention...you'll have a chance to vote on whether we actually improved it or not!)

    Thanks,

    Mike
  • DozyHole said:

    Anyone?

    Even confirmation that PhysX 3 does have this feature implemented would be something.

    I presume it would be implemented, I did see a post where someone claimed to have it working but there were no details.

    I just need a push in the right direction, as explained, the PhysXSDK.chm does not work so I am short on information.



    Not sure if you found an answer yet, but the included samples use PxRenderBuffer to show debug lines. Search for PxRenderBuffer in Samples.sln and you'll find a pretty simple implementation.

    - Blake

  • Thanks blake, I did solve it, it's the way the forum can now jumble the post order:)