CesiumGS / CesiumGS/obj2gltf

Convert gltf with different material on each mesh using command line

Open
#190 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
311
PR merge metrics
No merged PRs in 30d

Description

Hello,

I have obj file and PBR material files separately. I would like to convert the obj to gilt using command line. The obj might have multiple meshes and each mesh might have different material.

Attached zip file having obj file and all required textures.

There are 2 Meshes in obj.
1) Cylinder001
2) Line004

I am using this command, but it didn’t work.

`obj2gltf Cylinder001 --map_Kd diffuse.jpg --map_Ks metalness.jpg --map_Ns roughness.jpg --map_Bump normal.jpg Line004 --map_Kd diffuse2.jpg --map_Ks metalness2.jpg --map_Ns roughness2.jpg --map_Bump normal2.jpg -i model.obj -o model.gltf`

[obj2gltf.zip](https://github.com/AnalyticalGraphicsInc/obj2gltf/files/3026366/obj2gltf.zip)

Please advise.

Another alternative : Can we pass custom .mtl file in command line?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.