Skip to content

Instantly share code, notes, and snippets.

@darkwave
darkwave / basic.js
Created April 15, 2017 10:09
Webcam as texture in three.js
window.addEventListener( 'resize', onWindowResize );
var scene, camera, renderer;
var geometry, material, mesh, videoTexture, movieMaterial;
var video, video_canvas;
initWebcam();
init();
animate();
function initWebcam() {
@darkwave
darkwave / index.html
Created January 28, 2018 00:02
GGJ2018
<!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
@darkwave
darkwave / Chordata.java
Created July 21, 2018 19:25
Chordata for Processing
import oscP5.*;
import netP5.*;
import toxi.geom.Quaternion;
import java.util.Map;
import java.util.HashMap;
import processing.core.*;
import java.lang.reflect.*;

Mini Hackathon CYF Rome 2019

The Challenge

Create a web site, a landing page or a web app using fetch API!

Requirements

  • Must use public API to retrive some interesting data
  • Every member of the team must contribute (we will ask each member role/task)
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;