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

How can orthographic to perspective camera? #55

Open
whilemouse opened this issue Mar 28, 2019 · 0 comments
Open

How can orthographic to perspective camera? #55

whilemouse opened this issue Mar 28, 2019 · 0 comments

Comments

@whilemouse
Copy link

Hi. I'm using your library very well. Thank you. :)
I asked about the contents of the previous similar mail.
How to change a perspective camera orthorgrapic camera.

Your responses

to 3D: PerspectiveCamera is possible.

const camera = new PerspectiveCamera( 20.0, canvas.width / canvas.height, 100, 5000 );
//You need to adjust modelZ accordingly, play around with this: let modelZ = 2725;

if(t3d.camera.isPerspectiveCamera) { 
    modelZ = (2725 / 480) * (canvasLayout.h);
} 

Best Regards Marcel

My question

  1. Why fov is 20.0?

  2. What does modelz's 2725, 480, canvasLayout.h mean and why?

  3. perspective on the camera z axis fluid. 
    BRFFace does not return when I got a z axis, you can get this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant