Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orthographic camera #10

Open
kanopa opened this issue Mar 15, 2023 · 2 comments
Open

Orthographic camera #10

kanopa opened this issue Mar 15, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@kanopa
Copy link

kanopa commented Mar 15, 2023

In the example, when changing the camera from perspective to orthographic, tracing does not seem to work, and because of this, the light creates a completely different picture, slightly overexposed and without such shadows as with a perspective camera.

// const camera = new THREE.PerspectiveCamera(40, window.innerWidth / window.innerHeight, 0.01, 250)
const frustumSize = 10
const aspect = window.innerWidth / window.innerHeight
const camera = new THREE.OrthographicCamera(
	-frustumSize * aspect,
	frustumSize * aspect,
	frustumSize,
	-frustumSize,
	1,
	1000,
)
scene.add(camera)

Perspective (default example)
perspective
Orthographic
ortho

Is it possible to achieve a similar result with an orthographic camera as a perspective one? Or is it not supported yet?

@0beqz
Copy link
Owner

0beqz commented Mar 20, 2023

It's not supported yet, I'll implement it soon.
Using orthographic projection doesn't work in the velocity pass as well as in the SSGI pass so that's why you are getting those heavy distortions.

@0beqz 0beqz added the bug Something isn't working label Mar 20, 2023
@kanopa
Copy link
Author

kanopa commented Mar 20, 2023

@0beqz Thanks for your reply, I'm looking forward to it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants