SlideShare a Scribd company logo
1 of 5
Download to read offline
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 MEL-
     script which sets up the scene in Maya. KK are the internal camera param-
     eters, 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 edi-
     tor
  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 pat-
    tern. 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 respec-
    tively 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 con-
    trol 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

More Related Content

What's hot

Zmorph Dual Head User Manual for Printing
Zmorph Dual Head User Manual for PrintingZmorph Dual Head User Manual for Printing
Zmorph Dual Head User Manual for PrintingRyan Dunn
 
Cinema 4D R20 ESSENTIALS
Cinema 4D R20 ESSENTIALSCinema 4D R20 ESSENTIALS
Cinema 4D R20 ESSENTIALSJoe Nasr
 
Useful Tools for Making Video Games - XNA (2008)
Useful Tools for Making Video Games - XNA (2008)Useful Tools for Making Video Games - XNA (2008)
Useful Tools for Making Video Games - XNA (2008)Korhan Bircan
 
Drawing Splines on 3D
Drawing Splines on 3DDrawing Splines on 3D
Drawing Splines on 3Dgraphitech
 
Cnc tutorial mastercam
Cnc tutorial mastercamCnc tutorial mastercam
Cnc tutorial mastercamRicardo Bdn
 
Mastercam tutorial
Mastercam tutorialMastercam tutorial
Mastercam tutorialsundar sivam
 
Android Custom Views
Android Custom ViewsAndroid Custom Views
Android Custom ViewsBabar Sanah
 
NewTek Lightwave 3D: Working in 3D Space
NewTek Lightwave 3D:  Working in 3D SpaceNewTek Lightwave 3D:  Working in 3D Space
NewTek Lightwave 3D: Working in 3D SpaceSamuel Edsall
 
NewTek Lightwave 3D: Modifying Lightwave Objects
NewTek Lightwave 3D: Modifying Lightwave ObjectsNewTek Lightwave 3D: Modifying Lightwave Objects
NewTek Lightwave 3D: Modifying Lightwave ObjectsSamuel Edsall
 
Report On 3D Max
Report On 3D MaxReport On 3D Max
Report On 3D MaxTongXu520
 
Balloons tutorial by rokas petskevicius visualpelican
Balloons tutorial by rokas petskevicius visualpelicanBalloons tutorial by rokas petskevicius visualpelican
Balloons tutorial by rokas petskevicius visualpelicanRokas Petškevičius
 
Packmage CAD: carton packaging box template design software
Packmage CAD: carton packaging box template design softwarePackmage CAD: carton packaging box template design software
Packmage CAD: carton packaging box template design softwareAlex Xiao
 
Two dimensional viewing
Two dimensional viewingTwo dimensional viewing
Two dimensional viewingMohd Arif
 
computer graphics
computer graphicscomputer graphics
computer graphicsMegabi Mamo
 

What's hot (18)

Motion tween resize
Motion tween resizeMotion tween resize
Motion tween resize
 
Zmorph Dual Head User Manual for Printing
Zmorph Dual Head User Manual for PrintingZmorph Dual Head User Manual for Printing
Zmorph Dual Head User Manual for Printing
 
Cinema 4D R20 ESSENTIALS
Cinema 4D R20 ESSENTIALSCinema 4D R20 ESSENTIALS
Cinema 4D R20 ESSENTIALS
 
Animation Chess Game
Animation Chess GameAnimation Chess Game
Animation Chess Game
 
Useful Tools for Making Video Games - XNA (2008)
Useful Tools for Making Video Games - XNA (2008)Useful Tools for Making Video Games - XNA (2008)
Useful Tools for Making Video Games - XNA (2008)
 
Drawing Splines on 3D
Drawing Splines on 3DDrawing Splines on 3D
Drawing Splines on 3D
 
Scmad Chapter06
Scmad Chapter06Scmad Chapter06
Scmad Chapter06
 
Cnc tutorial mastercam
Cnc tutorial mastercamCnc tutorial mastercam
Cnc tutorial mastercam
 
Mastercam tutorial
Mastercam tutorialMastercam tutorial
Mastercam tutorial
 
Android Custom Views
Android Custom ViewsAndroid Custom Views
Android Custom Views
 
NewTek Lightwave 3D: Working in 3D Space
NewTek Lightwave 3D:  Working in 3D SpaceNewTek Lightwave 3D:  Working in 3D Space
NewTek Lightwave 3D: Working in 3D Space
 
NewTek Lightwave 3D: Modifying Lightwave Objects
NewTek Lightwave 3D: Modifying Lightwave ObjectsNewTek Lightwave 3D: Modifying Lightwave Objects
NewTek Lightwave 3D: Modifying Lightwave Objects
 
Report On 3D Max
Report On 3D MaxReport On 3D Max
Report On 3D Max
 
Balloons tutorial by rokas petskevicius visualpelican
Balloons tutorial by rokas petskevicius visualpelicanBalloons tutorial by rokas petskevicius visualpelican
Balloons tutorial by rokas petskevicius visualpelican
 
Packmage CAD: carton packaging box template design software
Packmage CAD: carton packaging box template design softwarePackmage CAD: carton packaging box template design software
Packmage CAD: carton packaging box template design software
 
Two dimensional viewing
Two dimensional viewingTwo dimensional viewing
Two dimensional viewing
 
computer graphics
computer graphicscomputer graphics
computer graphics
 
M14 overview
M14 overviewM14 overview
M14 overview
 

Similar to Maya

Paths, Masks And Blend Modes
Paths, Masks And Blend ModesPaths, Masks And Blend Modes
Paths, Masks And Blend ModesShan
 
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdfETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdfbongsantiago96
 
