0

I'm following the advice in Create a concave halfsphere with Three.js to create a halfsphere in Three.js that I plan on mapping some fisheye video to. An example (with lens cap on) is here.

I'm just trying to get the sphere to show first and it disappears whenever I try and turn it into a half sphere.

See the code at http://codepen.io/bknill/pen/vXBWGv.

var geometry = new THREE.SphereGeometry(5000,16,16, Math.PI/2, Math.PI*2, 0, Math.PI);

var material = new THREE.MeshBasicMaterial({ color: 0x2980b9});
material.side = THREE.BackSide;

var sphere = new THREE.Mesh(geometry, material);

scene.add(sphere);

How can I get this halfsphere to show up?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
beek
  • 3,522
  • 8
  • 33
  • 86
  • Why are you using such an ancient version of three.js? – Leeft Aug 31 '16 at 06:46
  • How can you tell that ? I'm just using the version of three.js in this codepen i found. Where do I update it !? – beek Aug 31 '16 at 06:53
  • It says in the console it's using r58; the settings of the codepen give that version. r80 is the current version. Changing that you may have to update the pen to run at all, but you're better off asking questions that run on the current version of the library. – Leeft Aug 31 '16 at 07:05
  • It's running 80 now http://codepen.io/bknill/pen/vXBWGv – beek Aug 31 '16 at 07:10

0 Answers0