daavoo / daavoo/pyntcloud

Loss of color when converting to open3D

Open
#350 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.5k
Forks
229
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When converting to an open3d instance, the color of the point cloud is lost

**To Reproduce**
Steps to reproduce the behavior:

```python
import open3d
from pyntcloud import PyntCloud

pointcloud = open3d.io.read_point_cloud("MyColorPointCloud.ply")
open3d.visualization.draw_geometries([pointcloud])
# See screenshot below

pyntcloud = PyntCloud.from_instance("open3d", pointcloud)
pointcloud_reconverted = pyntcloud.to_instance("open3d")
open3d.visualization.draw_geometries([pointcloud_reconverted])
# see screenshot below
```

**Expected behavior**
The color should be preserved through `to_instance` call.

**Screenshots**
First visualization:
![image](https://github.com/daavoo/pyntcloud/assets/20435565/d11c5cd6-09e7-41db-919c-229476a201c8)

Second visualization:
![image](https://github.com/daavoo/pyntcloud/assets/20435565/e0109a58-8a6e-431c-aaad-0423a063fb9f)

**Desktop (please complete the following information):**
- OS: Windows 10
- PyntCloud Version: 0.3.1

Contributor guide

Open the contributing guide

Research direction

Start with the implementations behind PyntCloud.from_instance("open3d", pointcloud) and pyntcloud.to_instance("open3d"). Reproduce the supplied round trip with the color PLY and compare both Open3D visualizations; done means the reconverted point cloud preserves its original color.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.