You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, March 14th 2016, 9:53pm

Three.js pluggin. Having issues with adding a plane to scene

Hello

I'm using the three.js pluggin example file and having issues with just adding plane with jpg texture using PlaneBufferGeometry to scene and I'm not seeing it in the scene. When I swap the geometry to box geometry it works. I tried rotating it and messing the scale properties but still no luck.

Anyone else have issues with this?

Source code

1
var geometry = new THREE.PlaneBufferGeometry( 500, 500 );        var plane = new THREE.Mesh(geometry, new THREE.MeshBasicMaterial({map:THREE.ImageUtils.loadTexture(resolve_url_path("testme.jpg"))}));        assign_object_properties(plane, "plane", {ath:0, atv:0, scale:1.0, depth:1000});        plane.properties.rx += 50 	plane.properties.ry += 110         plane.properties.rz += 110         scene.add(plane)

2

Monday, March 14th 2016, 10:42pm

Figured it out. I had to set the plane.rotation.y = 1.0