woodedlawn / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

How to load stl file in browser #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hii.

I am new to javascript please suggest me code to load stl file .I read previous 
problems and solution but doesnot get clear idea. Plz help me out?

Original issue reported on code.google.com by aswanipo...@gmail.com on 19 Nov 2013 at 5:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
That's quite easy.

1) Follow this document http://code.google.com/p/jsc3d/wiki/GettingStarted to 
build a simplest runnable demo, setting 'SceneUrl' parameter with the relative 
path of your stl model file.

2) Setup a web server and deploy the demo as well as the stl files on it.

3) Access it using your browser (it must support HTML5) as a common html page.

If you uses Chrome and just want to test it locally without a server, follow 
this discussion 
http://stackoverflow.com/questions/4819060/allow-google-chrome-to-use-xmlhttpreq
uest-to-load-a-url-from-a-local-file to launch your browser in the right way.

Original comment by Humu2...@gmail.com on 19 Nov 2013 at 6:02