Closed joaomilho closed 8 years ago
That HTML page is missing a file, it needs to include mathdevice.js:
<script src="jslib/webgl/mathdevice.js"></script>
I will fix the README.
Readme updated. Will be included in next Open Source release.
Also following the readme, same error but with something extra before it:
Looking true the code it seems the include order of the javascript files is off ?
Fails:
<script src="jslib/webgl/turbulenzengine.js"></script>
<script src="jslib/webgl/graphicsdevice.js"></script>
<script src="jslib/webgl/inputdevice.js"></script>
<script src="jslib/webgl/sounddevice.js"></script>
<script src="jslib/webgl/mathdevice.js"></script>
...
<script src="jslib/vmath.js"></script>
Works:
...
<script src="jslib/vmath.js"></script>
<script src="jslib/webgl/turbulenzengine.js"></script>
<script src="jslib/webgl/graphicsdevice.js"></script>
<script src="jslib/webgl/inputdevice.js"></script>
<script src="jslib/webgl/sounddevice.js"></script>
<script src="jslib/webgl/mathdevice.js"></script>
Might be that the includes need to happen even later, first time user so not sure if the changes to include order correct now.
same problem here, NemoPersona solution worked for me.
I moved "script src="jslib/vmath.js"></script" like he said, but this will cause any another problem?
Indeed the vmath include should be further up. I've updated the README. Closing for now. Thanks guys.
Just followed the tutorial in the README and I have positive results in the first 2 examples (yellow canvas and spinning wood box). In the third one I have a black screen and this in my JS Console (Chrome):
There is no 404 on any JS file, and yes, I'm accessing the file through the python simple http server. Attached the HTML anyway.
Any idea?
(The HTML below just in case)