3e How to use 2 cameras three.js

Опубликовано: 03 Октябрь 2024
на канале: flanniganable
4,332
like

Learn how to use 2 cameras at the same time. One camera will follow the player from behind the player, and the other camera will be an overhead view from far away (map view) and be shown at the top right hand corner of the screen.

Timestamps:
00:00 Intro/demo
00:16 Global variables
00:36 How to create 2 cameras three.js
02:03 How to resize 2 cameras three.js
02:57 How to render 2 cameras in animate function three.js

Resources:
Three.js WebGLRenderer documentation:
https://threejs.org/docs/#api/en/rend...

Three.js multiple views example:
https://threejs.org/examples/webgl_mu...