Skip to content

Orthographic camera #10

Open
Open
@kanopa

Description

@kanopa

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions