AECgeeks / BIMsurfer2

MIT License
106 stars 25 forks source link

Tried to run the BIMsurfer2 under IIS server #5

Open webdada opened 3 years ago

webdada commented 3 years ago

Interesting, the following files do not exist on the file folder: ../bimsurfer/src/threeViewer/three.js etc.

<script type="text/javascript" src="../bimsurfer/src/threeViewer/OrbitControls.js"></script>
<script type="text/javascript" src="../bimsurfer/src/threeViewer/GLTFLoader.js"></script>

So I am not sure if anyone were able to run the gltf.html file on a web browser. http://localhost/examples/gltf.html

I got can not find three.js file javascript error. Now even after I copied the three.js and other js files from ../bimsurfer/lib folder over to ../bimsurfer/src/threeViewer folder, I still get "Three not defined" error.

OrbitControls.js:16 Uncaught ReferenceError: THREE is not defined at OrbitControls.js:16 (anonymous) @ OrbitControls.js:16 GLTFLoader.js:9 Uncaught ReferenceError: THREE is not defined at GLTFLoader.js:9

aothms commented 3 years ago

Ok, I guess that's an error in the repository. These files where recently move to the lib/ folder (where they should be). https://github.com/AECgeeks/BIMsurfer2/tree/master/bimsurfer/lib Will you send in a Pull Request?