tcobbs / ldview

Real-time 3D viewer for displaying LDraw models
https://tcobbs.github.io/ldview/
GNU General Public License v2.0
87 stars 17 forks source link

Type 2 lines not as bright when highlighted directly #78

Open tcobbs opened 1 year ago

tcobbs commented 1 year ago

Describe the bug When you highlight a dat file in the model tree that contains type 2 lines, the type 2 lines are highlighted very strongly. When you highlight a specific type 2 line, it does get highlighted, but not as strongly.

To Reproduce Steps to reproduce the behavior:

  1. Open the m6459.ldr sample model.
  2. Show the Model Tree and make sure that highlighting is enabled.
  3. Select the first part in the file (3029.dat) and notice how all of its edge lines get strongly highlighted
  4. Expand the part in the tree, then expand and select the first stud4.dat Note the brightness of the stud's highlighted rings.
  5. Select the first 4-4edge.dat. Notice that it is not as bright.

Expected behavior Highlighting of edge lines should be consistently bright, no matter how you select them.

tcobbs commented 1 year ago

I can only produce this behavior when antialiased lines are enabled. I have fixed the underlying problem that causes that and have asked the original bug reporter if the problem goes away when antialiased lines are disabled.

https://github.com/tcobbs/ldview/commit/e0b3a40d795cc92c08706fa07196b129487a20b8