mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-03 00:51:01 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi
This commit is contained in:
commit
20045836aa
6 changed files with 47 additions and 27 deletions
|
@ -257,27 +257,26 @@ endif()
|
||||||
|
|
||||||
def installQt(self):
|
def installQt(self):
|
||||||
qt5InstallPath = self.getQt5InstallPath()
|
qt5InstallPath = self.getQt5InstallPath()
|
||||||
if os.getenv('QT_CMAKE_PREFIX_PATH') == None:
|
if not os.path.isdir(qt5InstallPath):
|
||||||
if not os.path.isdir(qt5InstallPath):
|
print ('Downloading Qt from AWS')
|
||||||
print ('Downloading Qt from AWS')
|
dest, tail = os.path.split(qt5InstallPath)
|
||||||
dest, tail = os.path.split(qt5InstallPath)
|
|
||||||
|
|
||||||
url = 'NOT DEFINED'
|
url = 'NOT DEFINED'
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows':
|
||||||
url = 'https://hifi-public.s3.amazonaws.com/dependencies/vcpkg/qt5-install-5.12.3-windows3.tar.gz'
|
url = 'https://hifi-public.s3.amazonaws.com/dependencies/vcpkg/qt5-install-5.12.3-windows3.tar.gz'
|
||||||
elif platform.system() == 'Darwin':
|
elif platform.system() == 'Darwin':
|
||||||
url = 'https://hifi-public.s3.amazonaws.com/dependencies/vcpkg/qt5-install-5.12.3-macos3.tar.gz'
|
url = 'https://hifi-public.s3.amazonaws.com/dependencies/vcpkg/qt5-install-5.12.3-macos3.tar.gz'
|
||||||
elif platform.system() == 'Linux':
|
elif platform.system() == 'Linux':
|
||||||
if platform.linux_distribution()[1][:3] == '16.':
|
if platform.linux_distribution()[1][:3] == '16.':
|
||||||
url = 'https://hifi-public.s3.amazonaws.com/dependencies/vcpkg/qt5-install-5.12.3-ubuntu-16.04-with-symbols.tar.gz'
|
url = 'https://hifi-public.s3.amazonaws.com/dependencies/vcpkg/qt5-install-5.12.3-ubuntu-16.04-with-symbols.tar.gz'
|
||||||
elif platform.linux_distribution()[1][:3] == '18.':
|
elif platform.linux_distribution()[1][:3] == '18.':
|
||||||
url = 'https://hifi-public.s3.amazonaws.com/dependencies/vcpkg/qt5-install-5.12.3-ubuntu-18.04.tar.gz'
|
url = 'https://hifi-public.s3.amazonaws.com/dependencies/vcpkg/qt5-install-5.12.3-ubuntu-18.04.tar.gz'
|
||||||
else:
|
|
||||||
print('UNKNOWN LINUX VERSION!!!')
|
|
||||||
else:
|
else:
|
||||||
print('UNKNOWN OPERATING SYSTEM!!!')
|
print('UNKNOWN LINUX VERSION!!!')
|
||||||
|
|
||||||
print('Extracting ' + url + ' to ' + dest)
|
|
||||||
hifi_utils.downloadAndExtract(url, dest)
|
|
||||||
else:
|
else:
|
||||||
print ('Qt has already been downloaded')
|
print('UNKNOWN OPERATING SYSTEM!!!')
|
||||||
|
|
||||||
|
print('Extracting ' + url + ' to ' + dest)
|
||||||
|
hifi_utils.downloadAndExtract(url, dest)
|
||||||
|
else:
|
||||||
|
print ('Qt has already been downloaded')
|
||||||
|
|
|
@ -40,6 +40,9 @@ Rectangle {
|
||||||
property bool inventoryFullyReceived: false
|
property bool inventoryFullyReceived: false
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
var numTimesRun = Settings.getValue("simplifiedUI/SUIScriptExecutionCount", 0);
|
||||||
|
numTimesRun++;
|
||||||
|
Settings.setValue("simplifiedUI/SUIScriptExecutionCount", numTimesRun);
|
||||||
Commerce.getLoginStatus();
|
Commerce.getLoginStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +55,7 @@ Rectangle {
|
||||||
if ((MyAvatar.skeletonModelURL.indexOf("defaultAvatar") > -1 || MyAvatar.skeletonModelURL.indexOf("fst") === -1) &&
|
if ((MyAvatar.skeletonModelURL.indexOf("defaultAvatar") > -1 || MyAvatar.skeletonModelURL.indexOf("fst") === -1) &&
|
||||||
topBarInventoryModel.count > 0) {
|
topBarInventoryModel.count > 0) {
|
||||||
Settings.setValue("simplifiedUI/alreadyAutoSelectedAvatar", true);
|
Settings.setValue("simplifiedUI/alreadyAutoSelectedAvatar", true);
|
||||||
MyAvatar.skeletonModelURL = topBarInventoryModel.get(0).download_url;
|
MyAvatar.useFullAvatarURL = topBarInventoryModel.get(0).download_url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4144,6 +4144,7 @@ void MyAvatar::goToLocation(const glm::vec3& newPosition,
|
||||||
_goToOrientation = quatOrientation;
|
_goToOrientation = quatOrientation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resetLookAtRotation(_goToPosition, _goToOrientation);
|
||||||
emit transformChanged();
|
emit transformChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5996,6 +5997,7 @@ bool MyAvatar::pinJoint(int index, const glm::vec3& position, const glm::quat& o
|
||||||
}
|
}
|
||||||
|
|
||||||
slamPosition(position);
|
slamPosition(position);
|
||||||
|
resetLookAtRotation(position, orientation);
|
||||||
setWorldOrientation(orientation);
|
setWorldOrientation(orientation);
|
||||||
|
|
||||||
auto it = std::find(_pinnedJoints.begin(), _pinnedJoints.end(), index);
|
auto it = std::find(_pinnedJoints.begin(), _pinnedJoints.end(), index);
|
||||||
|
@ -6662,6 +6664,15 @@ void MyAvatar::resetHeadLookAt() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MyAvatar::resetLookAtRotation(const glm::vec3& avatarPosition, const glm::quat& avatarOrientation) {
|
||||||
|
// Align the look at values to the given avatar orientation
|
||||||
|
float yaw = safeEulerAngles(avatarOrientation).y;
|
||||||
|
_lookAtYaw = glm::angleAxis(yaw, avatarOrientation * Vectors::UP);
|
||||||
|
_lookAtPitch = Quaternions::IDENTITY;
|
||||||
|
_lookAtCameraTarget = avatarPosition + avatarOrientation * Vectors::FRONT;
|
||||||
|
resetHeadLookAt();
|
||||||
|
}
|
||||||
|
|
||||||
void MyAvatar::updateHeadLookAt(float deltaTime) {
|
void MyAvatar::updateHeadLookAt(float deltaTime) {
|
||||||
if (_skeletonModelLoaded) {
|
if (_skeletonModelLoaded) {
|
||||||
glm::vec3 lookAtTarget = _scriptControlsHeadLookAt ? _lookAtScriptTarget : _lookAtCameraTarget;
|
glm::vec3 lookAtTarget = _scriptControlsHeadLookAt ? _lookAtScriptTarget : _lookAtCameraTarget;
|
||||||
|
|
|
@ -2654,11 +2654,6 @@ private:
|
||||||
bool _scriptControlsHeadLookAt { false };
|
bool _scriptControlsHeadLookAt { false };
|
||||||
float _scriptHeadControlTimer { 0.0f };
|
float _scriptHeadControlTimer { 0.0f };
|
||||||
|
|
||||||
// LookAt camera data
|
|
||||||
float _selfieTriggerAngle { 55.0f };
|
|
||||||
float _frontLookAtSpeed { 0.15f };
|
|
||||||
float _backLookAtSpeed { 0.25f };
|
|
||||||
|
|
||||||
Setting::Handle<float> _realWorldFieldOfView;
|
Setting::Handle<float> _realWorldFieldOfView;
|
||||||
Setting::Handle<bool> _useAdvancedMovementControls;
|
Setting::Handle<bool> _useAdvancedMovementControls;
|
||||||
Setting::Handle<bool> _showPlayArea;
|
Setting::Handle<bool> _showPlayArea;
|
||||||
|
@ -2685,6 +2680,7 @@ private:
|
||||||
void initFlowFromFST();
|
void initFlowFromFST();
|
||||||
void updateHeadLookAt(float deltaTime);
|
void updateHeadLookAt(float deltaTime);
|
||||||
void resetHeadLookAt();
|
void resetHeadLookAt();
|
||||||
|
void resetLookAtRotation(const glm::vec3& avatarPosition, const glm::quat& avatarOrientation);
|
||||||
|
|
||||||
// Avatar Preferences
|
// Avatar Preferences
|
||||||
QUrl _fullAvatarURLFromPreferences;
|
QUrl _fullAvatarURLFromPreferences;
|
||||||
|
|
|
@ -50,6 +50,9 @@ ContextOverlayInterface::ContextOverlayInterface() {
|
||||||
_entityPropertyFlags += PROP_OWNING_AVATAR_ID;
|
_entityPropertyFlags += PROP_OWNING_AVATAR_ID;
|
||||||
|
|
||||||
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>().data();
|
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>().data();
|
||||||
|
/* REMOVING THIS AS AN EMERGENCY FIX. We will be returning to modify the code so that MP inspection is not intrusive in domains with a lot of certified content.
|
||||||
|
Jira bug to remove inspection temporarily: https://highfidelity.atlassian.net/browse/DEV-639
|
||||||
|
Jira bug to modify it and bring it back: https://highfidelity.atlassian.net/browse/DEV-645
|
||||||
connect(entityScriptingInterface, &EntityScriptingInterface::mousePressOnEntity, this, &ContextOverlayInterface::clickDownOnEntity);
|
connect(entityScriptingInterface, &EntityScriptingInterface::mousePressOnEntity, this, &ContextOverlayInterface::clickDownOnEntity);
|
||||||
connect(entityScriptingInterface, &EntityScriptingInterface::mouseReleaseOnEntity, this, &ContextOverlayInterface::mouseReleaseOnEntity);
|
connect(entityScriptingInterface, &EntityScriptingInterface::mouseReleaseOnEntity, this, &ContextOverlayInterface::mouseReleaseOnEntity);
|
||||||
connect(entityScriptingInterface, &EntityScriptingInterface::hoverEnterEntity, this, &ContextOverlayInterface::contextOverlays_hoverEnterEntity);
|
connect(entityScriptingInterface, &EntityScriptingInterface::hoverEnterEntity, this, &ContextOverlayInterface::contextOverlays_hoverEnterEntity);
|
||||||
|
@ -57,6 +60,7 @@ ContextOverlayInterface::ContextOverlayInterface() {
|
||||||
|
|
||||||
connect(&qApp->getOverlays(), &Overlays::hoverEnterOverlay, this, &ContextOverlayInterface::contextOverlays_hoverEnterOverlay);
|
connect(&qApp->getOverlays(), &Overlays::hoverEnterOverlay, this, &ContextOverlayInterface::contextOverlays_hoverEnterOverlay);
|
||||||
connect(&qApp->getOverlays(), &Overlays::hoverLeaveOverlay, this, &ContextOverlayInterface::contextOverlays_hoverLeaveOverlay);
|
connect(&qApp->getOverlays(), &Overlays::hoverLeaveOverlay, this, &ContextOverlayInterface::contextOverlays_hoverLeaveOverlay);
|
||||||
|
*/
|
||||||
|
|
||||||
connect(_tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"), &TabletProxy::tabletShownChanged, this, [&]() {
|
connect(_tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"), &TabletProxy::tabletShownChanged, this, [&]() {
|
||||||
if (_contextOverlayJustClicked && _hmdScriptingInterface->isMounted()) {
|
if (_contextOverlayJustClicked && _hmdScriptingInterface->isMounted()) {
|
||||||
|
|
|
@ -532,6 +532,11 @@ function onGeometryChanged(rect) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onWindowMinimizedChanged() {
|
||||||
|
// prerequisite placeholder for Reduce Friction of Customer Acquisition sub task: https://highfidelity.atlassian.net/browse/DEV-585
|
||||||
|
print("WINDOW MINIMIZED CHANGED SIGNAL");
|
||||||
|
}
|
||||||
|
|
||||||
function onDisplayModeChanged(isHMDMode) {
|
function onDisplayModeChanged(isHMDMode) {
|
||||||
if (isHMDMode) {
|
if (isHMDMode) {
|
||||||
Camera.setModeString("first person");
|
Camera.setModeString("first person");
|
||||||
|
@ -612,6 +617,7 @@ function startup() {
|
||||||
Audio.mutedDesktopChanged.connect(onDesktopInputDeviceMutedChanged);
|
Audio.mutedDesktopChanged.connect(onDesktopInputDeviceMutedChanged);
|
||||||
Audio.mutedHMDChanged.connect(onHMDInputDeviceMutedChanged);
|
Audio.mutedHMDChanged.connect(onHMDInputDeviceMutedChanged);
|
||||||
Window.geometryChanged.connect(onGeometryChanged);
|
Window.geometryChanged.connect(onGeometryChanged);
|
||||||
|
Window.minimizedChanged.connect(onWindowMinimizedChanged);
|
||||||
HMD.displayModeChanged.connect(onDisplayModeChanged);
|
HMD.displayModeChanged.connect(onDisplayModeChanged);
|
||||||
Audio.avatarGainChanged.connect(maybeUpdateOutputDeviceMutedOverlay);
|
Audio.avatarGainChanged.connect(maybeUpdateOutputDeviceMutedOverlay);
|
||||||
Audio.localInjectorGainChanged.connect(maybeUpdateOutputDeviceMutedOverlay);
|
Audio.localInjectorGainChanged.connect(maybeUpdateOutputDeviceMutedOverlay);
|
||||||
|
@ -657,6 +663,7 @@ function shutdown() {
|
||||||
Audio.mutedDesktopChanged.disconnect(onDesktopInputDeviceMutedChanged);
|
Audio.mutedDesktopChanged.disconnect(onDesktopInputDeviceMutedChanged);
|
||||||
Audio.mutedHMDChanged.disconnect(onHMDInputDeviceMutedChanged);
|
Audio.mutedHMDChanged.disconnect(onHMDInputDeviceMutedChanged);
|
||||||
Window.geometryChanged.disconnect(onGeometryChanged);
|
Window.geometryChanged.disconnect(onGeometryChanged);
|
||||||
|
Window.minimizedChanged.disconnect(onWindowMinimizedChanged);
|
||||||
HMD.displayModeChanged.disconnect(onDisplayModeChanged);
|
HMD.displayModeChanged.disconnect(onDisplayModeChanged);
|
||||||
Audio.avatarGainChanged.disconnect(maybeUpdateOutputDeviceMutedOverlay);
|
Audio.avatarGainChanged.disconnect(maybeUpdateOutputDeviceMutedOverlay);
|
||||||
Audio.localInjectorGainChanged.disconnect(maybeUpdateOutputDeviceMutedOverlay);
|
Audio.localInjectorGainChanged.disconnect(maybeUpdateOutputDeviceMutedOverlay);
|
||||||
|
|
Loading…
Reference in a new issue