Support for .obj files with textures#1
Conversation
…y-weighted solid colour clustering to perceptual, diversity-preserving clustering so many shades of a single color do not crowd out distinct colors. Added color palette option for user-defined solid colours. Added an export preview visualization option. Added recoloring tools in preview mode.
Fixes to full spectrum processing of .obj textures. Added undo/redo functionality in export preview mode.
|
Interesting.... It works for me. This model (after converting to .obj format) runs in less than a minute on my machine: https://sketchfab.com/3d-models/dog-e395f26615ca445ab32f01ded17ff3bf Did you check if the model you are using is large enough for the layer dithering to work properly? |
Implemented @davidkrammer 's improved .obj file handling while maintaining other added features.
|
the model i have used to test is from meshy and has 145,6mb with a lot of triangles :D i made my own implementation which imports that large file in around 9 seconds here #2 |
|
I saw your update and merged it into my fork (there were several other feature updates in my fork, such as export preview, solid color processing, and recoloring, so I thought it would be easier to merge your code into this fork than vice versa). Your .obj file import code is definitely better than mine was. Could you try testing the updated code and let me know if it works? Also, I meant large with respect to volume, rather than file size. From your screenshot, it looks like the model might be on the same order of magnitude in size as the filament layers, which might be the cause of the issues. |
|
Is there any way you could send me a link to this file? Thank you! |
|
Unable to download without a subscription... any chance you could upload it to Google Drive or Dropbox? I'd like to figure this issue out because the textures are loading fine for several models that I've tried uploading, so it might be an edge case that shows up with this model. |
Cleaned up code



Added option to load .obj files with textures. Switched from frequency-weighted solid colour clustering to perceptual, diversity-preserving clustering so many shades of a single colour do not crowd out distinct colours. Added colour palette option for user-defined solid colours. Added an export preview visualization option. Added recoloring tools in preview mode.