add kukaCamGymEnv.py with camera observations (preliminary)
show camera position in example browser disable per-vertex and per-fragment profile timings
This commit is contained in:
@@ -1296,8 +1296,10 @@ void OpenGLExampleBrowser::update(float deltaTime)
|
||||
float pitch = s_guiHelper->getRenderInterface()->getActiveCamera()->getCameraPitch();
|
||||
float yaw = s_guiHelper->getRenderInterface()->getActiveCamera()->getCameraYaw();
|
||||
float camTarget[3];
|
||||
float camPos[3];
|
||||
s_guiHelper->getRenderInterface()->getActiveCamera()->getCameraPosition(camPos);
|
||||
s_guiHelper->getRenderInterface()->getActiveCamera()->getCameraTargetPosition(camTarget);
|
||||
sprintf(msg,"dist=%f, pitch=%f, yaw=%f,target=%f,%f,%f", camDist,pitch,yaw,camTarget[0],camTarget[1],camTarget[2]);
|
||||
sprintf(msg,"camPos=%f,%f,%f, dist=%f, pitch=%f, yaw=%f,target=%f,%f,%f", camPos[0],camPos[1],camPos[2],camDist,pitch,yaw,camTarget[0],camTarget[1],camTarget[2]);
|
||||
gui2->setStatusBarMessage(msg, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user