-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
31 lines (20 loc) · 1.59 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
This 3D model viewer began life as some example on the threejs website.
I do not consider this viewer *safe* so use at your own risk.
It is mostly based on the webgl_loader_amf.html example even though I implemented STL model support first. It had the general look I was going for.
3DModel_viewer.html currently only supports one parameter ("model"), which you can use to pass in a model to view. If you don't pass in a model parameter is will display the dust filter stl from the Mendel90 3D printer.
https://raw.githubusercontent.com/nophead/Mendel90/master/dibond_E3D/stls/dust_filter.stl
If you want to test a different model, pass the model url with the model parameter. The model URL must use "HTTP/HTTPS". You can't load model files from your local filesystem using "file:///" but you can load the 3DModel_viewer.html file using "file:///".
Here are the models I have been testing with:
3DModel_viewer.html?model=https://raw.githubusercontent.com/nophead/Mendel90/master/dibond_E3D/stls/dust_filter.stl
3DModel_viewer.html?model=https://threejs.org/examples/models/amf/rook.amf
3DModel_viewer.html?model=https://threejs.org/examples/models/gcode/benchy.gcode
3DModel_viewer.html?model=https://threejs.org/examples/models/gltf/DamagedHelmet/glTF/DamagedHelmet.gltf
The viewer only supports stl, amf, gcode, and gltf models at the moment and possibly not well. :)
Currently supported query string parameters
- model
Pass in a model URL to view
- zup
Change orientation from standard Z is depth to Z is height.
- center
Controls the automatic centering of a model.
Currently we enable centering by default.