Problem understanding OrthographicCamera (with example). #1030
Unanswered
GuillaumeSchmid
asked this question in
Q&A
Replies: 1 comment
-
First of all, the react-three-fiber package is deprecated in favour of @react-three/fiber |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am writing a frontend application where buffers containing ram RGBA images are streamed.
I would like to display them as fast as possible with minimum latency.
The solution I am implementing, for the moment, is to display a Plane with an orthographic Camera and put the image as a texture.
But I have a problem understanding Orthographic Camera.
I would like the plane to fill the whole canvas. So I map the orthographic space to -1, 1 in X and Y and I put a simple red plane.
I did the following:
I have strange results:
I also tried to makeDefault the camera like this:
But the result is strange as well. The square has the size of a pixel...
Well, I clearly miss something. Would someone enlighten me ?
Guillaume.
Beta Was this translation helpful? Give feedback.
All reactions