Maya tutorial. 1 Camera calibration

Similar documents
An Introduction to Maya. Maya. Used in industrial design, CAD, computer games and motion picture effects. The ambition is what get

How to Create a Simple Animation Using MAYA

ARCHITECTURE & GAMES. A is for Architect Simple Mass Modeling FORM & SPACE. Industry Careers Framework. Applied. Getting Started.

After saving out your Rhino model as an IGES file: Open up Maya Go to File - Import

Maya Lesson 3 Temple Base & Columns

Beginners Guide Maya. To be used next to Learning Maya 5 Foundation. 15 juni 2005 Clara Coepijn Raoul Franker

MAYA; AN INTRODUCTION TO MAYA; EndOfLine.info;

Tutorial - Steering Wheel

First Animated Model Yellow Submarine

1st Point. 2nd Point. hold shift & drag along Y. Splines

Graphical Editors used at CSC/Nada earlier. Main competitors. What is Maya? What is Maya? An Introduction to Maya. Maya

BCC Sphere Transition

4) Finish the spline here. To complete the spline, double click the last point or select the spline tool again.

Lesson 11. Polygonal Spaceship

STARTING COMPOSITING PROJECT

CGS 3220 Lecture 4 Shaders, Textures, and Light

Mesh Modeling Vase and Flower

Turn your movie file into the homework folder on the server called Lights, Camera, Action.

CGS 3034 Lecture 2 Ball Bounce

Cast Shadows Maya 2013

Dave s Phenomenal Maya Cheat Sheet The 7 Default Menus By Dave

Maya Lesson 6 Screwdriver Notes & Assessment

Topics and things to know about them:

Autodesk Maya 2019 BASICS GUIDE

Animation Basics. Learning Objectives

Graphics and Interaction Rendering pipeline & object modelling

Create a Rubber Duck. This tutorial shows you how to. Create simple surfaces. Rebuild a surface. Edit surface control points. Draw and project curves

Graphics for VEs. Ruth Aylett

CGS 3220 Lecture 13 Polygonal Character Modeling

Mesh Modeling Dice Boolean

12 MEL. Getting Started with Maya 631

Flair Geometry Editor Part II. FLUKA Beginner s Course

Advanced Lighting Techniques Due: Monday November 2 at 10pm

Flair Geometry Editor Part II. FLUKA Beginner s Course

Text Page 1 Chris Shaw

CS 4620 Midterm, March 21, 2017

Chapter 6- Lighting and Cameras

Transforming Objects and Components

Graphics for VEs. Ruth Aylett

O Hailey: Chapter 3 Bonus Materials

Computer Graphics Shadow Algorithms

Graphics Hardware and Display Devices

CS 381 Computer Graphics, Fall 2008 Midterm Exam Solutions. The Midterm Exam was given in class on Thursday, October 23, 2008.

NURBS Sailboat on Ocean (Modeling/Animation)

3D Programming. 3D Programming Concepts. Outline. 3D Concepts. 3D Concepts -- Coordinate Systems. 3D Concepts Displaying 3D Models

Course Title: Computer Graphics Course no: CSC209

Computer graphics Labs: Blender (1bis/3) SketchUp model importation and animation

Photoshop PSD Export. Basic Tab. Click here to expand Table of Contents... Basic Tab Additional Shading Tab Material Tab Motion Tab Geometry Tab

Mia Round Corners Node

Maya 2014 Introduction to Maya

Sculpting 3D Models. Glossary

A Guide to Autodesk Maya 2015

Module 4A: Creating the 3D Model of Right and Oblique Pyramids

3 AXIS STANDARD CAD. BobCAD-CAM Version 28 Training Workbook 3 Axis Standard CAD

CS451Real-time Rendering Pipeline

Deferred Rendering Due: Wednesday November 15 at 10pm

Lathe Modeling Wine Glass

5 Subdivision Surfaces

booklet_new 11/7/02 2:39 PM Page 1 Learning Maya R

OXFORD ENGINEERING COLLEGE (NAAC Accredited with B Grade) DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING LIST OF QUESTIONS

Modeling Technology Group

Converting Project Maps to File Textures

Computer Animation I. Kerlow sections 2.4, 10.1, 6.3, 6.6 and chapter 7. Optional BG reading: Kerlow chapter 1.

Multimedia Signals and Systems Virtual Reality and VRML

