|
@@ -38,7 +38,7 @@
|
|
|
|
|
|
<h2>Constructor</h2>
|
|
|
|
|
|
- <h3>[name]( )</h3>
|
|
|
+ <h3>[name]()</h3>
|
|
|
<div>
|
|
|
</div>
|
|
|
<div>
|
|
@@ -47,33 +47,34 @@
|
|
|
|
|
|
<h2>Methods</h2>
|
|
|
|
|
|
- <h3>[method:null parse]( [param:Object input], [param:Function onCompleted], [param:Object options] )</h3>
|
|
|
+ <h3>[method:null parse]( [param:Object3D input], [param:Function onCompleted], [param:Object options] )</h3>
|
|
|
<div>
|
|
|
[page:Object input] — Scenes or objects to export. Valid options:<br />
|
|
|
<ul>
|
|
|
<li>
|
|
|
Export scenes
|
|
|
<code>
|
|
|
- exporter.parse( scene1, ...)
|
|
|
-exporter.parse( [ scene1, scene2 ], ...)
|
|
|
+ exporter.parse( scene1, ... )
|
|
|
+ exporter.parse( [ scene1, scene2 ], ... )
|
|
|
</code>
|
|
|
</li>
|
|
|
<li>
|
|
|
- Export objects (It will create a new Scene to hold all the objects)
|
|
|
- <code>
|
|
|
- exporter.parse( object1, ...)
|
|
|
-exporter.parse( [ object1, object2 ], ...)
|
|
|
- </code>
|
|
|
+ Export objects (It will create a new Scene to hold all the objects)
|
|
|
+ <code>
|
|
|
+ exporter.parse( object1, ... )
|
|
|
+ exporter.parse( [ object1, object2 ], ... )
|
|
|
+ </code>
|
|
|
</li>
|
|
|
<li>
|
|
|
- Mix scenes and objects (It will export the scenes as usual but it will create a new scene to hold all the single objects).
|
|
|
- <code>
|
|
|
-exporter.parse( [ scene1, object1, object2, scene2 ], ...)
|
|
|
- </code>
|
|
|
+ Mix scenes and objects (It will export the scenes as usual but it will create a new scene to hold all the single objects).
|
|
|
+ <code>
|
|
|
+ exporter.parse( [ scene1, object1, object2, scene2 ], ... )
|
|
|
+ </code>
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
|
|
|
[page:Function onCompleted] — Will be called when the export completes. The argument will be the generated glTF JSON or binary ArrayBuffer.<br />
|
|
|
- [page:Options options] - Export options<br />
|
|
|
+ [page:Options options] — Export options<br />
|
|
|
<ul>
|
|
|
<li>trs - bool. Export position, rotation and scale instead of matrix per node. Default is false</li>
|
|
|
<li>onlyVisible - bool. Export only visible objects. Default is true.</li>
|
|
@@ -86,7 +87,7 @@ exporter.parse( [ scene1, object1, object2, scene2 ], ...)
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div>
|
|
|
- Generates a .gltf (JSON) or .glb (binary) output from the input (Scene or Objects)
|
|
|
+ Generates a .gltf (JSON) or .glb (binary) output from the input (Scenes or Objects)
|
|
|
</div>
|
|
|
|
|
|
<h2>Source</h2>
|