kovacsv / Online3DViewer

A solution to visualize and explore 3D models in your browser.
https://3dviewer.net
MIT License
2.57k stars 548 forks source link

Unable to change color of model for stp file #332

Open chriskuech opened 1 year ago

chriskuech commented 1 year ago

Describe the bug I changed the defaultColor everywhere I see it hard-coded (settings.js, sidebarsettings.js). However, the model color for our stp file is still the default rgb(59, 59, 59)/#3B3B3B. Possibly related, there is no "Default Color" picker UI, unlike what's shown in #264 screenshot.

To Reproduce

  1. Change the defaultColor in all cases within the website code.
  2. Upload an stp file.

Expected behavior Color of the model is the defaultColor.

Screenshots

image
kovacsv commented 1 year ago

Default material has effect only if the model doesn't specify the color (like in case of the stl format). In this case your file has a color specified, so default color doesn't make sense, this is why it doesn't appear on the UI.

chriskuech commented 1 year ago

I see. Makes sense, but it would be nice to change the color of the model regardless.

clintmorris229 commented 8 months ago

I agree that it would be nice to change the model color. Especially when facets are colored the same color as the default background.

barbinbrad commented 3 weeks ago

Agree with the above sentiment. I'd like to be able to change the color to reflect the material/finish of the part. Any workarounds for this?