A rough first attempt at a threejs game. Only works in Chrome and Firefox. Concept from Buck Rogers: Planet of Zoom.
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
<canvas id="field"></canvas> |
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
var vertexHeight = 500; | |
var planeDefinition = 20; | |
var planeSize = 15000; | |
var container = document.createElement('div'); | |
document.body.appendChild( container ); | |
var camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight,1, 20000) | |
camera.position.z = 6000; |
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
//threejs - demo - http://threejs.org/examples/webgl_particles_random.html | |
var container = document.createElement('div'); | |
document.body.appendChild( container ); | |
var camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight,1, 3000) | |
camera.position.z = 1000; //pull this back to 2000 to see what is actually going on | |
var scene = new THREE.Scene(); | |
scene.fog = new THREE.FogExp2( 0x0000F0, 0.0009 ); //color of fog - objects are all white | |
var geometry = new THREE.Geometry(); |
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
<div id="dir"> | |
Click to Zoom </div> |
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
<div class="navbar navbar-inverse navbar-fixed-top"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<a class="brand" href="#">Holy Crap My Name Is Long</a> | |
</div> | |
</div> | |
</div> | |
<div class="container"> | |
<div class="row"> | |
<div class="block a-block span12"><h1>Twitter</h1><div class="text-center lead" id="twitter"></div><p class="text-right"><button type="button" onclick="http://www.twitter.com/Xanmia" class="btn btn-primary btn-large">Follow Me</button></p></div> |
NewerOlder