Magic orbs

For the next example, we'll look at the sphere from the inside, mapping an ordinary image onto its inside surface. Then, we'll put a solid colored shell around the outside. So, you have to actually walk up to the sphere and stick your head into it to see what's there!

Follow these steps to build it (I'm using the GrandCanyon.png image that we introduced back in Chapter 2, Objects and Scale, but you can use any image—preferably a landscape with big sky):

  1. Move Sphere 1 out of the way and set its Position to (-3, 1.5, -1.5).
  2. Create a new sphere by navigating to GameObject | 3D Object | Sphere, set its Position to (0, 1.5, 0), and name it Sphere 2.
  3. Disable its Sphere Collider component by unchecking the checkbox.
  4. Create a new material by navigating ...

Get Unity Virtual Reality Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.