3D-Tiles 转换工具集使用教程

3D-Tiles 转换工具集使用教程

3dtiles The fastest tools for 3dtiles convert in the world! 3dtiles 项目地址: https://gitcode.com/gh_mirrors/3d/3dtiles

1. 项目介绍

3D-Tiles 转换工具集是一个高效快速的3D-Tiles生产工具。它提供了多种子工具,可以将不同的数据格式转换为3D-Tiles格式,这些格式包括:

  • Osgb(OpenSceneGraph Binary)转3D-Tiles
  • Esri Shapefile转3D-Tiles
  • Fbx转3D-Tiles

该工具集适用于处理大规模的3D数据,如倾斜摄影数据,并且可以生成适用于Cesium等3D渲染引擎的3D-Tiles。

2. 项目快速启动

以下是在不同操作系统上编译和运行3D-Tiles转换工具集的步骤。

Ubuntu

sudo apt-get update
sudo apt-get install -y g++ libgdal-dev libopenscenegraph-dev cargo
git clone https://github.com/fanvanzh/3dtiles.git
cd 3dtiles
cargo build --release

CentOS

sudo yum install -y gdal-devel cargo g++
git clone https://github.com/fanvanzh/3dtiles.git
cd 3dtiles
git clone https://github.com/microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg install osg:x64-linux-release
cargo build --release

Windows

curl https://sh.rustup.rs -sSf -o rustup-init.exe
./rustup-init.exe -y
git clone https://github.com/fanvanzh/3dtiles.git
cd 3dtiles
git clone https://github.com/microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.bat
./vcpkg/vcpkg install osg:x64-windows-release
./vcpkg/vcpkg install gdal:x64-windows-release
cargo build --release

MacOS

# 首先安装brew
brew install rust gdal open-scene-graph
git clone https://github.com/fanvanzh/3dtiles.git
cd 3dtiles
cargo build --release

编译完成后,将生成一个可执行文件,你可以使用该文件来进行数据转换。

3. 应用案例和最佳实践

以下是一些使用3D-Tiles转换工具集的应用案例和最佳实践。

转换Osgb数据集

./target/release/3dtile.exe -f osgb -i /path/to/osgb_path -o /path/to/out_path

使用pbr-texture转换

./target/release/3dtile.exe -f osgb -i /path/to/osgb_path -o /path/to/out_path -c '{"pbr": true}'

从单个shp文件转换

./target/release/3dtile.exe -f shape -i /path/to/data/aa.shp -o /path/to/data/aa --height height

将osgb文件转换为glb文件

./target/release/3dtile.exe -f gltf -i /path/to/data/TT/001.osgb -o /path/to/data/TT/001.glb

将b3dm文件转换为glb文件

./target/release/3dtile.exe -f b3dm -i /path/to/data/aa.b3dm -o /path/to/data/aa.glb

4. 典型生态项目

目前,3D-Tiles转换工具集已经在多个项目中得到应用,以下是一些典型的生态项目:

  • 城市三维可视化
  • 地形建模
  • 建筑信息模型(BIM)集成

以上教程介绍了3D-Tiles转换工具集的基本使用方法,你可以根据自己的需求调整参数和选项,以实现数据的精确转换。

3dtiles The fastest tools for 3dtiles convert in the world! 3dtiles 项目地址: https://gitcode.com/gh_mirrors/3d/3dtiles

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

杨阳航Jasper

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值