Fluid Mechanics Project Assignment (Total 15)  Due Dates  .docx
Fluid Mechanics Project Assignment (Total 15)  Due Dates  .docxFluid Mechanics Project Assignment (Total 15)  Due Dates  .docx
Fluid Mechanics Project Assignment (Total 15)  Due Dates  .docxbryanwest16882
 
AutoCAD Lab Manual
AutoCAD Lab ManualAutoCAD Lab Manual
AutoCAD Lab ManualCynthia King
 
3Dimenssion_lessonO_PostProcessingEffects.pptx
3Dimenssion_lessonO_PostProcessingEffects.pptx3Dimenssion_lessonO_PostProcessingEffects.pptx
3Dimenssion_lessonO_PostProcessingEffects.pptxFaris Abuhashish
 
Morgan Campbell Advanced Dtp Notes
Morgan Campbell Advanced Dtp NotesMorgan Campbell Advanced Dtp Notes
Morgan Campbell Advanced Dtp NotesIBAT College
 
Tutorial il-orthophoto-dem-neogeo
Tutorial il-orthophoto-dem-neogeoTutorial il-orthophoto-dem-neogeo
Tutorial il-orthophoto-dem-neogeoitep ruhyana
 
Image contro, and format functions in vb
Image contro, and format functions in vbImage contro, and format functions in vb
Image contro, and format functions in vbAmandeep Kaur
 
Intro to Inventor with MugTree
Intro to Inventor with MugTreeIntro to Inventor with MugTree
Intro to Inventor with MugTreekrysia
 
Adobe Illustrator CS5 Part 2 : Vector Graphic Effects
Adobe Illustrator CS5 Part 2 : Vector Graphic EffectsAdobe Illustrator CS5 Part 2 : Vector Graphic Effects
Adobe Illustrator CS5 Part 2 : Vector Graphic Effectscsula its training
 
Autocad 2007 Workbook Tutorial
Autocad 2007 Workbook TutorialAutocad 2007 Workbook Tutorial
Autocad 2007 Workbook TutorialJhongNatz
 
Maya Camera Settings to Unity
Maya Camera Settings to UnityMaya Camera Settings to Unity
Maya Camera Settings to Unity小林 信行
 

Similar to Maya (20)

Maya
MayaMaya
Maya
 
Ansys iges tutorial
Ansys iges tutorialAnsys iges tutorial
Ansys iges tutorial
 
Tutorial20
Tutorial20Tutorial20
Tutorial20
 
Paths, Masks And Blend Modes
Paths, Masks And Blend ModesPaths, Masks And Blend Modes
Paths, Masks And Blend Modes
 
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdfETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
 
Fluid Mechanics Project Assignment (Total 15)  Due Dates  .docx
Fluid Mechanics Project Assignment (Total 15)  Due Dates  .docxFluid Mechanics Project Assignment (Total 15)  Due Dates  .docx
Fluid Mechanics Project Assignment (Total 15)  Due Dates  .docx
 
Photoshop basics
Photoshop basicsPhotoshop basics
Photoshop basics
 
AutoCAD Lab Manual
AutoCAD Lab ManualAutoCAD Lab Manual
AutoCAD Lab Manual
 
Ae tut
Ae tutAe tut
Ae tut
 
Motor3 d v13
Motor3 d v13Motor3 d v13
Motor3 d v13
 
3Dimenssion_lessonO_PostProcessingEffects.pptx
3Dimenssion_lessonO_PostProcessingEffects.pptx3Dimenssion_lessonO_PostProcessingEffects.pptx
3Dimenssion_lessonO_PostProcessingEffects.pptx
 
Morgan Campbell Advanced Dtp Notes
Morgan Campbell Advanced Dtp NotesMorgan Campbell Advanced Dtp Notes
Morgan Campbell Advanced Dtp Notes
 
Tutorial il-orthophoto-dem-neogeo
Tutorial il-orthophoto-dem-neogeoTutorial il-orthophoto-dem-neogeo
Tutorial il-orthophoto-dem-neogeo
 
ANM3D-UWG-2020-12.pptx
ANM3D-UWG-2020-12.pptxANM3D-UWG-2020-12.pptx
ANM3D-UWG-2020-12.pptx
 
Geoprocessing.pptx
Geoprocessing.pptxGeoprocessing.pptx
Geoprocessing.pptx
 
Image contro, and format functions in vb
Image contro, and format functions in vbImage contro, and format functions in vb
Image contro, and format functions in vb
 
Intro to Inventor with MugTree
Intro to Inventor with MugTreeIntro to Inventor with MugTree
Intro to Inventor with MugTree
 
Adobe Illustrator CS5 Part 2 : Vector Graphic Effects
Adobe Illustrator CS5 Part 2 : Vector Graphic EffectsAdobe Illustrator CS5 Part 2 : Vector Graphic Effects
Adobe Illustrator CS5 Part 2 : Vector Graphic Effects
 
Autocad 2007 Workbook Tutorial
Autocad 2007 Workbook TutorialAutocad 2007 Workbook Tutorial
Autocad 2007 Workbook Tutorial
 
Maya Camera Settings to Unity
Maya Camera Settings to UnityMaya Camera Settings to Unity
Maya Camera Settings to Unity
 

Recently uploaded

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 

Maya

  • 1. 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
  • 2. 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 MEL- script which sets up the scene in Maya. KK are the internal camera param- eters, 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 edi- tor 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
  • 3. 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 pat- tern. 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 respec- tively 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 con- trol 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
  • 4. 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
  • 5. Figure 2: Screenshots of the scene after working steps 4, 11, 14, 16, 18, 19, 21 and 22 5