diff --git a/docs/examples/en/exporters/ColladaExporter.html b/docs/examples/en/exporters/ColladaExporter.html index 1cf836b8f51756..82b352f95e1737 100644 --- a/docs/examples/en/exporters/ColladaExporter.html +++ b/docs/examples/en/exporters/ColladaExporter.html @@ -12,7 +12,7 @@

[name]

An exporter for *Collada*.

- Collada is a + Collada is a file format for robust representation of scenes, materials, animations, and other 3D content in an xml format. This exporter only supports exporting geometry, materials, textures, and scene hierarchy.

diff --git a/docs/examples/en/exporters/EXRExporter.html b/docs/examples/en/exporters/EXRExporter.html index 08e9939373d6b8..b9d76a8ac8234e 100644 --- a/docs/examples/en/exporters/EXRExporter.html +++ b/docs/examples/en/exporters/EXRExporter.html @@ -12,8 +12,8 @@

[name]

An exporter for *EXR*.

- EXR ( Extended Dynamic Range) is an - open format specification + EXR ( Extended Dynamic Range) is an + open format specification for professional-grade image storage format of the motion picture industry. The purpose of format is to accurately and efficiently represent high-dynamic-range scene-linear image data and associated metadata. The library is widely used in host application software where accuracy @@ -73,4 +73,4 @@

Source

[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/exporters/EXRExporter.js examples/jsm/exporters/EXRExporter.js]

- \ No newline at end of file + diff --git a/docs/examples/en/exporters/GLTFExporter.html b/docs/examples/en/exporters/GLTFExporter.html index 0058b3e8795bba..f972e74da9e187 100644 --- a/docs/examples/en/exporters/GLTFExporter.html +++ b/docs/examples/en/exporters/GLTFExporter.html @@ -12,8 +12,8 @@

[name]

An exporter for *glTF* 2.0.

- glTF (GL Transmission Format) is an - open format specification + glTF (GL Transmission Format) is an + open format specification for efficient delivery and loading of 3D content. Assets may be provided either in JSON (.gltf) or binary (.glb) format. External files store textures (.jpg, .png) and additional binary data (.bin). A glTF asset may deliver one or more scenes, including meshes, materials, diff --git a/docs/examples/en/exporters/OBJExporter.html b/docs/examples/en/exporters/OBJExporter.html new file mode 100644 index 00000000000000..ea36d3e78254fe --- /dev/null +++ b/docs/examples/en/exporters/OBJExporter.html @@ -0,0 +1,55 @@ + + + + + + + + + +

[name]

+ +

+ An exporter for the OBJ file format. +

+

+ [name] is not able to export material data into MTL files so only geoemtry data are supported. +

+ +

Code Example

+ + + // Instantiate an exporter + const exporter = new OBJExporter(); + + // Parse the input and generate the OBJ output + const data = exporter.parse( scene ); + downloadFile( data ); + + +

Constructor

+ +

[name]()

+

+

+

+ Creates a new [name]. +

+ +

Methods

+ +

[method:String parse]( [param:Object3D object] )

+

+ [page:Object object] — Object3D to be exported. +

+

+ Generates a string holding the OBJ data. +

+ +

Source

+ +

+ [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/exporters/OBJExporter.js examples/jsm/exporters/OBJExporter.js] +

+ + diff --git a/docs/examples/en/exporters/PLYExporter.html b/docs/examples/en/exporters/PLYExporter.html index 0f9c958f461bbf..387adb225a2d26 100644 --- a/docs/examples/en/exporters/PLYExporter.html +++ b/docs/examples/en/exporters/PLYExporter.html @@ -12,7 +12,7 @@

[name]

An exporter for *PLY*.

- PLY (Polygon or Stanford Triangle Format) is a + PLY (Polygon or Stanford Triangle Format) is a file format for efficient delivery and loading of simple, static 3D content in a dense format. Both binary and ascii formats are supported. PLY can store vertex positions, colors, normals and uv coordinates. No textures or texture references are saved. diff --git a/docs/examples/zh/exporters/ColladaExporter.html b/docs/examples/zh/exporters/ColladaExporter.html index 2371ab785f01a8..415f1afcd30331 100644 --- a/docs/examples/zh/exporters/ColladaExporter.html +++ b/docs/examples/zh/exporters/ColladaExporter.html @@ -12,7 +12,7 @@

[name]

An exporter for *Collada*.

- Collada is a + Collada is a file format for robust representation of scenes, materials, animations, and other 3D content in an xml format. This exporter only supports exporting geometry, materials, textures, and scene hierarchy.

diff --git a/docs/examples/zh/exporters/GLTFExporter.html b/docs/examples/zh/exporters/GLTFExporter.html index 2b80c0fa44643c..7ca8fe16adf017 100644 --- a/docs/examples/zh/exporters/GLTFExporter.html +++ b/docs/examples/zh/exporters/GLTFExporter.html @@ -12,8 +12,8 @@

[name]

An exporter for *glTF* 2.0.

- glTF (GL Transmission Format) is an - open format specification + glTF (GL Transmission Format) is an + open format specification for efficient delivery and loading of 3D content. Assets may be provided either in JSON (.gltf) or binary (.glb) format. External files store textures (.jpg, .png) and additional binary data (.bin). A glTF asset may deliver one or more scenes, including meshes, materials, diff --git a/docs/examples/zh/exporters/PLYExporter.html b/docs/examples/zh/exporters/PLYExporter.html index d1fcf55410d999..ccb451f98dce91 100644 --- a/docs/examples/zh/exporters/PLYExporter.html +++ b/docs/examples/zh/exporters/PLYExporter.html @@ -12,7 +12,7 @@

[name]

An exporter for *PLY*.

- PLY (Polygon or Stanford Triangle Format) is a + PLY (Polygon or Stanford Triangle Format) is a file format for efficient delivery and loading of simple, static 3D content in a dense format. Both binary and ascii formats are supported. PLY can store vertex positions, colors, normals and uv coordinates. No textures or texture references are saved. diff --git a/docs/list.json b/docs/list.json index db6839bc580dfa..bb98e983e8fcb5 100644 --- a/docs/list.json +++ b/docs/list.json @@ -389,10 +389,11 @@ }, "Exporters": { - "GLTFExporter": "examples/en/exporters/GLTFExporter", - "PLYExporter": "examples/en/exporters/PLYExporter", "ColladaExporter": "examples/en/exporters/ColladaExporter", - "EXRExporter": "examples/en/exporters/EXRExporter" + "EXRExporter": "examples/en/exporters/EXRExporter", + "GLTFExporter": "examples/en/exporters/GLTFExporter", + "OBJExporter": "examples/en/exporters/OBJExporter", + "PLYExporter": "examples/en/exporters/PLYExporter" }, "Math": { @@ -885,9 +886,9 @@ }, "导出器": { + "ColladaExporter": "examples/zh/exporters/ColladaExporter", "GLTFExporter": "examples/zh/exporters/GLTFExporter", - "PLYExporter": "examples/zh/exporters/PLYExporter", - "ColladaExporter": "examples/zh/exporters/ColladaExporter" + "PLYExporter": "examples/zh/exporters/PLYExporter" }, "数学库": {