var container;
var camera;
var scene;
var renderer;
var mesh;
var loader;
initialize();
function initialize(){
camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 1 , 10000);
camera.position.z = 1000;
//scene
scene = new THREE.Scene();
loader = new THREE.ObjectLoader();
loader.load( "chesstable.js", function( mesh ) {
mesh.scale.set( 1,1,1);
scene.add(mesh);
} );
renderer = new THREE.CanvasRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
renderer.render(scene, camera);
}
Hello there! I'm attempting to load a scene (composed of polygons and lights) exported from the THREE.js editor as a json file. It seems like the browser is able to load the json file, but unfortunately, all I see is a blank page. Can anyone help me troubleshoot this issue? Thanks so much in advance!