Giter Club home page Giter Club logo

Comments (21)

jbaicoianu avatar jbaicoianu commented on July 28, 2024 2

By the way there is another much simpler way to use JanusWeb which does not require you to install and build the source code. You can simply add this to the same HTML file which has your <FireBoxRoom> code:

<script src="https://janusweb.metacade.com/janusweb.js"></script>

This will automatically launch JanusWeb when the page is loaded.

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024 1

Hi ;D
thanks for the fast answer ;D

Greetings
Bogus

from janusweb.

jbaicoianu avatar jbaicoianu commented on July 28, 2024 1

Oh, looks like node-canvas still uses the legacy nodejs binary name. Try apt-get install nodejs-legacy

from janusweb.

jbaicoianu avatar jbaicoianu commented on July 28, 2024 1

@BogusCurry take a look at http://janusvr.com/guide/building.html#http://janusvr.com/notes.html - this shows you how to create a FireBoxRoom, and has a few examples. Just add the <script> tag fro above at the end of the file and you should be good to go.

from janusweb.

jbaicoianu avatar jbaicoianu commented on July 28, 2024 1

Ahh, now you're hitting some fun bugs :)

Two problems, one is my fault - I forgot one line above, you'll also need to add this additional line after the first script tag:

<script>elation.janusweb.init()</script>

The second problem is that JanusVR's FireBoxRoom markup is XML, but since it's embedded inside of an HTML page the browser is doing some manipulation to try to turn it into "valid" HTML before JanusWeb can read it. However, after the browser does that, the markup is no longer valid XML, so it can't be parsed.

The solution is to enclose your <FireBoxRoom> markup in an HTML comment, like this:

<!--
<FireBoxRoom>
  ...
</FireBoxRoom>
-->

The JanusVR team is working on a v2.0 of their markup which will integrate better with HTML, but until they do this is an easy work-around.

from janusweb.

jbaicoianu avatar jbaicoianu commented on July 28, 2024

Hi Bogus,
First step is to check out all the dependencies and build a release version. This is covered in the wiki - https://github.com/jbaicoianu/janusweb/wiki - just two npm commands are necessary.

Once it is built, you just need to make the build/ directory available somewhere, this does not require node.js if you have an existing HTTP server running - just put the files somewhere web-accessible.

If you're starting from scratch and don't have an existing webserver, you could use https://www.npmjs.com/package/http-server to serve the static files by running http-server build/

from janusweb.

jbaicoianu avatar jbaicoianu commented on July 28, 2024

No problem, let me know how it works out for you.

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024

Hmm .. I have nginx installed and run fine, but when I make npm install in the folder janusweb, so comes this
http://paste.md-5.net/valowoxitu.hs

I have run the command with sudo What make I wrong ?

from janusweb.

jbaicoianu avatar jbaicoianu commented on July 28, 2024

Seems like some package might be missing from your build environment. You might have to run "apt-get install build-dependencies" if you've never done this before (assuming Debian, based on your logs)

Once those packages are installed, you should't need sudo to run the build command.

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024

I use Ubuntu 14.04 and can't install the package.

from janusweb.

jbaicoianu avatar jbaicoianu commented on July 28, 2024

Sorry my bad - it's apt-get install build-essential

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024

Ahh ok .. np ;D
When I will install this package, comes this
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
build-essential set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I not know, but can maybe I have install a wrong version from node.js ?
See here
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok

from janusweb.

jbaicoianu avatar jbaicoianu commented on July 28, 2024

Hmm. If you already have build-essential maybe you also need libcairo2-dev and libfreetype6-dev. If those don't work, maybe check the node-canvas project page and see if they have any info on this, I seem to remember this being a common problem for others.

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024

Puhh .. Ok I have now 2 errors ? when I make npm install .. see here .. http://paste.md-5.net/pivugikofu.vbs
On the projekt-page of node-canvas has I found this Automattic/node-canvas#788 But I now know, is that the same problem that I have and second is very difficult to understand, so englisch is not my motherlanguage.
I see in the messages that the script not found two node modules ?

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024

Ok, the install runs now, when I make a build comes this http://paste.md-5.net/xikedoyaje.hs

I see is a very hard way, this software to use .. lol
Here is my config.js http://paste.md-5.net/rimagamasa.vhdl

from janusweb.

jbaicoianu avatar jbaicoianu commented on July 28, 2024

Sorry you're having difficulties, but I think so far it's all been node-canvas's fault, and the fact that your system was missing some dependencies.

Now that you have those, I'd suggest retrying the build steps from the beginning - it seems that something just didn't get set up right the first time through.

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024

yes, I will install over weekend janusweb local on my pc under linux ;D

Have a nice day ;D

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024

Thats great ;D Thanks for your wonderful support ;D

Have a very nice Day ;D

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024

Hello ;D
can you me give a example for a room with the FireBoxRoom ?

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024

@jbaicoianu Here is my 3D Room with JanusWeb, but I see a white site .... see you more as I ?

http://bogus.as4u.de/janusweb/index.html

from janusweb.

BogusCurry avatar BogusCurry commented on July 28, 2024

Ok, thanks for your support and the patience ;D I see now objects .. lol ;D

from janusweb.

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.