Solved Auto Zoom potential issues


RE: Auto Zoom potential issues
#2
(2024-01-27, 14:42)Orion Pobursky Wrote: While generating images for the PT, I've noticed that sometimes LDView's auto zoom results in some of the part being cropped. Here's an example:
https://library.ldraw.org/tracker/32684

I can post the LDView.ini the PT is using if needed.

It looks like autocrop is working purely off of the RGB colors and not the RGBA (even though you have transparent background enabled). A temporary fix would be to set LDView's background color to 0xFFFEFF (-BackgroundColor3=0xFFFEFF on the command line, or the equivalent in ~/.ldviewrc) so that it is unlikely to exactly match any protruding detail in rendered parts. I will see about updating autocrop to pay attention to the alpha channel in the image if that is present. Note: the background color I proposed makes the green channel the minimum amount darker than the red and blue channels, so should look visually white. You could probably also use 0xFEFEFE.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Auto Zoom potential issues - by Travis Cobbs - 2024-01-27, 22:08

Forum Jump:


Users browsing this thread: 2 Guest(s)