-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: f55244a6344fcf6b02ae481ffc4e2937b17508b2:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit f55244a6344fcf6b02ae481ffc4e2937b17508b2
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Sun Dec 2 01:32:45 2018 -0800

    Player self-avatar

diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js

index c5a19e2a262d784d2d0425a418f3dec019c1e9bb..

index ..3a731c74d041a0de18ec41da4fe9082ec5155843 100644

--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -128,7 +128,8 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
       if (avatar) {
         this.ghost = this.createObject('ghost', {
           ghost_id: this.getUsername(),
-          avatar_src: 'data:text/plain,' + avatar
+          avatar_src: 'data:text/plain,' + encodeURIComponent(avatar),
+          showlabel: false
         });
       }

@@ -264,16 +265,15 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
             }
           }
         }
-      }
-
-      if (this.ghost) {
-        if (this.ghost.head) {
-          this.ghost.head.position.copy(this.head.position);
-          this.ghost.head.orientation.copy(this.head.orientation).multiply(this.neck.orientation);
-        }
-        if (this.ghost.body) {
-          this.ghost.body.position.copy(this.body.position);
-          this.ghost.body.orientation.copy(this.body.orientation);
+        if (this.ghost) {
+          if (this.ghost._target.head) {
+            //this.ghost._target.face.position.copy(this.head.position);
+            //this.ghost._target.face.orientation.copy(this.head.orientation).multiply(this.neck.orientation);
+          }
+          if (this.ghost._target.body) {
+            //this.ghost._target.body.position.copy(this.body.position);
+            //this.ghost._target.body.orientation.copy(this.body.orientation);
+          }
         }
       }
     })();
@@ -531,7 +531,8 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
       let avatardata = this.getAvatarData();
       this.ghost = this.createObject('ghost', {
         ghost_id: this.getUsername(),
-        avatar_src: 'data:text/plain,' + avatardata
+        avatar_src: 'data:text/plain,' + encodeURIComponent(avatardata),
+        showlabel: false
       });

       return setting;

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 17:14:56 2024