LDraw.org Discussion Forums
Problem with perspective in LPub3D - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: Rendering Techniques (https://forums.ldraw.org/forum-20.html)
+--- Thread: Problem with perspective in LPub3D (/thread-23725.html)

Pages: 1 2


Problem with perspective in LPub3D - Stefan Weinert - 2019-10-27

Hello Lego Fans,
I have a problem with the perspective in LPub3D. the escape point seems to be wrong. As a result, the farther rear part looks larger than the closer front part. I had the same effect synonymous in studio 2.0, but could help me johann there and you could fix it by switching to the camera icon. Can anyone tell me what I am doing wrong?

LDCad 1.6c, LPub3D 2.3.6 (i don´t want to use the newest Version, because this Version has the fewest Side-Effects), used Render-Tool LDView
best regards
Stefan


RE: Problem with perspective in LPub3D - Roland Melkert - 2019-10-27

(2019-10-27, 11:34)Stefan Weinert Wrote: I have a problem with the perspective in LPub3D. the escape point seems to be wrong.

The Field Of View (FOV) angle seems to be very low, (e.g 15 degrees).

Don't know how you change that, might even be using the current default of LDView.

But if you can find the setting change it to something like 45 degrees.


RE: Problem with perspective in LPub3D - Stefan Weinert - 2019-10-27

(2019-10-27, 21:09)Roland Melkert Wrote: The Field Of View (FOV) angle seems to be very low, (e.g 15 degrees).

Don't know how you change that, might even be using the current default of LDView.

But if you can find the setting change it to something like 45 degrees.


Many thanks for the answer! Unfortunately, I am not familiar with the LDView at all, so I have to search for this setting first


RE: Problem with perspective in LPub3D - Travis Cobbs - 2019-10-28

(2019-10-27, 11:34)Stefan Weinert Wrote: Hello Lego Fans,
I have a problem with the perspective in LPub3D. the escape point seems to be wrong. As a result, the farther rear part looks larger than the closer front part. I had the same effect synonymous in studio 2.0, but could help me johann there and you could fix it by switching to the camera icon. Can anyone tell me what I am doing wrong?

LDCad 1.6c, LPub3D 2.3.6 (i don´t want to use the newest Version, because this Version has the fewest Side-Effects), used Render-Tool LDView
best regards
Stefan

I'm not exactly sure what you are asking. LPub3D intentionally uses a very small FOV (probably something like 0.1) for step images when using LDView as a renderer (to simulate orthographic projection). The General tab of LDView's preferences has a "Field of View" setting, and values between 30 and 45 generally look pretty reasonable for a non-orthographic look. I'm not sure if LPub3D allows you to touch the field of view on step images, though, because all LEGO instructions use orthographic projection, and it is trying to replicate that look.


RE: Problem with perspective in LPub3D - Stefan Weinert - 2019-10-28

(2019-10-28, 6:48)Travis Cobbs Wrote: I'm not exactly sure what you are asking. LPub3D intentionally uses a very small FOV (probably something like 0.1) for step images when using LDView as a renderer (to simulate orthographic projection). The General tab of LDView's preferences has a "Field of View" setting, and values between 30 and 45 generally look pretty reasonable for a non-orthographic look. I'm not sure if LPub3D allows you to touch the field of view on step images, though, because all LEGO instructions use orthographic projection, and it is trying to replicate that look.

My knowledge of LDView and LPub3D are unfortunately very low. What can I do to correct the perspective?


RE: Problem with perspective in LPub3D - Philippe Hurbain - 2019-10-28

(2019-10-28, 14:19)Stefan Weinert Wrote: My knowledge of LDView and LPub3D are unfortunately very low. What can I do to correct the perspective?
Looks like a orthographic/perspective switch has been added to LPub3D relatively recently. See https://github.com/trevorsandy/lpub3d/issues/175 (description of setting at the end of the (long) page)


RE: Problem with perspective in LPub3D - Stefan Weinert - 2019-10-28

(2019-10-28, 14:57)Philippe Hurbain Wrote: Looks like a orthographic/perspective switch has been added to LPub3D relatively recently. See https://github.com/trevorsandy/lpub3d/issues/175 (description of setting at the end of the (long) page)

Oh, thank you for the answer! That explains it. So I have to install a more recent version but probably. the 2.3.6 did a good job for me


RE: Problem with perspective in LPub3D - Stefan Weinert - 2019-10-29

(2019-10-28, 15:30)Stefan Weinert Wrote: Oh, thank you for the answer! That explains it. So I have to install a more recent version but probably. the 2.3.6 did a good job for me

Unfortunately I still have the same effect despite version 2.3.13, where I can switch between "perspective" and "orthographic". I have again put my settings in the appendix


RE: Problem with perspective in LPub3D - Trevor Sandy - 2019-10-30

(2019-10-29, 8:50)Stefan Weinert Wrote: Unfortunately I still have the same effect despite version 2.3.13, where I can switch between "perspective" and "orthographic". I have again put my settings in the appendix

Hello Stefan,

With v2.3.13 you can set the LDView renderer to use a non-ortho projection using the new “Additional renderer arguments” dialogue - See GitHub Ticket #332. The setting is -FOV=<a>, where a is a degree between 0.01 and 90. 

Here is the FOV documentation from LDView help:
Quote:Field of view (Default: 45):

Enter a number in this field to control the field of view (in degrees). Setting this to the minimum value of 0.1 will produce an image that is essentially orthographic. Setting it to the maximum value of 90 will produce a wide-angle view.


In LPub3D, when you set the renderer projection to Perspective and your Preferred Renderer as LDView, the default FOV (0.01) is replaced with the FOV you specify -e.g. from the CSI/PLI context menu; however, this value is assigned to the L3P Camera Angle setting -ca<a> which, I recently discovered, behaves differently from directly using the LDView FOV setting described above.

UPD: GitHub ticket #373 provides a better example of how to use the additional renderer dialogue.

cheers,


RE: Problem with perspective in LPub3D - Stefan Weinert - 2019-10-30

(2019-10-30, 22:15)Trevor Sandy Wrote: Hello Stefan,

With v2.3.13 you can set the LDView renderer to use a non-ortho projection using the new “Additional renderer arguments” dialogue - See GitHub Ticket #332. The setting is -FOV=<a>, where a is a degree between 0.01 and 90. 

Here is the FOV documentation from LDView help:


In LPub3D, when you set the renderer projection to Perspective and your Preferred Renderer as LDView, the default FOV (0.01) is replaced with the FOV you specify -e.g. from the CSI/PLI context menu; however, this value is assigned to the L3P Camera Angle setting -ca<a> which, I recently discovered, behaves differently from directly using the LDView FOV setting described above.

UPD: GitHub ticket #373 provides a better example of how to use the additional renderer dialogue.

cheers,
Hello Trevor,
it does not work for me unfortunately. See the attachment. LDView is on "perspective", i have played through all extreme (0.1 ... 90). even with "<>" and without.

Best regards
Stefan