Skip to content

Commit

Permalink
Reverted PlaneGeometry XY to XZ change.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Aug 3, 2012
1 parent 47ee3b0 commit 686c8ef
Show file tree
Hide file tree
Showing 51 changed files with 76 additions and 69 deletions.
4 changes: 2 additions & 2 deletions build/Three.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/custom/ThreeCanvas.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/custom/ThreeExtras.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/canvas_ascii_effect.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@

plane = new THREE.Mesh( new THREE.PlaneGeometry( 400, 400 ), new THREE.MeshBasicMaterial( { color: 0xe0e0e0 } ) );
plane.position.y = - 200;
plane.rotation.x = - Math.PI / 2;
scene.add( plane );

renderer = new THREE.CanvasRenderer();
Expand Down
1 change: 1 addition & 0 deletions examples/canvas_geometry_cube.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
// Plane

plane = new THREE.Mesh( new THREE.PlaneGeometry( 200, 200 ), new THREE.MeshBasicMaterial( { color: 0xe0e0e0 } ) );
plane.geometry.applyMatrix( new THREE.Matrix4().makeRotationX( - Math.PI / 2 ) );
scene.add( plane );

renderer = new THREE.CanvasRenderer();
Expand Down
1 change: 1 addition & 0 deletions examples/canvas_geometry_earth.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@

var mesh = new THREE.Mesh( geometry, material );
mesh.position.y = - 250;
mesh.rotation.x = - Math.PI / 2;
group.add( mesh );

renderer = new THREE.CanvasRenderer();
Expand Down
2 changes: 2 additions & 0 deletions examples/canvas_geometry_terrain.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@
var material = new THREE.MeshBasicMaterial( { map: new THREE.Texture( generateTexture( data, 1024, 1024 ) ), overdraw: true } );

var quality = 16, step = 1024 / quality;

var plane = new THREE.PlaneGeometry( 2000, 2000, quality - 1, quality - 1 );
plane.applyMatrix( new THREE.Matrix4().makeRotationX( - Math.PI / 2 ) );

for ( var i = 0, l = plane.vertices.length; i < l; i ++ ) {

Expand Down
1 change: 1 addition & 0 deletions examples/canvas_interactive_voxelpainter.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
projector = new THREE.Projector();

plane = new THREE.Mesh( new THREE.PlaneGeometry( 1000, 1000 ), new THREE.MeshFaceMaterial() );
plane.rotation.x = - Math.PI / 2;
scene.add( plane );

mouse2D = new THREE.Vector3( 0, 10000, 0.5 );
Expand Down
4 changes: 2 additions & 2 deletions examples/canvas_materials_depth.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
var material = new THREE.MeshDepthMaterial( { overdraw: true } );

plane = new THREE.Mesh( new THREE.PlaneGeometry( 1000, 1000, 10, 10 ), material );
plane.doubleSided = true;
plane.position.y = - 100;

plane.rotation.x = - Math.PI / 2;
plane.doubleSided = true;
scene.add( plane );

// Cubes
Expand Down
3 changes: 1 addition & 2 deletions examples/canvas_materials_video.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,12 @@
var plane = new THREE.PlaneGeometry( 480, 204, 4, 4 );

mesh = new THREE.Mesh( plane, material );
mesh.rotation.x = Math.PI / 2;
mesh.scale.x = mesh.scale.y = mesh.scale.z = 1.5;
scene.add(mesh);

mesh = new THREE.Mesh( plane, materialReflection );
mesh.position.y = -306;
mesh.rotation.x = - Math.PI / 2;
mesh.rotation.x = - Math.PI;
mesh.scale.x = mesh.scale.y = mesh.scale.z = 1.5;
mesh.doubleSided = true;
scene.add( mesh );
Expand Down
1 change: 0 additions & 1 deletion examples/js/effects/AnaglyphEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ THREE.AnaglyphEffect = function ( renderer ) {
} );

var mesh = new THREE.Mesh( new THREE.PlaneGeometry( 2, 2 ), _material );
mesh.rotation.x = Math.PI / 2;
_scene.add( mesh );

this.setSize = function ( width, height ) {
Expand Down
1 change: 0 additions & 1 deletion examples/js/effects/ParallaxBarrierEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ THREE.ParallaxBarrierEffect = function ( renderer ) {
} );

var mesh = new THREE.Mesh( new THREE.PlaneGeometry( 2, 2 ), _material );
mesh.rotation.x = Math.PI / 2;
_scene.add( mesh );

