This file contains 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
const path = require('path'); | |
const { exec } = require('child_process'); | |
// https://www.nirsoft.net/utils/dump_edid.html | |
const exe = path.resolve(__dirname, "bin", "DumpEDID.exe"); | |
const regex = /\*{65}([^\*]+)\*{65}/gm; | |
var _displays = []; | |
var _first = true; |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEngine.XR.ARSubsystems; | |
using UnityEditor.XR.ARSubsystems; | |
public class MakeImageLibrary | |
{ | |
[MenuItem("Assets/Create/AR Image Library")] |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using System.Text; | |
using UnityEngine; | |
using Valve.VR; | |
public class GameManager : MonoBehaviour | |
{ | |
[Range(10, 1000)] | |
public long LagMillis = 100; |
This file contains 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
//======= Copyright (c) Valve Corporation, All rights reserved. =============== | |
// | |
// Purpose: For controlling in-game objects with tracked devices. | |
// Update jeff at seethrouhlab | |
// - Added ability to specify a serial number to assign to the TrackedObject | |
// - Added a configurable lag value. | |
// - use with GameManager https://gist.github.com/jeffcrouse/6419e84d7060c08c17cf97b9c41ddd14 | |
//============================================================================= | |
using System.Collections; |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
/** | |
* Lessons: | |
* 1. Scripts are mini-programs that operate on a GameObject in your scene. | |
* 2. How to get a component of the GameObject this script is attached to? | |
* 3. How to modify that component over time. | |
* 4. FIX IN CLASS: There is actually a shortcut to get the transform of the GameObject. |
This file contains 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
#include "ofApp.h" | |
string input; | |
string valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ()"; | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
ofBackground(0); | |
} |
This file contains 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
#include "ofApp.h" | |
#define NUM_PARTICLES 100 | |
class Particle { | |
public: | |
void setup(ofPoint _pos, ofPoint _vel) { | |
pos = _pos; | |
vel = _vel; | |
} |
This file contains 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
#include "ofApp.h" | |
#define NUM_PARTICLES 100 | |
float radius = 5; | |
vector<ofPoint> pos; | |
vector<ofPoint> vel; | |
vector<float> alpha; | |
ofPoint lastMousePos; |
This file contains 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
#include "ofApp.h" | |
#define NUM_PARTICLES 100 | |
float radius = 10; | |
ofPoint pos[NUM_PARTICLES]; | |
ofPoint vel[NUM_PARTICLES]; | |
//-------------------------------------------------------------- |
This file contains 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
#include "ofApp.h" | |
ofPoint velocity; | |
ofPoint position; | |
ofColor color; | |
float radius = 20; | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ |
NewerOlder