TINKER PiEDESIGN IN INDIA
Basic

My First VR WorldBuild a 3D world with code: a sky, grass, a red box, a ball, a tree and a sign.

You write a short TinkerPie Python program by following the Code guide in the workspace, then press Run. The sample program and step-by-step guide are always there to help.

What you will learn

  • What virtual reality (VR) is
  • 3D positions: x, y and z
  • Building scenes with code

What you need

  • Any laptop, tablet or phone. For VR: a phone and a phone VR viewer (TinkerPie VR viewer or any phone headset)

Steps

  1. Type the program from the Code guide, then press Run.
  2. Drag the picture to look around.
  3. On a phone, press VR headset and put the phone in a VR viewer.

How it works

VR shows a 3D world for each eye. x is left/right, y is up/down and z is near/far (negative z is in front of you). Each command adds one thing at a position.

Coding concepts

3D position
(x, y, z): right, up, and towards you.
Keyword argument
color="red" sets an option by name.

Expected output

A sunny world with grass, a red box, a blue ball, a tree and a "Hello VR" sign in front of you.

Challenges

  • Add three more trees.
  • Change the sky to "sunset".
  • Build a tower with boxes on top of each other.

More AR/VR projects

Basic10 minAR / VR, Computer Vision

AR Sunglasses

Put cool AR sunglasses on every face in the camera, like a photo filter app.

  • What augmented reality (AR) is
  • Placing pictures on detected faces
  • Filters you see in apps
Hardware: Laptop, tablet or phone cameraAI Cube: Virtual Cube only · Virtual Cube: laptop or phone camera
Basic15 minAR / VR, Gesture Recognition

AR Filter Switcher

Change your AR face filter by holding up 1, 2, 3 or 4 fingers.

  • Two AIs together: face and hand
  • Choosing with if / elif
  • Interactive AR
Hardware: Laptop, tablet or phone cameraAI Cube: Virtual Cube only · Virtual Cube: laptop or phone camera