this.setSize = function ( width, height ) {
Expand Down
1 change: 0 additions & 1 deletion examples/js/postprocessing/EffectComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ THREE.EffectComposer.camera = new THREE.OrthographicCamera( THREE.EffectComposer
// shared fullscreen quad scene

THREE.EffectComposer.geometry = new THREE.PlaneGeometry( 1, 1 );
THREE.EffectComposer.geometry.applyMatrix( new THREE.Matrix4().makeRotationX( Math.PI / 2 ) );

THREE.EffectComposer.quad = new THREE.Mesh( THREE.EffectComposer.geometry, null );
THREE.EffectComposer.quad.position.z = -100;
Expand Down
1 change: 1 addition & 0 deletions examples/misc_software.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@

plane = new THREE.Mesh( new THREE.PlaneGeometry( 200, 200 ), new THREE.MeshBasicMaterial( { color: 0xe0e0e0 } ) );
plane.position.y = - 150;
plane.rotation.x = - Math.PI / 2;
scene.add( plane );

renderer = new THREE.SoftwareRenderer2();
Expand Down
5 changes: 2 additions & 3 deletions examples/misc_sound.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,9 @@
var material_wireframe = new THREE.MeshLambertMaterial( { color: 0xffaa00, wireframe: true, wireframeLinewidth: 1 } );
material_wireframe.color.setHSV( 0.1, 0.2, 0.5 );


var plane = new THREE.PlaneGeometry( 1000, 1000, 100, 100 );
mesh = new THREE.Mesh( plane, material_wireframe );
mesh = new THREE.Mesh( new THREE.PlaneGeometry( 1000, 1000, 100, 100 ), material_wireframe );
mesh.position.y = 0.1;
mesh.rotation.x = - Math.PI / 2;
scene.add( mesh );

//
Expand Down
1 change: 0 additions & 1 deletion examples/misc_ubiquity_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@

mesh = new THREE.Mesh( new THREE.PlaneGeometry( 100, 100 ), new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff } ) );
mesh.position.y = -500;
mesh.rotation.x = Math.PI / 2;
mesh.scale.x = mesh.scale.y = mesh.scale.z = 2;
mesh.doubleSided = true;
scene.add( mesh );
Expand Down
4 changes: 2 additions & 2 deletions examples/scenes/test_scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"geometry" : "quad",
"materials": [ "textured_bg" ],
"position" : [ 0, 15, -90 ],
"rotation" : [ 1.57, 0, 0 ],
"rotation" : [ 0, 0, 0 ],
"scale" : [ 20, 20, 20 ],
"visible" : true
},
Expand All @@ -132,7 +132,7 @@
"geometry" : "plane",
"materials": [ "basic_gray" ],
"position" : [ 0, -10, 0 ],
"rotation" : [ 0, 0, 0 ],
"rotation" : [ -1.57, 0, 0 ],
"scale" : [ 100, 100, 100 ],
"visible" : true
}
Expand Down
2 changes: 2 additions & 0 deletions examples/webgl_animation_skinning.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@

floor = new THREE.Mesh( planeSimple, matSolid );
floor.position.y = -10;
floor.rotation.x = - Math.PI / 2;
floor.scale.set( 25, 25, 25 );
scene.add( floor );

floor = new THREE.Mesh( planeTesselated, matWire );
floor.rotation.x = - Math.PI / 2;
floor.scale.set( 25, 25, 25 );
scene.add( floor );

Expand Down
3 changes: 3 additions & 0 deletions examples/webgl_geometry_colors.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,19 @@

mesh = new THREE.Mesh( shadowGeo, shadowMaterial );
mesh.position.y = - 250;
mesh.rotation.x = - Math.PI / 2;
scene.add( mesh );

mesh = new THREE.Mesh( shadowGeo, shadowMaterial );
mesh.position.y = - 250;
mesh.position.x = - 400;
mesh.rotation.x = - Math.PI / 2;
scene.add( mesh );

mesh = new THREE.Mesh( shadowGeo, shadowMaterial );
mesh.position.y = - 250;
mesh.position.x = 400;
mesh.rotation.x = - Math.PI / 2;
scene.add( mesh );

var faceIndices = [ 'a', 'b', 'c', 'd' ];
Expand Down
Loading

0 comments on commit 686c8ef

Please sign in to comment.