PLY I/O: implement support for other attributes besides Color #108948

Closed
opened 2023-06-13 19:48:07 +02:00 by Keir · 8 comments

Short description of error
Only tested with point cloud files in the PLY format. Normal attributes, Scalar fields and other attributes are not imported.

Exact steps for others to reproduce the error
Import a PLY file that contains a point cloud with normals. Look in the spreadsheet editor, there are no normals.

**Short description of error** Only tested with point cloud files in the PLY format. Normal attributes, Scalar fields and other attributes are not imported. **Exact steps for others to reproduce the error** Import a PLY file that contains a point cloud with normals. Look in the spreadsheet editor, there are no normals.
Keir added the
Status
Needs Triage
Type
Report
Priority
Normal
labels 2023-06-13 19:48:07 +02:00
Member

PLY importer never supported other attributes as far as I can see, it needs to be implemented.

@aras_p could you take a look?

PLY importer never supported other attributes as far as I can see, it needs to be implemented. @aras_p could you take a look?
Aras Pranckevicius added
Type
To Do
and removed
Type
Report
labels 2023-06-14 07:58:31 +02:00
Aras Pranckevicius changed title from Import PLY doesn't import any attributes other than Color to PLY I/O: implement support for other attributes besides Color 2023-06-14 07:58:50 +02:00
Aras Pranckevicius self-assigned this 2023-06-14 07:59:00 +02:00

@KeirCB: this improvement request does make sense, I'll see what I can do. For implementation and testing, some sort of PLY file with custom attributes would help -- can you attach an example file you're talking about (i.e. point cloud with custom normals)?

@KeirCB: this improvement request does make sense, I'll see what I can do. For implementation and testing, _some_ sort of PLY file with custom attributes would help -- can you attach an example file you're talking about (i.e. point cloud with custom normals)?
Author

Thank you for looking into this. Beehive.Normals.ply is a point cloud with calcuated normals. Beehive.Normals.ScalarFields.ply has the normals duplicated onto 3 scalar fields.

Thank you for looking into this. Beehive.Normals.ply is a point cloud with calcuated normals. Beehive.Normals.ScalarFields.ply has the normals duplicated onto 3 scalar fields.

I'm glad you all are looking into this - I've also attached a pointcloud with a bunch of custom fields which is coming from a houdini export.

Its not mentioned in the issue, but it would be great if blender supported exporting custom fields as well (I'm guessing thats what the I/O in the title refers to)

I think part of the complexity here is that the floats are only bound into float3s based on naming. I'd be totally happy with a best guess on field association.

I'm glad you all are looking into this - I've also attached a pointcloud with a bunch of custom fields which is coming from a houdini export. Its not mentioned in the issue, but it would be great if blender supported exporting custom fields as well (I'm guessing thats what the I/O in the title refers to) I think part of the complexity here is that the floats are only bound into float3s based on naming. I'd be totally happy with a best guess on field association.

@KeirCB @Jonathan-Brodsky just landed custom PLY attributes support for both import & export to main branch (so for blender 4.1)

@KeirCB @Jonathan-Brodsky just landed custom PLY attributes support for both import & export to main branch (so for blender 4.1)
Aras Pranckevicius added
Status
Resolved
and removed
Status
Confirmed
labels 2023-10-31 14:10:01 +01:00
Author

@aras_p Thank you so much for your work! I will be testing today. Cheers!

@aras_p Thank you so much for your work! I will be testing today. Cheers!

I've run into a crashing bug when attempting to use the PLY exporter -
I'm using an example file from the geoscatter plugin (linked under instancing by scale on this page)

and I've made the following changes to the geometry node graph so I get a bunch of points with additional vertex attributes out.
image

when exporting to ply without having "limit to selected only" selected, I'm getting a crash. I've attached the crash log.

I've run into a crashing bug when attempting to use the PLY exporter - I'm using an example file from the geoscatter plugin (linked under [instancing by scale on this page](https://www.geoscatter.com/documentation.html#Examples)) and I've made the following changes to the geometry node graph so I get a bunch of points with additional vertex attributes out. ![image](/attachments/1cd63427-12f6-422d-b055-628259acc711) when exporting to ply without having "limit to selected only" selected, I'm getting a crash. I've attached the crash log.

@Jonathan-Brodsky File a separate issue for that. Don't post on an already closed issue which was originally for something entirely different.

@Jonathan-Brodsky File a separate issue for that. Don't post on an already closed issue which was originally for something entirely different.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#108948
No description provided.