Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨 Support for vertex colours #94

Closed
izzylys opened this issue May 25, 2022 · 4 comments
Closed

🎨 Support for vertex colours #94

izzylys opened this issue May 25, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@izzylys
Copy link
Contributor

izzylys commented May 25, 2022

Expected vs. Actual Behavior

We currently only support render materials. Vertex colours have also been requested!

https://speckle.community/t/mesh-colours-gh-to-blender/2931

https://speckle.xyz/streams/5e54e5bafb/commits/549b268b63

@izzylys izzylys added the enhancement New feature or request label May 25, 2022
@izzylys izzylys self-assigned this May 25, 2022
@JR-Morgan JR-Morgan assigned JR-Morgan and unassigned izzylys Sep 20, 2022
@JR-Morgan
Copy link
Member

I've taken a look at implementing vertex colors ToSpeckle in Blender.
And I've run into another case where Blender aligns mesh attributes differently than our Mesh format expects.
Previously it was texture coordinates, this time it's vertex colors.

I fixed this previously by adding a AlignVerticesWithTexCoordsByIndex function to Mesh that restructures faces to map between blenders vertex instance indexing, and vertex indexing.
In order for me to add support for vertex colors in blender,
I may have to do the same thing now for colors. But I'm interested in looking at better ways we can handle this that doesn't require every connector to call this Align method

@fraguada
Copy link

Just ran into this sending a mesh with vertex colors from Rhino > Blender.

@tsvilans
Copy link
Contributor

So in the very beginning of the SpeckleBlender add-on, there was a provision for pulling in vertex colors into Blender. If a mesh object had a property colors the same length as its vertex list, then these would be translated into vertex colors in Blender. The list of colors would be encoded as a single int32 for every color, interpreted as 4 bytes (ARGB).

The function is still there:

def add_colors(speckle_mesh: Mesh, blender_mesh: BMesh):

I unfortunately have been away from the party for a while, so I'm not sure if that has changed, or what the receiving code now looks like, but maybe that helps whoever oversees this now.

@JR-Morgan JR-Morgan added this to the 2.X milestone Oct 31, 2022
@bimgeek
Copy link

bimgeek commented Dec 15, 2023

Closing this ticket as we are moving to Jira to reduce noise. You can access it there.

@bimgeek bimgeek closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants