How to debug?

cyanbeck

04-05-2008 19:42:17

I create a terrain actor using the following code:
mScene->createActor("TerrainActor", new NxOgre::Terrain(hf, NxOgre::float3(1, 100, 1), sp, tp), NxOgre::Pose(), "static: yes");

Before continuing coding, I want to make sure that
whether the PhysX hightfield mathces the graphics terrain.

What I only know is using RemoteDebugger,
but I can't find any *.pxd files after executing my program.

So, sorry for this stupid question.
How to generate PhysX event dump (*.pxd) files?

Appreciate in advance.

betajaen

04-05-2008 20:22:23

File, Save in the remote debugger.

cyanbeck

05-05-2008 02:29:21

Ok
I found out that I misunderstood the use of RemoteDebugger,
that is, connecting to it instead of loading some log file.
mWorld->getSDK()->getFoundationSDK().getRemoteDebugger()->connect("localhost");

Sorry for such embarrassed question.
And, thank you, Betajaen :)

But I still don't know how to draw the shape of hightfield in RemoteDebugger.
Is there any code I should call? after
mScene->createActor("TerrainActor", new NxOgre::Terrain(hf, NxOgre::float3(1, 100, 1), sp, tp), NxOgre::Pose(), "static: yes");

I can see nothing in RemoteDebugger's viewport now.
Could someone help me, please?

Appreciate in advance. :oops:

FriedChicken

05-05-2008 03:26:20

Try to rotate the camera to find objects.

cyanbeck

05-05-2008 04:03:23

Yes, I tried to rotate the camera.
But I think that there is no object in RemoteDebugger.

I doubt that no actor been loaded
because the value of Number of Actors in Scene Stats at right side Scene Browser is 0.

Does it need to add any code to add actors into RemoteDebugger?

cyanbeck

05-05-2008 07:38:28

Ok, I don't know why I can see objects in RemoteDebugger now.
I didn't even change a word in my code.
How strange it is. :shock:

Thanks for help. :)

betajaen

05-05-2008 09:01:59

Usually you have to pause the remote debugger. Which hangs your application until you've resumed it again.