Comments (21)
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.
Hi ;D
thanks for the fast answer ;D
Greetings
Bogus
from janusweb.
Oh, looks like node-canvas still uses the legacy nodejs binary name. Try apt-get install nodejs-legacy
from janusweb.
@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.
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.
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.
No problem, let me know how it works out for you.
from janusweb.
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.
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.
I use Ubuntu 14.04 and can't install the package.
from janusweb.
Sorry my bad - it's apt-get install build-essential
from janusweb.
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.
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.
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.
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.
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.
yes, I will install over weekend janusweb local on my pc under linux ;D
Have a nice day ;D
from janusweb.
Thats great ;D Thanks for your wonderful support ;D
Have a very nice Day ;D
from janusweb.
Hello ;D
can you me give a example for a room with the FireBoxRoom ?
from janusweb.
@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.
Ok, thanks for your support and the patience ;D I see now objects .. lol ;D
from janusweb.
Related Issues (20)
- Issue installing from source Windows HOT 6
- Updated UI
- New homepage
- Release announcement article
- iOS support HOT 2
- Revisit PWA support HOT 4
- Objects loaded before skybox don't set envMap HOT 1
- edit: unable to spawn primitives HOT 1
- Edit mode: debug view stays on
- Edit mode: inspector doesn't update new assets HOT 1
- Edit mode: Improved source editor HOT 3
- Virtual filesystem support
- Edit mode: transform controls doesn't work with pointerlock HOT 1
- npm install issues HOT 4
- Install issues from default docs HOT 2
- npm install --only=prod ERR! what's problem?Thanks HOT 3
- Failed at the [email protected] postinstall script?Thanks HOT 1
- @v1.5.42: physics failing after teleport via portal walkthrough
- v1.5.42(under chrome) ::: adding objects from visual editor while in edit mode is causing room to freeze, very often
- project uses uglify-es but it's abandoned and seems like uglify-js should be used to make it work again
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from janusweb.