nothing show up

acropole

18-07-2008 08:58:34

Hi,

There is nothing visible on the screen with this code :

mXWorld = new World("time-controller: ogre");
mXScene = mXWorld->createScene("Eddie", mRoot->getSceneManager("Default SceneManager") ,"gravity: yes, floor: yes");

for(int i = 0; i < 10; i++)
Actor* actor = mXScene->createActor("Atlas" + (char)i, new NxOgre::Sphere(5.0f), Vector3(7.0f * i, 50, -30), "mass: 10");
for(int i = 10; i < 20; i++)
Actor* actor = mXScene->createActor("Atlas" + (char)i, new NxOgre::Sphere(5.0f), Vector3(7.0f * i, 50, 30), "mass: 10");


I create many actors to be sure to see at least one, but I can't see anything.

Does the NxOgre::Sphere is also a visible object or only a collision mesh ?

Thanks.

Rasengan

18-07-2008 09:59:19

You want to see actors? Run the visual remote debugger (nVidia Tool) and add this line:

mXWorld->getPhysXDriver()->createDebuggerConnection();

:)

Actors are not visible at all, if you want to see something in your app, you can use NxOgre::Body*
There are a lot of posts talking about that, make simply a search in this forum.

:wink: