question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trying orthographic, as perspective projection hits other faces

See original GitHub issue

Hello, thanks for a really awesome library 😃

In this screenshot, I’m projecting head-on (i.e. the cubes have no rotation), yet on some cubes you can see the material on the top face (on the bottom half of the cubes, and likewise the underside of the top half of the cubes). I suspect this is because I’m using a PerspectiveCamera.

projection

I see in the example source code that the OrthographicCamera is commented out. I tried it, but the projection doesn’t work that well.

Is OrthographicCamera supported? Or is there more to be done?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
juanuyscommented, Nov 12, 2020

I fixed the aspect ratio calculation (see PR), but still see “smears” on other faces when projecting head-on, but not too bothered by that right now, so please feel free to close this issue 😃

0reactions
juanuyscommented, Jan 8, 2021

I took inspiration from your project for the OrthographicCamera example, hope you don’t mind!

Not at all 😃 Happy to assist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backface removal for Perspective Projection - Stack Overflow
as I said this works only for orthographic projection and I'm struggling with other projections. Please any help would be great.
Read more >
Orthographic Projection - an overview | ScienceDirect Topics
If this procedure is repeated for other points along the sloping face in the front view then the resulting ellipse in the plan...
Read more >
Week 5: Perspective, Lighting
The Perspective matrix projection is a 4x4 matrix transform that converts from eye space to clip space, similar to the Orthographic ...
Read more >
About View Projection Modes | AutoCAD
The Perspective with Ortho Faces mode forces all views to be displayed in perspective projection unless the model is being viewed from one ......
Read more >
What's the difference between orthographic and perspective ...
Orthogonal is right angles. Perspective projection is a drawing that depicts a three dimensional object on a two dimensional surface.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found