可可西

使用开源OpenCTM进行常用三维格式互导

1. 支持导入的三维格式有:

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. 支持导出的三维格式有:

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)、VRML 2.0(.wrl)

3. 纹理贴图格式:JPEG、PNG

4. 使用命令行工具ctmconv.exe进行批量转换

示例:ctmconv Infinite-Level_02.3ds Infinite-Level_02.obj

详细参数如下:

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 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, MG2)
--level arg Set the compression level (0 - 9)

OpenCTM MG2 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)
VRML 2.0 (.wrl) - export only

 

更多请参考:http://openctm.sourceforge.net/

posted on   可可西  阅读(4516)  评论(2编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)

导航

统计信息

点击右上角即可分享
微信分享提示