Open YilmazKadir opened 2 years ago
The mesh's color is defined by material accessed by uv coordinates rather than triangle colors. Therefore sampling color is non-trivial in the texture space after a conformal mapping, and unfortunately, we don't support this function yet.
@germanros1987 do we want to put uv processing in our roadmap? I remember we had it a while ago...
Checklist
master
branch).My Question
I want to create colored point cloud from shapenet dataset and when I try use this simple code I do not get color information:
import open3d as o3d import numpy as np
instance_file_path = "../39be4ef0dfa6833e49c9c494c2fb14ce/models/model_normalized.obj" mesh_instance = o3d.io.read_triangle_mesh(instance_file_path, True) pc_instance = mesh_instance.sample_points_uniformly(100) pc_coordinates = np.asarray(pc_instance.points) pc_colors = np.asarray(pc_instance.colors)
pc_colors are empty. I am also attaching the sample data. I am just starting to use open3d and would be very happy if someone could help.
39be4ef0dfa6833e49c9c494c2fb14ce.zip