mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.77k stars 35.38k forks source link

r59 broke CSS3Drenderer #3651

Closed pakastin closed 11 years ago

pakastin commented 11 years ago

This is not working anymore with r59: http://threejs.org/examples/css3d_panorama.html

WestLangley commented 11 years ago

The fix:

var sides = [
    {
        url: 'textures/cube/Bridge2/posx.jpg',
        position: new THREE.Vector3( -512, 0, 0 ),
        rotation: new THREE.Euler( 0, Math.PI / 2, 0 )
    },

    ... etc.

Then:

object.position.copy( side.position );
object.rotation.copy( side.rotation );
mrdoob commented 11 years ago

Ah. Good catch @WestLangley. I was supposed to take a look at what was wrong with that example today but I already was thinking that the problem was in a totally different place.

WestLangley commented 11 years ago

Ooh. I like your way even better, @mrdoob. :-)

mrdoob commented 11 years ago

;)

pakastin commented 11 years ago

Wow, that was fast - thank you so much! :+1: