Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Montag, 14. März 2016, 21:53

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?

Quellcode

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

Montag, 14. März 2016, 22:42

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