VAST-AI-Research / TripoSR

MIT License
4.05k stars 469 forks source link

export to .glb with no color #10

Open SunzeY opened 4 months ago

SunzeY commented 4 months ago

I'm trying to set --model-save-format to .glb, but the exported model have no color.

pookiefoof commented 4 months ago

561c7121-7416-48eb-a2ce-286b166da331 The current version of TripoSR uses vertex color attributes to store the color information. To display the color, for example in Blender, please create a material node and assign the "Color Attribute" to the basecolor (see the screenshot for reference).

SunzeY commented 4 months ago

Thank you for you kind reply! Is it possible to achieve this automatically using script or package(like trimesh)? we are now researching some operations directly on texture.png and want to use TripoSR as SOTA single-image to 3D model to generate base object. (We want to test this on MANY objects).

rawwerks commented 2 months ago

@pookiefoof - i think you can do this in trimesh with 1 additional line of code, see my comments here https://github.com/VAST-AI-Research/TripoSR/issues/76 and https://huggingface.co/spaces/stabilityai/TripoSR/discussions/8