Inventor 201. Work Planes, Features & Constraints: Advanced part features and constraints

Lecturer Athanasios Nikolaidis

3D Studio Max Lesson 1.1: A Basic Overview of 3DSMax's Main Tool Bar

Character Modeling COPYRIGHTED MATERIAL

COPYRIGHTED MATERIAL. Working in Maya. Chapter 1. Maya Nodes

COMP30019 Graphics and Interaction Rendering pipeline & object modelling

Lecture outline. COMP30019 Graphics and Interaction Rendering pipeline & object modelling. Introduction to modelling

1 - Introduction Training Guide Objectives WorkXplore Environment Importing and Opening CAD Files 5

LIGHTING - 1. Note. Lights. Ambient occlusion

CGDD 4113 Final Review. Chapter 7: Maya Shading and Texturing

Chapter 23- UV Texture Mapping

CGS 3220 Lecture 17 Subdivision Surfaces

TSBK03 Screen-Space Ambient Occlusion

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY CS2401 COMPUTER GRAPHICS QUESTION BANK

Course: 3D Design Title: Mesh Modeling Hand Dropbox File: Hand.zip Blender: Version 2.41 Level: Beginning Author; Neal Hirsig

Character Modeling IAT 343 Lab 6. Lanz Singbeil

Using LightWave s Motion Blur to Achieve a Hand Drawn Line Effect:

GMH 2 Documentation 2 INSTALLING RUNNING GMH 2.6 OVERVIEW STRUCTURE GMH2 MANUAL SURFACE EDIT TAB...

Computer Graphics I Lecture 11

Creating a Snowman Scene

Intro to Lights & Rendering Maya 2013

Training Guide Getting Started with WorkXplore 3D

Walls and Windows. Here is a useful link to explore for later -- AutoCAD drawing tutorials:

Guide Contents Introduction Useful Information Navigating the Scene Hotkeys Placing and Manipulating Objects The Builder Cube Builder Cube Edit

To familiarize of 3ds Max user interface and adapt a workflow based on preferences of navigating Autodesk 3D Max.

3D Slider Crank Tutorial (Professional)

Creating the Tilt Game with Blender 2.49b

2nd Set of Gollum s Hotkeys

Blender Notes. Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 1 The Blender Interface and Basic Shapes

CHAPTER 1 Graphics Systems and Models 3

Rendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane

Maya 2014 NURBS Modeling Tutorial Airship

Rendering & Project Management. Dillon Courts Sandy Natarajan Spencer Balogh Do Young Park

Extrude. Taper. STEP 04: Ctrl +V _ select Copy from the clone window _ name the copy: Slabs Mesh _ click OK

This is the opening view of blender.

Diploma in Graphics Design. Examinations for / Semester 1

Transcription:

Maya tutorial In this tutorial we will augment a real scene with virtual objects. This tutorial assumes that you have downloaded the file Maya.zip from the course web page and extracted it somewhere. 1 Camera calibration The first step is to calibrate our camera, so that we can set the camera parameters in Maya. This is done using Matlab and the camera calibration toolbox. 1. Start Matlab and change the working directory to the location where you extracted the files 2. Add the path to the calibration toolbox (folder TOOLBOX_calib) to the path using File->Set Path 3. Run calib_gui and select Standard 4. In the calibration GUI click on the button Image names and enter pattern for the basename, then enter j for jpeg 5. In the calibration GUI click on the button Extract grid corners 6. Answer all questions with the default values by pressing enter 7. Select the corners of the inner 7x5 grid in the first image in the order upper left, upper right, lower right, lower left and answer all question by pressing enter (see figure 1) 8. Select the corners of the inner 7x5 grid in the second image in the order lower left, upper left, upper right, lower right and answer all question by pressing enter (see figure 1) 9. In the calibration GUI click on the button Calibration. The resulting pixel errors should be smaller than one pixel (if you clicked well they should be around 0.18) 1

