Open jaggzh opened 1 year ago
In looking at the code it appears it does infill calculation for each frame of video; so there's not some single-texture to map onto the mesh object.... Darn. :}
you can do it. I have done it. I'm not at Blender right now, but I think you use vertex color to apply your image properly.
You need to select Color Attribute | Color
for the Base Color
of the mesh (see the red rectangle in the image).
For me, this works just fine for the Simple mesh. But for the Inpainted Mesh it does not work as expected (see above). I don't know why, but I found that the trimesh
package is used to export to .obj
for the Simple mesh, but for the Inpainted mesh a custom written export is used: https://github.com/thygate/stable-diffusion-webui-depthmap-script/blob/b8120b41a9223796ba42393c0c07ba90870cddd0/inpaint/mesh.py#L2160-L2168
You need to select
Color Attribute | Color
for theBase Color
of the mesh (see the red rectangle in the image). For me, this works just fine for the Simple mesh. But for the Inpainted Mesh it does not work as expected (see above). I don't know why, but I found that thetrimesh
package is used to export to.obj
for the Simple mesh, but for the Inpainted mesh a custom written export is used:
Hey, did you ever figure this out?
The .ply export option does have correct color mappings, but the .obj mesh option has this glitchy, grainy look to it for me as well.
Sadly, no, I haven't worked on this issue.
Sadly, no, I haven't worked on this issue.
Just now I tested importing these .obj into something else (TouchDesigner), and there the colors actually map correctly. So it may be something to do with the blender .obj importer after all.
i ran into this issue but clearly its a blender only obj bug, ply works. Replicated the issue in blender only, by subdving a cube 3 times and then dupped a few vertices (4 or 5 or 6 vertices) to be faceless-edgeless, vertex painted a bunch, exported and reimported and this is the result. Ill try to open a bug report in blender repo.
*PS. Added a report into that bug. https://projects.blender.org/blender/blender/issues/117367#issuecomment-1257731
Is there a way to load this into blender?
So: