LDraw.org Discussion Forums
LPub3D, LDGlite and LDView changes layout - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw File Processing and Conversion (https://forums.ldraw.org/forum-22.html)
+--- Thread: LPub3D, LDGlite and LDView changes layout (/thread-21511.html)



LPub3D, LDGlite and LDView changes layout - Brian - 2016-05-12

Hi, in LPub3D, when I switch between LDGlite and LDView, various elements on the page change size and position. Is there something I can do to keep layout and size more consistent? Thanks.


RE: LPub3D, LDGlite and LDView changes layout - Brian - 2016-05-13

Or, does anyone know how I can speed up LDView rendering? In many cases the main assembly simply disappears in LDGlite, and LDView takes significantly longer to render every page regardless of if anything has changed. Thanks.


RE: LPub3D, LDGlite and LDView changes layout - Don Heyse - 2016-05-13

I spent a considerable amount of time Investigating that and came to the conclusion that it'd be quite difficult to make it perfect, as long as lpub is making different layout decisions based on a single pixel difference in image size.  However there also appears to be some cruft in lpub3d image scaling code from the old lpub codebase that puts it off by more than a pixel with the images produced by ldview.

I could take a look at the disappearing main assemblies if you can provide an example where it happens. I have suspicions it's the znear setting, but it's challenging to reproduce the problem with limited resources.


RE: LPub3D, LDGlite and LDView changes layout - Travis Cobbs - 2016-05-13

(2016-05-13, 2:26)Brian Wrote: Or, does anyone know how I can speed up LDView rendering? In many cases the main assembly simply disappears in LDGlite, and LDView takes significantly longer to render every page regardless of if anything has changed. Thanks.

I provided a suggestion that could hopefully be used to make LPub3D's usage of LDView faster, so it's possible that a future LPub3D release will do that. However, LDView's design means that it is never going to be as fast as ldglite at rendering images from the command line. LDView spends more time during model loading to optimize things for interactive display performance, and this means that loading the model takes longer. When all you are going to do is take a single snapshot of the model, this is far from ideal, but it's not something that's going to change.


RE: LPub3D, LDGlite and LDView changes layout - Brian - 2016-05-22

Thanks. The missing assembly reappears if I increase the paper size. The size difference was off by more than a few pixels in my case ... I may have not refreshed the cache. I'll see if I can repro on an official model.


RE: LPub3D, LDGlite and LDView changes layout - Don Heyse - 2016-05-24

If you can reproduce it with an official then it'll be much easier to track down and fix the problem.  Otherwise it's a guessing game.