Support per face and per edge custom attributes for PLY import #126339

Open
opened 2024-08-14 23:33:58 +02:00 by Tolga Yildiz · 7 comments

Currently only the per vertex custom attributes are supported for PLY importer. We can add the functionality to parse the per face and per edge data from the header and construct the geometry with these attributes.

Currently only the per vertex custom attributes are supported for PLY importer. We can add the functionality to parse the per face and per edge data from the header and construct the geometry with these attributes.
Tolga Yildiz added the
Type
To Do
label 2024-08-14 23:33:58 +02:00

Thanks for the report, but please use other channels for user feedback and feature requests: https://developer.blender.org/docs/handbook/communication/user_feedback/

For more information on why this isn't considered a bug, visit: https://developer.blender.org/docs/handbook/bug_reports/not_a_bug/

Thanks for the report, but please use other channels for user feedback and feature requests: https://developer.blender.org/docs/handbook/communication/user_feedback/ For more information on why this isn't considered a bug, visit: https://developer.blender.org/docs/handbook/bug_reports/not_a_bug/
Blender Bot added the
Status
Archived
label 2024-08-14 23:36:27 +02:00

Just to make it clear, geometry nodes have a face corner attribute domain which is used both for corner vertices and edges. In case PLY import support face-corners and node do that, there is nothing to change, everything is as expected.

In case of PLY does not support face corner attributes than it might be an issue on the side of format itself.

Just to make it clear, geometry nodes have a face corner attribute domain which is used both for corner vertices and edges. In case PLY import support face-corners and node do that, there is nothing to change, everything is as expected. In case of PLY does not support face corner attributes than it might be an issue on the side of format itself.

@bebop_artist Did you intend to work on this yourself? If so, the Pipeline and Assets module would welcome this tracking todo item here and I'll reopen if so.

@bebop_artist Did you intend to work on this yourself? If so, the Pipeline and Assets module would welcome this tracking todo item here and I'll reopen if so.
Author

Yes I will work on this at least on my fork, I was trying to get some data into blender from another python program for viz and debug.

I could have done it in the python API but that requires to install additional stuff to blender's bundled interpreter and the data generation steps are quite long. So instead I just run my python program and generate results with the custom attributes then save them.

I was searching for any kind of visualizer to work with those and so far the MeshLab is the only one, which only reads single per face color. With the current proposition we can have multiple colors/attributes in a single PLY file and determine which one to visualize in the geometry node editor.

Yes I will work on this at least on my fork, I was trying to get some data into blender from another python program for viz and debug. I could have done it in the python API but that requires to install additional stuff to blender's bundled interpreter and the data generation steps are quite long. So instead I just run my python program and generate results with the custom attributes then save them. I was searching for any kind of visualizer to work with those and so far the MeshLab is the only one, which only reads single per face color. With the current proposition we can have multiple colors/attributes in a single PLY file and determine which one to visualize in the geometry node editor.

I do not think you could do anything on a python to change geometry nodes behavior.

I do not think you could do anything on a python to change geometry nodes behavior.
Author

With the python API I could have defined the blender mesh with any kind of custom attributes with any kind of data type, I have done it before for another project for various attributes of the procedural generation process(like at which iteration which features are marked etc.), not the geometry nodes of course.

Here is an example

But this allowed me to process the blender mesh in the geometry nodes afterwards by using those custom defined attributes.

With the python API I could have defined the blender mesh with any kind of custom attributes with any kind of data type, I have done it before [for another project ](https://github.com/ComicAddict/gs3d_blender/blob/main/Node%20Structures.py) for various attributes of the procedural generation process(like at which iteration which features are marked etc.), not the geometry nodes of course. Here is an [example](https://blender.stackexchange.com/questions/266991/manually-setting-custom-attributes-per-edge-vertex-etc) But this allowed me to process the blender mesh in the geometry nodes afterwards by using those custom defined attributes.

I'll reopen. @bebop_artist Feel free to edit your original description to organize and track the work you want to go and do. Once you have a PR you can tag it so that it will "Fix" this TODO.

I'll reopen. @bebop_artist Feel free to edit your original description to organize and track the work you want to go and do. Once you have a PR you can tag it so that it will "Fix" this TODO.
Blender Bot added
Status
Confirmed
and removed
Status
Archived
labels 2024-08-15 00:29:30 +02:00
Jesse Yurkovich added
Module
Pipeline & IO
and removed
Status
Confirmed
labels 2024-08-15 00:29:47 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
No Assignees
3 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#126339
No description provided.