Notifications
Clear all

Color attributes in obj files  

  RSS
balloon
(@balloon)
New Member
Color attributes in obj files

Has anyone tried to accessed the color info for the vertices within obj files to create generated gcode filament changes? Meshlab can add color info to the different vertices so I was looking to see if I can modify the slicer to do the filament changes when producing the gcode. If there are any Prusa slicer programmers reading this post could you point me to the files that read in obj files and the ones that generate the gcode with be a great time save for me. I did a fair amount of C++ years back so the coding part I know, it is just getting a feel for where all the pieces are in github that I would like to make quicker.

Thanks 

Posted : 07/04/2022 7:37 pm
balloon
(@balloon)
New Member
Topic starter answered:
RE: Color attributes in obj files

So a little more info. Since the Prusa slicer allows painting on the model most of what I was asking for is already there with the exception of reading the colors from the obj file. If you load a .ply file that contains RGB colors for the different vertices into Mesh Lab you can use MeshLab and output an .obj file that has the RGB values appearing right after the xyz values for each of the vertices (v). So is there a way to do the painting of a model when it is loaded using the RGB values in the obj file instead of having to manually paint the model on the platter? I am willing to make the code updates and testing if I can get pointed in the right direction.  Thanks for any help.

Posted : 08/04/2022 2:50 am
Jeff
 Jeff
(@jeff-16)
Active Member
RE: Color attributes in obj files

Were you ever able to find or create a solution to this problem? I have colored models in MeshLab that I too would like to import into Prusa Slicer as different colors for a print.

Posted : 16/12/2023 6:15 pm
Share: