Git Product home page Git Product logo

Comments (10)

haydenjameslee avatar haydenjameslee commented on May 14, 2024 1

Done! Check it out: https://github.com/haydenjameslee/networked-aframe/blob/master/docs/hosting-networked-aframe-on-a-server.md

from networked-aframe.

haydenjameslee avatar haydenjameslee commented on May 14, 2024

Planning on doing a post like this with a variety of platforms. In the meantime check out glitch: https://glitch.com/~networked-aframe

You can 'remix' that project which lets you host and control an instance on their servers.

from networked-aframe.

UXVirtual avatar UXVirtual commented on May 14, 2024

Hey @haydenjameslee just trying your glitch example out at https://networked-aframe.glitch.me/ on Chrome and it doesn't seem to connect to the node.js server. Works fine in Firefox though.

from networked-aframe.

haydenjameslee avatar haydenjameslee commented on May 14, 2024

Its working for me. Could you post logs?

from networked-aframe.

UXVirtual avatar UXVirtual commented on May 14, 2024

Here are the logs from Chrome.

First Tab:

A-Frame Version: 0.5.0 (Date 10-02-2017, Commit #110055d)
index.js:74 three Version: ^0.83.0
index.js:75 WebVR Polyfill Version: dmarcos/webvr-polyfill#a02a8089b
browser.js:117 core:propertyTypes:warn `src` property type is deprecated. Use `asset` instead. +0ms
three.js:19590 THREE.WebGLRenderer 83
networked-aframe.min.js:2 Networked-Aframe Connecting...
networked-aframe.min.js:2 Networked-Aframe Client ID: 6eDrrDyhu0ARBEDH
networked-aframe.min.js:2 Created network entity s0lrdjm
networked-aframe.min.js:1 <a-entity class="avatar">
            <a-sphere class="head"
              color="#5985ff"
              scale="0.45 0.5 0.4"
              random-color
            ></a-sphere>
            <a-entity class="face"
              position="0 0.05 0"
            >
              <a-sphere class="eye"
                color="#efefef"
                position="0.16 0.1 -0.35"
                scale="0.12 0.12 0.12"
              >
                <a-sphere class="pupil"
                  color="#000"
                  position="0 0 -1"
                  scale="0.2 0.2 0.2"
                ></a-sphere>
              </a-sphere>
              <a-sphere class="eye"
                color="#efefef"
                position="-0.16 0.1 -0.35"
                scale="0.12 0.12 0.12"
              >
                <a-sphere class="pupil"
                  color="#000"
                  position="0 0 -1"
                  scale="0.2 0.2 0.2"
                ></a-sphere>
              </a-sphere>
            </a-entity>
            <a-entity class="gun">
              <a-box
                position="0.51 -0.13 -0.29"
                scale="0.19 0.23 0.67"
                color="#000"
              ></a-box>
              <a-entity class="gun-tip"
                position="0.51 -0.10 -0.64"
              ></a-entity>
            </a-entity>
          </a-entity>
networked-aframe.min.js:1 Object__proto__: Objectconstructor: function Object()hasOwnProperty: function hasOwnProperty()isPrototypeOf: function isPrototypeOf()propertyIsEnumerable: function propertyIsEnumerable()toLocaleString: function toLocaleString()toString: function toString()valueOf: function valueOf()__defineGetter__: function __defineGetter__()__defineSetter__: function __defineSetter__()__lookupGetter__: function __lookupGetter__()__lookupSetter__: function __lookupSetter__()get __proto__: function __proto__()set __proto__: function __proto__()
/favicon.ico Failed to load resource: the server responded with a status of 404 ()

Second Tab:

A-Frame Version: 0.5.0 (Date 10-02-2017, Commit #110055d)
index.js:74 three Version: ^0.83.0
index.js:75 WebVR Polyfill Version: dmarcos/webvr-polyfill#a02a8089b
browser.js:117 core:propertyTypes:warn `src` property type is deprecated. Use `asset` instead. +0ms
three.js:19590 THREE.WebGLRenderer 83
networked-aframe.min.js:2 Networked-Aframe Connecting...
networked-aframe.min.js:2 Networked-Aframe Client ID: EiHwrGtxUFdGTKwu
networked-aframe.min.js:2 Created network entity m79bgqh
networked-aframe.min.js:1 <a-entity class="avatar">
            <a-sphere class="head"
              color="#5985ff"
              scale="0.45 0.5 0.4"
              random-color
            ></a-sphere>
            <a-entity class="face"
              position="0 0.05 0"
            >
              <a-sphere class="eye"
                color="#efefef"
                position="0.16 0.1 -0.35"
                scale="0.12 0.12 0.12"
              >
                <a-sphere class="pupil"
                  color="#000"
                  position="0 0 -1"
                  scale="0.2 0.2 0.2"
                ></a-sphere>
              </a-sphere>
              <a-sphere class="eye"
                color="#efefef"
                position="-0.16 0.1 -0.35"
                scale="0.12 0.12 0.12"
              >
                <a-sphere class="pupil"
                  color="#000"
                  position="0 0 -1"
                  scale="0.2 0.2 0.2"
                ></a-sphere>
              </a-sphere>
            </a-entity>
            <a-entity class="gun">
              <a-box
                position="0.51 -0.13 -0.29"
                scale="0.19 0.23 0.67"
                color="#000"
              ></a-box>
              <a-entity class="gun-tip"
                position="0.51 -0.10 -0.64"
              ></a-entity>
            </a-entity>
          </a-entity>
networked-aframe.min.js:1 Object

from networked-aframe.

caseyyee avatar caseyyee commented on May 14, 2024

I made a newb friendly boilerplate that'll get you up and running super quickly:
https://github.com/caseyyee/aframe-multiuser-boilerplate

It's deployable to heroku by simply following the instructions when you create a new app. You can also follow the CLI instructions here: https://devcenter.heroku.com/articles/git

I have it deployed here:
http://aframe-multiuser-boilerplate.herokuapp.com/

Hopefully this helps!

from networked-aframe.

haydenjameslee avatar haydenjameslee commented on May 14, 2024

You're a legend @caseyyee!

from networked-aframe.

caseyyee avatar caseyyee commented on May 14, 2024

Naw, thank you for a great component :)

from networked-aframe.

Utopiah avatar Utopiah commented on May 14, 2024

Here is the example with broadcastData/subscribeToDataChannel added and testable here to send and here to receive, messages in the console.

from networked-aframe.

dackdel avatar dackdel commented on May 14, 2024

thank you !!

from networked-aframe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.