The SKP format of sketchup is converted to the GLTF format required for importing supermap

Importing CAD drawings of buildings in sketchup for 3D modeling is a more convenient option. However, sometimes the project needs to use the three-dimensional model imported into the supermap platform in GLTF format. For the record, here is a combination of some online methods and the conversion methods found in the practice of the project.

SKP model to FBX

  1. The first is to export the 3D model in sketchup to FBX format. This format will save the texture, which is better opened in 3dsmax.
    Insert picture description here
  2. Download the MAX version of COLLADA, which is the max of 2015, so collada is also max2015. There is also a tool for converting DAE to GLTF, which is on github, all in the link of Baidu Cloud.

Link: https://pan.baidu.com/s/1URFmZ6EkUpjX0PJz9vwL7Q
extraction code: k75w

FBX model transfer to DAE with texture

  1. After downloading the plugin, store the plugin file in the plugins folder under the 3dsmax installation directory, as shown in the following figure.
    Insert picture description here
  2. Open 3dsmax, open the original 3D model FBX, select "Export Model", select the file storage path, enter the file name, and select the "OpenCOLLADA (*. DAE)" format as the type shown below.
    Insert picture description here
  3. Click "Save", the "OpenCOLLADA Export" dialog box pops up, check "copy Images", and click OK.
    Insert picture description here
  4. After the DAE model export operation is completed, the DAE format model will be stored in the target path, which also includes an "images" folder, this folder stores the model's texture pictures.

DAE model to GLTF

  1. Unzip the file, Windows icon + R key to open the run dialog box, enter "cmd" to open the command line window.
  2. In the command line window, enter the folder where the conversion tool colladaTogltf.exe is located, that is, enter (the entry in cmd is cd path), as shown below.
    Insert picture description here
  3. Enter the command line, the command format is: COLLADA2GLTF-bin.exe –f DAEpath -e
    • DAEpath is the full path to store the DAE model file, such as “C: \ Users \ Administrator.SG-20170901FOGD \ Desktop \ JS58.DAE ";
    -E command option means to output a gltf file after conversion, which will contain the geometry and texture information of the model
    Insert picture description here
  4. Press the Enter key to convert the format.
Published 39 original articles · Like 48 · Visitors 40,000+

Guess you like

Origin blog.csdn.net/qq_39798423/article/details/92801401