Crystal balls

To begin, let's have a little fun while we apply a regular rectangular image as a texture to a sphere, just to see what it does and how bad it looks.

First, set up a new scene for this chapter by performing the following steps:

  1. Create a new scene by navigating to File | New Scene. Then, navigate to File | Save Scene As... and name it 360Degrees.
  2. Create a new plane by navigating to GameObject | 3D Object | Plane and reset its transformation using the Transform component's gear icon | Reset.
  3. Insert an instance of MeMyselfEye from the project prefab, set its Position to (0, 1, -1), and delete the default Main Camera.

Now, create the first sphere and write a rotator script while you're at it. I'm using the EthanSkull.png image that was provided ...

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.