Am new to three js. Am trying to set background image and want to change front face with image also.
Gone through more example from net, but am not getting idea.
Please tell me with simple examples.
Here is the cube link
Am new to three js. Am trying to set background image and want to change front face with image also.
Gone through more example from net, but am not getting idea.
Please tell me with simple examples.
Here is the cube link
You just can add your texture to your box:
var dice = new THREE.Mesh(
new THREE.BoxGeometry( 50, 50, 50),
new THREE.MeshBasicMaterial({
map: THREE.ImageUtils.loadTexture('texture.png')
})
);
dice.material.side = THREE.DoubleSide;
scene.add( dice );
And for background you can use SphereGeometry() geometry and change the background.