Value of colours in LDconfig.ldr


RE: Value of colours in LDconfig.ldr
#4
(2024-10-16, 7:02)Eugen Wrote: Just discovered an issue with "Milky White (79)" colour — it looks more than a halftransparent (which also results in variuous glitches).

The problem isn't with the color, but a limitation in how LDView draws transparent geometry that affects all transparent colors, but is much more visible in ones that are mostly opaque like Milky White.

When LDView draws transparent geometry, it only works right if the triangles are drawn back to front. Unfortunately, "back to front" isn't a trivial thing to figure out with arbitrary triangles, and LDView's sorting algorithm often results in triangles being drawn in the wrong order. When this happens, it produces the bad result you see.

I don't see myself being able to fix this.

Side note: LDraw "transparency" is achieved via something called an alpha channel. The numeric value of this ranges from 0 to 255, where 0 is completely invisible, and 255 is completely opaque. However, "transparency" is generally considered to be the inverse of this. So, "high transparency" means something like glass, which would then have a very low alpha value. Colors like "Milky White" would be very "low transparency", but have a correspondingly high alpha value (240, as it happens).
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Value of colours in LDconfig.ldr - by Travis Cobbs - 2024-10-16, 16:52

Forum Jump:


Users browsing this thread: 6 Guest(s)