mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-13 17:09:05 -05:00
Merge branch 'feature/globebrowsing' of github.com:OpenSpace/OpenSpace-Development into feature/globebrowsing
This commit is contained in:
@@ -63,8 +63,8 @@ namespace openspace {
|
||||
{
|
||||
|
||||
auto geometry = std::shared_ptr<BasicGrid>(new BasicGrid(
|
||||
100,
|
||||
100,
|
||||
64,
|
||||
64,
|
||||
TriangleSoup::Positions::No,
|
||||
TriangleSoup::TextureCoordinates::Yes,
|
||||
TriangleSoup::Normals::No));
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace openspace {
|
||||
_ellipsoid = Ellipsoid(radii);
|
||||
|
||||
|
||||
setBoundingSphere(pss(_ellipsoid.averageRadius(), 1.0));
|
||||
setBoundingSphere(pss(_ellipsoid.averageRadius(), 0.0));
|
||||
|
||||
|
||||
ghoul::Dictionary texturesDictionary;
|
||||
@@ -122,7 +122,7 @@ namespace openspace {
|
||||
heightMapDictionary.getValue("FilePath", path);
|
||||
std::shared_ptr<TileProvider> heightMapProvider =
|
||||
std::shared_ptr<TileProvider>(new TileProvider(
|
||||
path, 5000, 256, 60));
|
||||
path, 5000, 64, 60));
|
||||
_tileProviderManager->addHeightMap(name, heightMapProvider);
|
||||
}
|
||||
|
||||
|
||||
@@ -820,10 +820,11 @@ void OrbitalInteractionMode::updateCameraStateFromMouseStates() {
|
||||
glm::normalize(glm::quat_cast(glm::inverse(lookAtMat)));
|
||||
}
|
||||
{ // Move position towards or away from focus node
|
||||
double boundingSphere = _focusNode->boundingSphere().lengthf();
|
||||
glm::dvec3 centerToBoundingSphere =
|
||||
glm::normalize(posDiff) *
|
||||
static_cast<double>(_focusNode->boundingSphere().lengthf());
|
||||
newPosition += -(posDiff + centerToBoundingSphere) *
|
||||
boundingSphere;
|
||||
newPosition += -(posDiff - centerToBoundingSphere) *
|
||||
_truckMovementMouseState.velocity.get().y;
|
||||
}
|
||||
{ // Do roll
|
||||
|
||||
Reference in New Issue
Block a user