Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System;
using System.Runtime.InteropServices;
public class AppUp {
public static bool isTesting = true;
[DllImport ("baKno")]
public static extern int ConnectToIntelADP(uint l1, uint l2, uint l3, uint l4, string bkid);
[DllImport ("baKno")]
using UnityEngine;
using System.Collections;
public class AppUpInitialize : MonoBehaviour {
bool connected = false;
void Awake () {
DontDestroyOnLoad(gameObject);
if(!connected) {
@jakevsrobots
jakevsrobots / ClosureTest.cs
Created July 11, 2012 22:52
yield/delegate/loop closure issue
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
public class ClosureTest : MonoBehaviour {
void Start () {
List<int> sourceData = new List<int>();
for(int i=0; i < 10; i++) {
sourceData.Add(i);
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
public class ClosureTest : MonoBehaviour {
void Start () {
List<int> sourceData = new List<int>();
for(int i=0; i < 10; i++) {
sourceData.Add(i);
@jakevsrobots
jakevsrobots / control_raw_data.py
Created October 15, 2012 00:04
Play back raw data from a file, using pitch tracking from microphone input as an index.
""" Control playback of raw data using pitch tracking from input. """
import pyaudio
import wave
import analyse
import numpy
import sys
import random
p = pyaudio.PyAudio()
@jakevsrobots
jakevsrobots / centipede.js
Created November 5, 2012 20:18
Centipede-style game in Javascript with Canvas
// Setup canvas
var canvas = document.createElement("canvas");
canvas.width = 640;
canvas.height = 320;
document.body.appendChild(canvas);
var context = canvas.getContext("2d");
// Setup keyboard
var keyboard = {
left: 37,
@jakevsrobots
jakevsrobots / browsergames.md
Created November 5, 2012 20:22
Notes for "browser games" class @ WebArt
Shader "VertexInputSimple" {
Properties {
_SoundWavePosition ("Sound Wave Position", Vector) = (0,0,0,0)
_SoundWaveRange ("Sound Wave Range", Float) = 2.0
_SoundWaveWidth ("Sound Wave Width", Float) = 0.1
_MainTex ("Texture", 2D) = "white" {}
}
// Get a Matrix4 which contains position, rotation and scale info for the cube
var matrix = cube.matrix;
// Move the matrix behind and above the cube a bit
matrix.translate(Vector3(0, 400, 400));
// Make the matrix's rotation point it at the cube's position
matrix.lookAt(matrix.position, cube.up, matrix.up);
// Set the camera's position and rotation from the matrix
Virtual Sculpture
Instructor: Jake Elliott
TA: Amanda Vanvalkenburg
Mondays 9-4, Michigan 714
This course is about using "virtual sculpture" as an organizing concept when figuring out your Experimental 3D practice(s). We will use a poetically broadened definition of "sculpture" that includes traditional sculpture, conceptual art, performance, installation, and software art. All of these categories of practice can be understood as "manipulations of form within space which can be viewed from different angles."
We will be working with several different technologies, but primarily we'll be using Maya and ZBrush for modeling, and Unity3D for creating environments and simulations.
Assignments: