CesiumGS / CesiumGS/obj2gltf

Loss of Something on conversion

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

Description

We had a some issues on conversion. (see below images and descriptions)

**1. It seems that the surface of button is somehow partially gone.**
(The number of triangles is not changed, while the number of vertecies is decreased 1,088,424 to 264,382 on conversion)

obj-original
![Untitcccled](https://user-images.githubusercontent.com/33122524/80184588-d6a19300-8645-11ea-84bb-236fc5b9aa1f.png)

gltf
![Untitlevvvd](https://user-images.githubusercontent.com/33122524/80184653-f6d15200-8645-11ea-87ce-be0d91de8b90.png)

**2. It seems that the unnecessary plane has added.**
(the number of vertecies is decreased too)

obj-original
![Untitlbbbed](https://user-images.githubusercontent.com/33122524/80185992-457feb80-8648-11ea-8528-21be7d997ffa.png)

gltf
![image](https://user-images.githubusercontent.com/33122524/80186307-c50dba80-8648-11ea-9ea9-7adb001e9447.png)

I don't know if these 2 problems are related to issue #235, #212 or #204. still occured in v3.1.0

**3. The RGB color applied on grey scale texture image is missing on conversion. See below the material definitions in .mtl and the texture image.

`newmtl PT_FABRIC_FRONT_1322893`
`Ka 0.230915 0.199538 0.173866`
`Kd 0.898039 0.776013 0.676173`
`Ks 0.025778 0.025778 0.025778`
`Ns 5.000000`
`illum 2`
`d 1.000000`
`map_Ka 2.3mm_3_Edit.png`
`map_Kd 2.3mm_3_Edit.png`

2.3mm_3_Edit.png
![2 3mm_3_Edit](https://user-images.githubusercontent.com/33122524/80188109-aceb6a80-864b-11ea-9acb-97d169c3a32b.png)

left obj-original / right gltf
![2](https://user-images.githubusercontent.com/33122524/80187998-83324380-864b-11ea-9690-ec62e6807be6.jpg)

If You need these obj files, I can email it to You! : ) Thanks!

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.