The second step is to find the external camera parameters of the image which we want to augment. This is also done using the camera calibration toolbox. 1. In the calibration GUI select Comp. Extrinsic and enter scene and j to select the image 2. Answer all questions by pressing enter and click the corners of the inner 7x5 grid in the order upper left, upper right, lower right, lower left (see figure 1) 3. Run createmayascene(kk,rc_ext,tc_ext, scene.jpg ) to create the MELscript which sets up the scene in Maya. KK are the internal camera parameters, Rc_ext and Tc_ext are the external camera parameters of the camera viewing our scene and the last parameter is the name of the image which is to be used as the backgound of the scene. Figure 1: Corner points on pattern1 and pattern2 and the world coordinate system of the scene The next steps will be done in Maya. 1. Start Maya 2. Go to Window->Settings/Preferences->Preferences: Under Settings set the up-axis to z and under Settings->Cameras set the far clip plane to 100000. Save the changes 3. Go to Window->General Editors->Script Editor: Select File->Source Script and open the script you just created (setupscene.mel). Close the script editor 4. Change the active camera to camera 1, by selecting Panels->Perspective- >camera1 in the view panel 5. In the view go to View->Camera Attribute Editor and set the far clip plane to 10000 2

6. In the view go to View->Image Plane->Image Plane Attributs->imagePlane1 and set the depth to 9000 7. Go to Create->Polygon Primitives and disable Interactive Creation 8. Click somewhere in the view panel and press 6 to enable shaded rendering. Now the middle of the calibration grid should be gray. 9. Right click on the plane over the calibration grid and keep the button pressed 10. Select Assign New Material->Lambert 11. On the right in the attribute editor click on the little checkerboard next to color and select Checker. The plane should now show a checkerboard pattern. To make it look like the real calibration grid we have to change some settings. In the attribute editor go to the second tab called place2dtexture1. Set Repeat UV to 2.5 and 3.5 respectively and Offset to 0.5 and 0.0 respectively and press enter. Now the checkerboard should look correct. 12. Go to Create->Polygon Primitives->Sphere to create a sphere 13. In the attribute editor go to the polysphere1 tab and set the radius to 20. In the psphere1 tab set the z-value of the translation to 20. The sphere should now be lying on the table. 14. Assign a color to the sphere by right clicking and selecting Assign New Material->Phong. Set the color in the attribute editor to yellow. 15. Go to Create->CV Curve Tool and draw a curve on the table by setting control points. Make sure that the curve also passes behind the book holders. Press enter after you set the last point. 16. In the attribute editor set the translation to 20 units in the z-direction 17. In the lower region of the window set the length of the sequence to 1000 (in the field which contains 24.00) 18. Select animation from the drop-down menu below the menu-bar. Select the sphere and while holding the shift-key select the curve. go to Animate- >Motion Paths->Attach to Motion Path. When you click on the play button in the lower right hand corner of the window you should see the sphere moving on the table. However it is still visible when passing behind the book holders. 3

19. Create a construction plane (Create->Construction Plane). Go to plane1 in the attribute editor and set the rotation about the x-axis to 90 degrees. Set the translation to -200, 110 and 100 respectively and the scaling to 350, 100 and 1 respectively. Now it should be passing through the middle of the book holders. 20. Make the plane live (Modify->Make Live). The plane should turn green and you cannot see the bookholders anymore. To change this uncheck Planes in the show menu in the view panel. 21. Select Polygons from the drop-down menu below the menu bar. Select Mesh->Create Polygon Tool. Press 4 to switch to wireframe mode. Follow the outline of the bookholders starting with the duck. Before closing the polygon we still need to remove the small hole at the back of the duck. To do this click the first vertex of the hole while holding the ctrl button. Release the ctrl button and set the other vertices normally. Once you set the last vertex press enter. Repeat the same procedure for the elephant. Press 6 to go to the shaded rendering. 22. Assign the background color material to the polygons (Right click and hold, Assign New Material->Use Background). You will not see a change in the view. 23. Render the scene (Rendering in drop down menu, Render->Render Current Frame) and you should only see the sphere without the polygons. 24. Create a ground plane (Create->Polygon Primitives->Plane), covering the whole table (set it s size to 1000x2000). Move it by -1 in the z-direction. give it the background material 25. Add an ambient light (Create->Lights->Ambient Light) 26. Add a spot light (Create->Lights->Spot Light). In the attribute editor set the intensity to 0.8 and the cutoff angle to 140. Go to the light settings and enable depth-map shadows. Set the translation to -200 100 400. 27. Go to the render settings. Select image sequence, avi and set the range of the frames to render to 1-1000. Make certain that the render camera is camera1. 28. In the Render menu select Batch Render and wait until the rendering is done. (This can take a while). 4

Figure 2: Screenshots of the scene after working steps 4, 11, 14, 16, 18, 19, 21 and 22 5