uhlik / bpy

blender python scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Baking the vertex colors from point cloud to mesh

TheBricktop opened this issue · comments

Is there a way to bake point cloud colours to created mesh using for example emission?

commented

can you elaborate a bit? not sure if i understand

Im asking about baking vertex colour to the texture of mesh.
The mesh is modelled, or meshed in meshlab and unwrapped.
Im thinking about transferring the colour data to the nearest point to the surface of the mesh or something similar.
obraz

commented

At a first glance I though the "projection" function is doing exactly this: projecting points color onto a meshs texture. It's only for filtering points, but it would be nice to have such a feature.

commented

Im thinking about transferring the colour data to the nearest point to the surface of the mesh or something similar.

that meshlab filter requires both meshes to have faces.. no inspiration there, but what about instead of texture, use vertex colors on target mesh? that can be easier to start with, but it is sufficient for such use? i don't know, i do textures in metashape using original photos..

commented

alright, it was not that difficult after all. still needs some polishing but basically done. it will go to 1.0+ version.
transfer-uv

@uhlik that is not true, baking intentionally can be used with pure point cloud with color but the bug falsely required source to have mesh. They fixed it up in nightly builds and I'm confirming it works.
@uhlik also damn that was fast. Thank you, kind sir.