Use open-source openctm for commonly used 3D format Interchange

Source: Internet
Author: User

1. SupportedImportThe 3D formats include:

Openctm (. CTM), Stanford triangle format (. ply), stereolitography (. STL), 3D Studio (. 3DS), Collada (. DAE ),

Wavefront geometry file (. OBJ), Lightwave object (. lwo), geomview object file format (. Off)

2. SupportedExportThe 3D formats include:

Openctm (. CTM), Stanford triangle format (. ply), stereolitography (. STL), 3D Studio (. 3DS), Collada (. DAE ),

Wavefront geometry file (. OBJ), Lightwave object (. lwo), geomview object file format (. Off), fig 2.0 (. WRL)

3.Texture mapsFormat: JPEG, PNG

4. Use the command line toolCtmconv.exeBatch Conversion

Example: ctmconv Infinite-Level_02.3ds Infinite-Level_02.obj

The detailed parameters are as follows:

Usage: ctmconv infile OUTFILE [Options]

Options:

Data manipulation (all formats)
-- Scale Arg scale the mesh by a scalar factor.
-- Upaxis Arg set up axis (X, Y, Z,-X,-y,-z). If! = Z, the mesh will
Be flipped.
-- Flip Triangle Orientation.
-- Calc-normals if the source file does not contain any normals, calculate
Them.
-- No-normals do not export normals.
-- No-texcoords do not export texture coordinates.
-- No-colors do not export vertex colors.

Openctm output
-- Method Arg select compression method (raw, Mg1, Mg 2)
-- Level Arg set the compression level (0-9)

Openctm Mg 2 Method
-- Vprec Arg set vertex precision
-- Vprecrel Arg set vertex precision, relative Method
-- Nprec Arg set normal precision
-- Tprec Arg set texture map precision
-- Cprec Arg set color precision

Miscellaneous
-- Comment Arg set the file comment (default is to use the comment
From the input file, if any ).
-- Texfile Arg set the texture file name reference for the texture
(Default is to use the texture File Name Reference
From the input file, if any ).

Supported file formats:

Openctm (. CTM)
Stanford triangle format (. ply)
Stereolithography (. STL)
3D Studio (. 3DS)
Collada 1.4/1.5 (. DAE)
Wavefront geometry file (. OBJ)
Lightwave object (. lwo)
Geomview object file format (. Off)
Fig 2.0 (. WRL)-export only

 

For more information, see:Http://openctm.sourceforge.net/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.