1

当我忽略球体形式 scene.add() 相交工作时创建了球体和平面几何图形,但是

这是代码.. http://jsfiddle.net/praveenv29/PZeY4/

for ( var i = 0; i<10; i ++ ) 
        {
    var gloom = new THREE.ImageUtils.loadTexture('../map_pin.png' );
materialr = new THREE.MeshLambertMaterial( { color:Math.random() * 0xffffff ,side: THREE.DoubleSide} )
    var geometry = new THREE.PlaneGeometry(10,15,2, 2);
    var object = new THREE.Mesh(geometry, materialr);   
                object.position.x = Math.random() * 2 - 1;
                object.position.y = Math.random() * 2 - 1;
                object.position.z = Math.random() * 2 - 1;


                object.position.normalize();
                object.position.multiplyScalar(125 );    

    scene.add( object );
    }

并且一旦添加球体场景相交不起作用(http://jsfiddle.net/praveenv29/PZeY4/1/

var texture = THREE.ImageUtils.loadTexture('../world.jpg'); 
materials = new THREE.MeshBasicMaterial( {color:0x000000, wireframe:true}); 

var cone = new THREE.SphereGeometry(120,25,25);

var coneMesh = new THREE.Mesh(cone,materials);

coneMesh.position.y =0;
coneMesh.rotation.set(0,0,0);   
scene.add( coneMesh );

在几何合并中尝试过可能缺少某些属性????

4

0 回答 0