trevorsandy / lpub3d

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

Projection in visual editor keeps resetting to perspective. #607

Closed laurensvalk closed 1 year ago

laurensvalk commented 2 years ago

Subject

The projection in visual editor keeps resetting to perspective when I go to the next page:

orthographic.webm

This happens only if I set the viewpoint to "front":

image

When set to "default", the visual editor looks OK.

I don't know if I should be selecting "front" here in the first place, but if I don't do that the rendered image is not orthographic (separate issue?).

Environment

I am running the LPub3D-2.4.4.0.2671_20220531-x86_64.AppImage on Ubuntu 22.04 without any changes.

0 New Model
0 Name: pupdevice-color.ldr
0 Author: MLCad
0 Unofficial Model
0 ROTATION CENTER 0 0 0 1 "Custom"
0 ROTATION CONFIG 0 0
1 15 0 0 0 -1 0 0 0 -1 0 0 0 1 37308c01.dat
0 ROTSTEP 35 -35 0 ABS
0
trevorsandy commented 1 year ago

Thank you for reporting this behaviour.

For each step, a new 3D viewer render and display instance is created and the newly created instance was not reading the preference setting you created.

This behaviour has been corrected.

I don't know if I should be selecting "front" here in the first place, but if I don't do that the rendered image is not orthographic (separate issue?).

Indeed, you should not be selecting a viewpoint setting when you intend to use a projection setting. The appropriate behaviour has been corrected in #608.

Cheers,