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 Colored (Non-Standard) STL Files #87

Open
X-DE1 opened this issue Aug 13, 2022 · 5 comments
Open

Support Colored (Non-Standard) STL Files #87

X-DE1 opened this issue Aug 13, 2022 · 5 comments

Comments

@X-DE1
Copy link

X-DE1 commented Aug 13, 2022

I loaded this model with color and it appears without color.
SharedScreenshot
I opened it at https://www.viewstl.com/ and it comes out with color.
SharedScreenshot

@DeveloperPaul123
Copy link
Member

Can you post the model as well?

@DeveloperPaul123
Copy link
Member

Looks like color is not standardized for the STL file format, so I'm not sure if it makes sense to add that ability to fstl.

@DeveloperPaul123 DeveloperPaul123 changed the title No color Support Colored (Non-Standard) STL Files Aug 15, 2022
@X-DE1
Copy link
Author

X-DE1 commented Aug 24, 2022

Here is the model.
https://www.thingiverse.com/thing:5461514

@sur5r
Copy link
Contributor

sur5r commented Aug 25, 2022

Hm, extracting the color is not hard, it would "just" require another menu option as the both possible formats are BGR vs. RGB. I'm not familiar with the shader code, but I guess

gl_FragColor = vec4((a*base2 + (1-a)*base00)*0.5 +
would be the place to change. I don't understand the maths yet, though.

@pozdnov
Copy link

pozdnov commented Oct 4, 2022

I also need this feature and vote for it to be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants