[Ruimo.com] Cesium model conversion (obj max fbx to gltf/3dtiles)

These three formats are all supported by 3dmax. You can convert .fbx and .max to .obj format uniformly, and then convert to glb or gltf through obj2gltf, where gltf is a bit larger than the model of glb; or use ceisumlab and other tools to convert .obj is processed into 3dtiles. Of course, 3dtiles are mostly used in large scenes.

Models of type .obj .max .fbx are converted to gltf/glb using obj2gltf

The following example describes the processing process of .max:

data structure:

a. Import the max model. During the import process, it may prompt that the model material cannot be found, so ignore it and open it.

b. After opening, set the material image path:

Click Set Path to find the corresponding picture under the map folder.

c. Adjust the center point, zoom ratio and model orientation of the model. This step is to avoid position deviation when converting to the model format supported by cesium. Please Baidu for this step. The orientation of the model is generally adjusted to the east, and the center point of the model is placed at the origin of the coordinate system in 3dmax.

d. Export obj. At this time, you can set the parameters when exporting, such as texture format, whether to optimize, and scaling.

Click Export:

e: The exported obj format data is converted to gltf or glb. This function uses the obj2gltf tool (you can download and install it yourself on github)

Model conversion: here I convert to glb (can also be converted to gltf)

This glb can be loaded in cesium. There will be many problems in the intermediate conversion and loading. If you don’t understand, you can leave me a message or private message me.

.obj .max .fbx type models are converted to 3dtiles, using cesiumlab

Open the cesiumlab, select the artificial model slice, import the model, and click OK. It is a fool's operation, and this will not be described.

osgb ​​to 3dtiles:

osgb ​​is generally the data obtained after oblique photography processing, and this data is generally processed as 3dtiles.

Guess you like

Origin blog.csdn.net/rrmod/article/details/129031220