Just starting out with THREE.js and encountering a small roadblock.
Currently, I've been experimenting with modifying a sample file that I came across here:
The sample file sets up a THREE scene, adds a sphere, and a point light.
However, I'm struggling to figure out how to replace the default sphere with a model I created in Blender 2.63 and exported using the corresponding exporter.
I suspect it might be an issue with my syntax.
Below is the code snippet. Any advice on what needs to be changed to display my Blender model on the stage would be greatly appreciated.
<head>
<meta charset="utf-8" />
<title>Sample Three.js</title>
<link rel="stylesheet" href="js/Styles.css" />
</head>
<body>
<div id="container"></div>
</body>
<script src="js/Stats.js"></script>
<script src="js/Three.js"></script>
<script>
var WIDTH = 700,
HEIGHT = 600;
var VIEW_ANGLE = 45,
ASPECT = WIDTH / HEIGHT,
NEAR = 0.1,
FAR = 10000;
// Remaining code omitted for brevity
</script>