summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-11-16 00:03:47 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-11-16 00:03:47 (GMT)
commit938befbf5dc08cc658d058cd2581314269bf4a27 (patch)
treeaef7d6cc68d2adfd32657127cfa956e2b17b65b3 /apps
parentfd6e7f5b7837363d043dc340d22a6fe4c2b8e554 (diff)
downloaduscxml-938befbf5dc08cc658d058cd2581314269bf4a27.zip
uscxml-938befbf5dc08cc658d058cd2581314269bf4a27.tar.gz
uscxml-938befbf5dc08cc658d058cd2581314269bf4a27.tar.bz2
Fixed issues with imageFormat suffix
Diffstat (limited to 'apps')
-rw-r--r--apps/samples/vrml/viewer-webgl.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/samples/vrml/viewer-webgl.js b/apps/samples/vrml/viewer-webgl.js
index e0827d9..aa98761 100644
--- a/apps/samples/vrml/viewer-webgl.js
+++ b/apps/samples/vrml/viewer-webgl.js
@@ -30,11 +30,11 @@ function VRMLViewer(element, params) {
this.pose = pose;
}
- this.enableMovies = true;
+ this.enableMovies = false;
this.enableDND = true;
- this.enableWebGL = false;
- this.enableSceneshots = true;
- this.enableDraggables = true;
+ this.enableWebGL = true;
+ this.enableSceneshots = false;
+ this.enableDraggables = false;
this.treeNavigationStyle = true;
this.listNavigationStyle = true;
this.listDirectory = "";
@@ -99,7 +99,7 @@ function VRMLViewer(element, params) {
if (!self.imagePath)
self.imagePath = self.listDirectory + "latest";
- if (!self.imageFormat.substring(0, 1) != ".")
+ if (!self.imageFormat.substring(0, 1) == ".")
self.imageFormat = "." + self.imageFormat;
}
normalizeParams();
@@ -171,7 +171,7 @@ function VRMLViewer(element, params) {
osgDB.Promise.when(getWebGLModel(self.serverURL + self.imagePath + '.osgjs')).then(function(model) {
self.webGLViewer.setSceneData(model);
if (!webGLManipulatorsSetup) {
- self.webGLViewer.setupManipulator();
+ self.webGLViewer.setupManipulator(new osgGA.OrbitManipulator(), false);
self.webGLViewer.getManipulator().computeHomePosition();
}
webGLManipulatorsSetup = true;
@@ -711,9 +711,9 @@ function VRMLViewer(element, params) {
avatarPose.width=60;
avatarPose.height=60;
var avatarImgUrl = urlSuffixForPose(avatarPose);
- avatar.innerHTML = '<img src=' + self.imagePath + self.imageFormat + avatarImgUrl + ' /> ';
+ avatar.innerHTML = '<img src=' + self.serverURL + self.imagePath + self.imageFormat + avatarImgUrl + ' /> ';
item.srcEcc = "VRMLViewer";
- item.iconPoseUrl = self.imagePath + self.imageFormat + avatarImgUrl;
+ item.iconPoseUrl = self.serverURL + self.imagePath + self.imageFormat + avatarImgUrl;
item.imagePath = self.imagePath;
item.imageFormat = self.imageFormat;
item.serverURL = self.serverURL;
@@ -826,7 +826,7 @@ function VRMLViewer(element, params) {
if (enable) {
array.forEach(dojo.query(".treeNavigation", element), function(entry, i) {
- entry.style.display = "inline";
+ entry.style.display = "";
});
if (!self.fileTreeStore) {