mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-12 06:30:42 -06:00
Added more faster interaction
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user