furnishup / blueprint3d

Build interior spaces in 3D
MIT License
1.76k stars 536 forks source link

How to integrate first person controls ? #79

Open CanKavaloglu opened 6 years ago

CanKavaloglu commented 6 years ago

I would like to include pointer lock / first person controls into the project so that I would be able to use orbit controls and first person controls at the same time. Could you guide me on how could it be done in the project ?

P.S.: I am pretty new at three js, sorry in advance if it is an absurd question.

aalavandhaann commented 6 years ago

Dear Cankavaloglu,

The first person controls have to be implemented in the main.ts inside src/scripts/three/main.ts. this is the file that contains the main class to instantiate there renderer and other threejs controls. This class contains there rendering logic. The first person controls can be implemented here.

Otherwise I have made an implementation of the same project in JavaScript es6 format. This project uses blueprint3d framework + other implementations as first person. Check it out at aalavandhaann.github.io/blueprint-js/. But please ensure to acknowledge the original author of this repository because mine is based on his work.

Regards,

0K