Jump to content

CrazyPlaya

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Hi goldenratio, no errors in console. I´ve tried this on weekend on my windows 7 machine but the same problems, tried it with chrome and ff. Don´t understand why. By debugging no abnormalities! Trying another Tutorial with using texture creates the error: Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': the cross-origin image at file:///C:/webgltests/webglearth/images/crate.jpg may not be loaded. three.js:25684 setTexturethree.js:25684 loadUniformsGenericthree.js:24607 setProgramthree.js:24136 renderBufferthree.js:22515 renderObjectst
  2. Hi @ all, I'm trying a tutorial on using three.js. Now I have the problem, that image that I'm using in MeshPhongMaterial doesn't shown on screen. Here some code. var geometry = new THREE.SphereGeometry(0.5, 32, 32);var texture = new THREE.ImageUtils.loadTexture('images/earthmap1k.jpg');var material = new THREE.MeshPhongMaterial({map: THREE.ImageUtils.loadTexture('images/earthmap1k.jpg')});material.bumpMap = THREE.ImageUtils.loadTexture('images/earthbump1k.jpg');material.bumpScale = 0.05;var earthMesh = new THREE.Mesh(geometry, material);var renderer = new THREE.WebGLRenderer();var $contai
×
×
  • Create New...