Added more faster interaction

This commit is contained in:
Alexander Bock
2014-09-17 20:11:59 +02:00
parent c1c637efa7
commit 3f1e8d67ca
2 changed files with 11 additions and 3 deletions

View File

@@ -352,13 +352,21 @@ void InteractionHandler::keyboardCallback(int key, int action) {
distance(dist);
}
if (key == 'T') {
PowerScaledScalar dist(-speed * pow(10,8) * dt, 0.0);
PowerScaledScalar dist(-speed * dt, 8.0);
distance(dist);
}
if (key == 'G') {
PowerScaledScalar dist(speed * pow(10, 8) * dt, 0.0);
PowerScaledScalar dist(speed * dt, 8.0);
distance(dist);
}
if (key == 'Y') {
PowerScaledScalar dist(-speed * dt, 18.0);
distance(dist);
}
if (key == 'H') {
PowerScaledScalar dist(speed * dt, 18.0);
distance(dist);
}
/*
if (key == '1') {
SceneGraphNode* node = getSceneGraphNode("sun");

View File

@@ -75,7 +75,7 @@ bool RenderEngine::initializeGL()
// set the close clip plane and the far clip plane to extreme values while in
// development
// sgct::Engine::instance()->setNearAndFarClippingPlanes(0.1f,100.0f);
sgct::Engine::instance()->setNearAndFarClippingPlanes(0.00001f, 100.0f);
sgct::Engine::instance()->setNearAndFarClippingPlanes(0.0001f, 100.0f);
// calculating the maximum field of view for the camera, used to
// determine visibility of objects in the scene graph