Stykka / glTF-Bin

[Deprecated See https://github.com/mcneel/glTF-IO] glTF exporter for Rhinoceros. Supports: mode-text, mode-binary, binary-draco, materials, and textures.
MIT License
31 stars 18 forks source link

Add options to disregard certain mesh data #48

Closed jrz371 closed 3 years ago

jrz371 commented 3 years ago

image Vertex colors can be supported in the mesh attributes COLOR_0 slot in glTF. Triangles are the only polygon type supported by glTF so we can disregard that option.

Doerge commented 3 years ago

Currently we use the render mesh. What is the alternative? I.e. unchecked for obj? Does it only export Mesh then?

jrz371 commented 3 years ago

It looks like draco compression encodes the vertex colors in ARGB order whereas glTF expects RGBA. I've got to add some changes into the draco interface that should hopefully be in Rhino 7.6. As for the meshes issue, Rhino is using custom meshing parameters for that and not setting them to any of the mesh slots.

marikaalmgren commented 3 years ago

This is the options I get now. Ok? gltf_export_option_mesh

jrz371 commented 3 years ago

That's fine