anselm / aterrain

Exposes a few features of Cesium to AFrame
MIT License
100 stars 17 forks source link

Readme example gives Cesium error: asm.js not in std lib. #19

Open MilesMcBain opened 6 years ago

MilesMcBain commented 6 years ago

This example does not work:

<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
<script src="../js/aframe-orbit-controls-component.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/webpack-cesium/1.37.0/webpack.cesium.js"></script>
<script src="../../dist/aframe-aterrain-component.js"></script>
<a-scene>
<a-entity a-terrain="follow:0; fovpad:2; latitude:37; longitude:-122; radius:1000; elevation:580000"></a-entity>
<a-entity id="camera" camera="fov:45" mouse-cursor position="0 0 5000"></a-entity>
</a-scene>

I get an error about asm.js not being in stdlib. If replace with the built cesium in this repo, that error goes away - although the scene still does not work for me, see my other issue.

anselm commented 6 years ago

Yeah I don't know what asm.js is all about. Will look deeper.