regcs / AliceLG

A Blender add-on for the use of Blender with the Looking Glass holographic displays.
GNU General Public License v3.0
103 stars 23 forks source link

90 degree viewing mode #122

Closed SinanAkkoyun closed 11 months ago

SinanAkkoyun commented 1 year ago

Hi, I need to use the portrait at a 90 degreeb angle to the table instead of 60, but the viewing eye pos should still be higher than the display.

In order for that to work I would need to modify the projection matrix of my camera to skew the view to correct for the camera offset whilst keeping the focal plane perpendicular to the table (kinda like trapezoid correction ig, I saw that quilt rendering does that for the side views)

I would also be willing to do the modifications myself and PR if I could please get mathematical help Thanks :)

SinanAkkoyun commented 1 year ago

For more context: When my eye vector does not align with the display normal (aka when my eyes are above the display and looking at it), projection skewing is needed, because the focal plane must stay parallel to the display (if I simply turn the camera, the focal plane does not align with the display)

How would I go about that? Or would it be an easy task for you to add a vertical angle offset slider that skews the projection matrix (just like the quilt side view renders already do)?

regcs commented 11 months ago

Hi @SinanAkkoyun, if I saw it correctly, Bryan already answered you on the discord server. Is this issue still relevant or can it be closed?

SinanAkkoyun commented 11 months ago

Hi, Bryans answer was not really helpful, pointing a camera at an object is not equivalent to seeing the object in ones peripheral vision, the LG quilt rendering concept is based upon that

However, I found a simple slider that does the "shearing" of the camera view without changing rotation or position :)