|
@@ -91,43 +91,42 @@
|
|
|
[page:Function onLoad] — Will be called when parsed completes. The argument will be the parsed [page:Object3D object].<br /><br />
|
|
|
|
|
|
Parse a <em>JSON</em> structure and return a threejs object.
|
|
|
- This is used internally by [page:.load], but can also be used directly to parse
|
|
|
- a previously loaded JSON structure.
|
|
|
+ This is used internally by [page:.load]() but can also be used directly to parse a previously loaded JSON structure.
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:Object3D parseGeometries]( [param:Object json] )</h3>
|
|
|
<p>
|
|
|
[page:Object json] — required. The JSON source to parse.<br /><br />
|
|
|
|
|
|
- This is used [page:.parse] to parse any [page:Geometry geometries] or [page:BufferGeometry buffer geometries] in the JSON structure.
|
|
|
+ This is used by [page:.parse]() to parse any [page:Geometry geometries] or [page:BufferGeometry buffer geometries] in the JSON structure.
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:Object3D parseMaterials]( [param:Object json] )</h3>
|
|
|
<p>
|
|
|
[page:Object json] — required. The JSON source to parse.<br /><br />
|
|
|
|
|
|
- This is used [page:.parse] to parse any materials in the JSON structure using [page:MaterialLoader].
|
|
|
+ This is used by [page:.parse]() to parse any materials in the JSON structure using [page:MaterialLoader].
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:Object3D parseAnimations]( [param:Object json] )</h3>
|
|
|
<p>
|
|
|
[page:Object json] — required. The JSON source to parse.<br /><br />
|
|
|
|
|
|
- This is used [page:.parse] to parse any animations in the JSON structure, using [page:AnimationClip.parse].
|
|
|
+ This is used by [page:.parse]() to parse any animations in the JSON structure, using [page:AnimationClip.parse]().
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:Object3D parseImages]( [param:Object json] )</h3>
|
|
|
<p>
|
|
|
[page:Object json] — required. The JSON source to parse.<br /><br />
|
|
|
|
|
|
- This is used [page:.parse] to parse any images in the JSON structure, using [page:ImageLoader].
|
|
|
+ This is used by [page:.parse]() to parse any images in the JSON structure, using [page:ImageLoader].
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:Object3D parseTextures]( [param:Object json] )</h3>
|
|
|
<p>
|
|
|
[page:Object json] — required. The JSON source to parse.<br /><br />
|
|
|
|
|
|
- This is used [page:.parse] to parse any textures in the JSON structure.
|
|
|
+ This is used by [page:.parse]() to parse any textures in the JSON structure.
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:Object3D parseObject]( [param:Object json], [param:BufferGeometry geometries], [param:Material materials], [param:AnimationClip animations] )</h3>
|
|
@@ -137,63 +136,7 @@
|
|
|
[page:Material materials] — required. The materials of the JSON.<br />
|
|
|
[page:AnimationClip animations] — required. The animations of the JSON.<br /><br />
|
|
|
|
|
|
- This is used [page:.parse] to parse any objects in the JSON structure.
|
|
|
- Objects can be of the following types:
|
|
|
-
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- [page:Scene]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:PerspectiveCamera]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:OrthographicCamera]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:AmbientLight]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:DirectionalLight]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:PointLight]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:SpotLight]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:HemisphereLight]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:LightProbe]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:Mesh]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:LOD]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:Line]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:LineSegments]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:Points]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:Sprite]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:Group]
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- [page:Object3D]
|
|
|
- </li>
|
|
|
-
|
|
|
- </ul>
|
|
|
+ This is used by [page:.parse]() to parse any 3D objects in the JSON structure.
|
|
|
</p>
|
|
|
|
|
|
<h2>Source</h2>
|