Transformation
  Let’s move things around
3D?
8thlightu2
Eye
View
8thlightu2
8thlightu2
Projection
Transformations
Transformations
      are
  Cumulative
8thlightu2
Matrix Stacks
Perspective
Remember

• glOrtho
• glPerspective
• glViewport
• GL_PROJECTION
Modelview
Remember

• glTransformf
• glRotatef
• glScalef
• Load the Identity!
Homework

• Take your model and render it using
  perspective projection.
• Make more than one appear on the screen
  in different places, sizes, rotations.
• Bonus points if you animate it.

More Related Content

PDF
Doing business in China
PDF
Ruby on Rails. Aplikacje webowe
PPTX
Ruby 2.3 what’s new
PPT
Vinsol Partnership Program for busy rubyists
PDF
Ngo inc. Corporation.org
PDF
Building and Working With Static Sites in Ruby on Rails
PDF
Rademade presentation
PPTX
Accelerators_list
Doing business in China
Ruby on Rails. Aplikacje webowe
Ruby 2.3 what’s new
Vinsol Partnership Program for busy rubyists
Ngo inc. Corporation.org
Building and Working With Static Sites in Ruby on Rails
Rademade presentation
Accelerators_list

Viewers also liked (7)

PDF
Ruby Rails Overview
DOC
Muhammad Ahsan Javed - Visionet
PPTX
Getting Things Done (GTD), The Art of Stress-Free Productivity
PDF
Native vs Hybrid - Demystifying the Technology Dilemma
PDF
RSpec 3: The new, the old, the good
PDF
JFDI: how to get into a top accelerator
PDF
3 Things Every Sales Team Needs to Be Thinking About in 2017
Ruby Rails Overview
Muhammad Ahsan Javed - Visionet
Getting Things Done (GTD), The Art of Stress-Free Productivity
Native vs Hybrid - Demystifying the Technology Dilemma
RSpec 3: The new, the old, the good
JFDI: how to get into a top accelerator
3 Things Every Sales Team Needs to Be Thinking About in 2017
Ad

More from Eric Smith (8)

PDF
Web Security 100
PDF
Legacy codesmalltalk
PDF
Test Driven Cocos2d
PDF
Test driven game development silly, stupid or inspired?
PPT
Tdd in unity
PDF
Html5 episode 2
PDF
SCMC HTML5 Game Development
KEY
8thlightu3
Web Security 100
Legacy codesmalltalk
Test Driven Cocos2d
Test driven game development silly, stupid or inspired?
Tdd in unity
Html5 episode 2
SCMC HTML5 Game Development
8thlightu3
Ad

Recently uploaded (20)

PDF
My India Quiz Book_20210205121199924.pdf
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
Computer Architecture Input Output Memory.pptx
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Empowerment Technology for Senior High School Guide
My India Quiz Book_20210205121199924.pdf
Virtual and Augmented Reality in Current Scenario
Hazard Identification & Risk Assessment .pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
What if we spent less time fighting change, and more time building what’s rig...
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Introduction to pro and eukaryotes and differences.pptx
Practical Manual AGRO-233 Principles and Practices of Natural Farming
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
LDMMIA Reiki Yoga Finals Review Spring Summer
Environmental Education MCQ BD2EE - Share Source.pdf
Computer Architecture Input Output Memory.pptx
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Paper A Mock Exam 9_ Attempt review.pdf.
Chinmaya Tiranga quiz Grand Finale.pdf
Empowerment Technology for Senior High School Guide

8thlightu2

Editor's Notes

  • #5: Z goes negative away from the camera. This is the coordinates you start with before you have three transformations - the View, Model and Projection.
  • #6: View Transformation - represents the camera. You must specify the view transformation before any others, because all other transformations are relative to it. Typically at 0,0,0 going down the z axis.
  • #7: Models. This is what you’ll primarily be doing. Translate - then rotate! If you rotate first you are changing the coordinate system. You’ll move differently than you think. MODELVIEW: If you imagine the camera as an invisible object, there’s really no difference. No difference in moving camera in negative z, or moving the scene in positive z. By convention the initial transformation provides a frame of reference for all further transformations.
  • #8: MODELVIEW Imagine the camera is an invisible object that you place first.
  • #9: So each vertex you specify is represented, internally, as a 1x4 matrix. This is multiplied first by the ModelView matrix. That yields a transformed eye coordinate. That is then Multiplied by the Projection matrix. That gives you the coordinates before clipping. It gets clipped (perspective division) and finally transformed again to the viewport. Fortunately you only worry about the first two steps.
  • #12: The identity matrix. Resets the matrices.
  • #13: OpenGL Supports Matrix Stacks as well - you can push and pop if you like, useful if you’ve already calculated a bunch of transforms and don’t want to mess up.
  • #14: Code time