This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="container"> | |
| <video class="input_video"></video> | |
| <div class="canvas-container"> | |
| <canvas class="output_canvas" width="1280px" height="720px"> | |
| </canvas> | |
| </div> | |
| <div class="loading"> | |
| <div class="spinner"></div> | |
| <div class="message"> | |
| Loading |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const W = 'w' | |
| export const A = 'a' | |
| export const S = 's' | |
| export const D = 'd' | |
| export const SHIFT = 'shift' | |
| export const DIRECTIONS = [W, A, S, D] | |
| export class KeyDisplay { | |
| map: Map<string, HTMLDivElement> = new Map() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as THREE from 'three' | |
| import { OrbitControls } from 'https://unpkg.com/three@0.143.0/examples/jsm/controls/OrbitControls.js' | |
| import { A, D, DIRECTIONS, S, W } from 'https://gist.githubusercontent.com/wwwourstudio/b14f97877442d3a926fc79d0698bc40d/raw/15e37618fe34f52300638190b73779ac5d63f380/utils.js' | |
| export class CharacterControls { | |
| model: THREE.Group | |
| mixer: THREE.AnimationMixer | |
| animationsMap: Map<string, THREE.AnimationAction> = new Map() // Walk, Run, Idle |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| glTF D° | |