Create a web site, a landing page or a web app using fetch API!
- Must use public API to retrive some interesting data
- Every member of the team must contribute (we will ask each member role/task)
| window.addEventListener( 'resize', onWindowResize ); | |
| var scene, camera, renderer; | |
| var geometry, material, mesh, videoTexture, movieMaterial; | |
| var video, video_canvas; | |
| initWebcam(); | |
| init(); | |
| animate(); | |
| function initWebcam() { |
| <!DOCTYPE html> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one | |
| or more contributor license agreements. See the NOTICE file | |
| distributed with this work for additional information | |
| regarding copyright ownership. The ASF licenses this file | |
| to you under the Apache License, Version 2.0 (the | |
| "License"); you may not use this file except in compliance | |
| with the License. You may obtain a copy of the License at |
| import oscP5.*; | |
| import netP5.*; | |
| import toxi.geom.Quaternion; | |
| import java.util.Map; | |
| import java.util.HashMap; | |
| import processing.core.*; | |
| import java.lang.reflect.*; | |
Create a web site, a landing page or a web app using fetch API!
| function init() { | |
| player.setCamera(this); | |
| var playerObject = scene.getObjectByName( "Player", true ); | |
| if (playerObject) | |
| this.lookAt(playerObject.position); | |
| } | |
| function update(event) { | |
| if (moveUp) { | |
| this.rotation.x -= 0.01; |