I have tried tens of different methods for hours and NONE works, like the following:
document.body.addEventListener("keydown", function() {
THREEx.FullScreen.request();
}, false);
How to make Three.js fullscreen?
- First of all, THREEx is NOT THREE.js. I don't want somebody's extension (which isn't even written completely and clarified)
- The word "fullscreen" does not exist in three.js files, at all.
- No three.js books mention how to go fullscreen either.
- In my case, all the js and webgl code resides in a JS file, NOT in HTML if that matters.
So, is this possible at all?