CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.71k stars 307 forks source link

objLoader ignores smoothing groups declaration? #145

Open silvainSayduck opened 6 years ago

silvainSayduck commented 6 years ago

Unless I am completely mistaken, the parseLine function in loadObj does not take into account smoothing groups (declared in the obj format with s [on|off|group_index]).

Is this intentional (because maybe unnecessary in this context) or a current limitation of the loadObj parser?

lilleyse commented 6 years ago

You're right, the obj parser does not take into account smoothing groups. obj2gltf doesn't generate normals at the moment so it ignores them.

silvainSayduck commented 6 years ago

Alright, thanks for the clarification! I'll use a pre-processing script for my OBJs for now then.