PT renders wrong image


RE: PT renders wrong image
#6
(2018-12-29, 8:22)Travis Cobbs Wrote:
(2018-12-28, 5:31)Steffen Wrote: can someone please investigate on the server side why the PT shows an all-wrong image for
http://www.ldraw.org/cgi-bin/ptdetail.cg...ntrast.dat
?

The image shown is all-black, whereas the file implementation instead only has black vertical surfaces.
The top surface is color 16

I tracked down the underlying problem, and fixed the ldview executable on the parts tracker. Unfortunately, this likely affected a lot of parts, so a lot of images will need to be regenerated. I let Chris know about the underlying cause, so hopefully things will be fixed in the not-too-distant future.

For reference, the problem was caused by a bug in the OSMesa library that the command line ldview uses to do its rendering. That bug caused color pushing and popping to not work. I had already found and worked around the bug in the past, but my workaround was disabled in the source code by default, and I didn't have it enabled when I last build the ldview executable being used by the parts tracker. The problem will show up on any parts that have submodels that are anything other than color 16, followed by other submodels that are color 16. ("Submodels" includes both subparts and all primitives.)

All the unofficial library and official library images have been re-generated.
Chris (LDraw Parts Library Admin)
Reply
« Next Oldest | Next Newest »



Messages In This Thread
PT renders wrong image - by Steffen - 2018-12-28, 5:31
RE: PT renders wrong image - by Chris Dee - 2018-12-29, 7:28
RE: PT renders wrong image - by Travis Cobbs - 2018-12-29, 23:22
RE: PT renders wrong image - by Chris Dee - 2018-12-29, 8:42
RE: PT renders wrong image - by Steffen - 2018-12-29, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)