trevorsandy / lpub3d

An LDraw™ editor for LEGO® style digital building instructions.
https://trevorsandy.github.io/lpub3d/
133 stars 19 forks source link

[Feature]: Increase range of Edge Lines and smaller step #772

Open citrasusanto opened 3 days ago

citrasusanto commented 3 days ago

image

I prefer the edge line settings in LPub3D version 2.4.6, but from version 2.4.7 onwards, it seems to have been reduced to 1.625. This is insufficient for my designs, especially for Duplo models, where I normally use 2.875.

My requests are:

  1. Could you increase the maximum range for edge lines to 3 or 4, or allow for manual settings in the file configuration?
  2. It's not essential, but could you enable the adjustment of steps in increments other than 0.125 to 0.01 in LPub3D 2.4.8?
  3. Alternatively, you could implement a text box that allows users to input any desired number, rather than using a slider?

An example of how the third request might work: image

Last Questions: Is there a method to control the model's view to determine where it zooms in? image

Expected Feature: in Studio, it is located under the pan setting to adjust the viewport. image

trevorsandy commented 2 days ago

Thank you for your request.

Is there a method to control the model's view to determine where it zooms in?

Take a look at #412

Could you increase the maximum range for edge lines to 3 or 4, or allow for manual settings in the file configuration?

The edge-line capability in the Native renderer is actually driven by the underlying OpenGL support. Both range and granularity are queried from OpenGL and can differ based on the OpenGL version and graphics card etc... To enable range and granularity values other than those generated by OpenGL for the particular configuration is not a wise solution.

FYI, on ARM processors, the LDView renderer (using XQuartz x11) may be unstable when using OpenGL's GLES vs the traditional GLU/GLUT. ARM platforms are usually using the newer GLES libraries. This may be contributing to the unexpected behavior of LDView on your machine. Counter to this hypothesis, is the fact that build checks are successful on GitHub macOS 14 which uses an arm64 runner. As a result, this conclusion is not yet certain as I am still investigating.

Cheers,