Error with OSMesa version of LDView


RE: Error with OSMesa version of LDView
#2
(2023-09-22, 23:26)Orion Pobursky Wrote: I'm having a problem with the OSMesa version of LDView used by the PT. It's not rendering some things correctly in some case and I can't seem to figure out why. Attached is the one of the problematic files. It renders fine with the Windows build and in Lasse's buildinginstructions.js but as you can see by the image below, the Linux OSMesa version doesn't


As this is generated by code, there may be some sort of error in the file that I'm not noticing.

I believe that this is caused by a bug in Mesa. I reported the bug over a year ago, but nothing has been done about it. I spent quite a bit of time trying to modify LDView to work around the Mesa bug, but failed. The bug is in a portion of OpenGL functionality that is too fundamental to LDView's rendering for me to avoid the functionality, and all the things I tried to work around it ultimately failed.

Here is LDView's GitHub issue regarding the problem. Note that while this issue refers to the Qt version of LDView, the problem only occurs when using a Mesa-based graphics driver, and also affects the OSMesa version of LDView, which by definition relies on Mesa.

Note that I believe that the problem only happens when a model includes parts that use color 16. They then are supposed to inherit the color of their parent model (which would of course be a submodel that is referenced with a non-16 color number). But due to the Mesa bug, this doesn't work. I did a quick check of your model, and since the tyres are indeed specified using color 16, I am confident that the Mesa bug is the source of the problem.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Error with OSMesa version of LDView - by Travis Cobbs - 2023-09-22, 23:50

Forum Jump:


Users browsing this thread: 1 Guest(s)