Our aim is to try and do some 3d graphics in python.

Slides:



Advertisements
Similar presentations
First of all – lets look at the windows you are going to use. At the top you have a toolbar, with all your various tools you can use when customising your.
Advertisements

Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
CS 261- Winter 2009 Dynamic Array Queue and Deque.
Unit 7, Lesson 2 The Area Model for Multiplication “What do you mean, it’s the wrong kind of right?”
Physics 218, Lecture V1 Physics 218 Lecture 5 Dr. David Toback.
E28: Design Notebooks Role Playing Exercise in Gender Equity and Inclusion in Team-based Design Classes.
BALANCED LITERACY Session 5 January 7, 2009 Danna & Leslie.
GEOMETRY Eqao preparation day 5.
 What I learned from doing this project was, Surface Area. We had to find the total surface area of the cars, break down the car into shapes and find.
Introduction to TouchDevelop
Yr 9 a computer science Nice to meet you variable challenge! 1.Variable assessment Looping in python 2.Looping assessment Drawing in python using turtle.
Polygons:.
What do you think it means… if I told you that learning about idioms is a piece of cake? But, how did you know what a piece of cake means? You’re right!
Area and Perimeter 3D Shapes
Easy Adding and subtracting using number bonds Mental Maths Learning Objectives I will be able to rapidly say all my number bonds to 10.
Did someone say Music? November 7, Adding MUSIC to a web page: 1. Find your music! 2. A good website is 3. You will.
Maths Notes Number 5. Decimals
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
Surface Area And Volume Of Prisms Investigation 4.
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
Module 4 Lesson 4.
Sometimes we can tell how people are feeling by looking at them. How are they feeling?
Module 8 Lesson 6. Objective Combine shapes to create a composite shape; create a new shape from composite shapes.
Magazine Magic!!! Bret Madsen. Today’s Top Headlines Elements of a magazine Formatting pages Adding pictures Tying it all together.
Version Control.
An introduction to Logo Mike Warriner Engineering Director, Google Note: This course is not an endorsement of Logo by Google. All views in this document.
Adding and Taking Away The Easy Way Mental Maths Learning Objectives I will be able to use a number of different mental strategies to add and subtract.
Problem of the Day  Why are manhole covers round?
WRA 210: 10/30/2013 WIREFRAMES TO HTML/CSS. TODAY’S AGENDA Review: the object Review: the CSS Box Model Review: box model, and layout Intro: HTML5 structural.
Hey, Ferb, I know what we’re gonna do today! Aims: Use formatted printing. Use the “while” loop. Understand functions. Objectives: All: Understand and.
CAP4730: Computational Structures in Computer Graphics
QuizzesQuizzesQuizzesQuizzes Quizzes are small some are big They can be hard or easy. All quizzes are hard, well most of them.
Java Methods Methods contain a group of instructions that together perform a single task. For example if I want to perform the task of “making a pizza”,
10/15/02 (c) 2002 University of Wisconsin, CS559 Who Am I? Prof Stephen Chenney These notes will be online after the lecture – in fact they’re online already.
Let it Go - Anti - Bullying My tears fall down on my cheeks today Not a kind face to be seen A kingdom of isolation And they’re all just being mean My.
The Social Gamer Oliver Gabe, Jonathan Shaw & Michael Parker.
WHICH IS WHICH? WHAT CAN WE DO TO REMEMBER? Look at reflection, translation and rotation.
Lesson 4.  Add and subtract multiples of 10 and some ones within 100.  Solve one- and two-step word problems within 100 using strategies based on place.
IB Chem., 3/9/09 Good Sub note/ Friday’s homework Tests… Lab Friday, Computers Monday Finally a website Electron configurations Homework.
Math Unit 3 Lesson 6 Use the distributive property to multiply and divide using units of 6 and 7.
Higher Dimensions. x Let's say we use a pencil to mark a point on paper. x is this point. We pick a direction and move the pencil along this direction.
SCRATCHING BENEATH THE SURFACE OF ‘ASIA’S WORLD CITY’
Measure Area MAFS.3.MD.3.5b, MAFS.3.MD.3.6. What is the area of the shape below?
THE “COLLEGES I AM THINKING ABOUT” LIST IN YOUR FAMILY CONNECTIONS ACCOUNT.
Surface Area and Volume Mrs. Hubbard Room 152. Volume  Volume is the amount of space inside an object.  Volume is measured in cubic units, since there.
+ Lesson 4 and 5. + Draw the number of cubes I show with quick tens and ones. Show me your boards. Tell me the number. 24! Draw the number I show with.
First of all – lets look at the window’s you are going to use. At the top you have a toolbar, with all your various tools you can use when customising.
Graphics Lab: MyPaint Dan Maselko 1. MyPaint Description  For this assignment you will be implementing a very simple paint program.  You should be able.
Functions. functions: a collection of lines of code with a name that one can call. Functions can have inputs and outputs.
Graphics in Python On entry: Run Python 2.78 from N: drive/computing and ICT VLE: Computing home page - check your feedback Success criteria: ●Understands.
WALT: find the surface area of cubes and cuboids (Level 5) Unscramble these mathematical words! asurcefbuce uodcbi ephdtglneht uolevm.
Module 4 Lesson 8. Objective:  Use math drawings to represent the composition and relate drawings to a written method.
If you were brought up on pages of ‘hard sums’ you may think maths is difficult and boring. Worse than that you may think you’re not very good at it!!!
Hackety Hack! Written by Krystal Salerno Presented by _______________.
5. SERVING STEPS  Think of some ways and places you could serve God in the church or the youth group at Max age.  What ways do you personally want to.
Perimeter.
Area Model Multiplication
Mr Barton’s Maths Notes
Surface Area Calculate the surface area and volume of prisms and use appropriate units, such as cm2 and cm3. Justify the formulas used. Justification.
Python 19 Mr. Husch.
Mr Barton’s Maths Notes
Python Inputs Mr. Husch.
Area Of Composite Shapes
Python 19 Mr. Husch.
Modern Collections Classes & Generics
Presentation transcript:

Our aim is to try and do some 3d graphics in python.

 We looked at loops, functions and classes.  Today we are going to be trying to get a 3d point class working.

 Talk about 3D and 3d problems  Get some really basic 3D code running in python with Pygame (This may not be easy, the code sample I have is for older versions of python and Pygame)  If we succeed in this, turn it into a skeleton code using the line function in Pygame.

 How do we represent things in 3D?  Say for instance a wall?

 Viewpoint,  Where we are,  Where we are looking.

 Pygame.draw.polygon()  We will use this to draw shapes.  Our steps will be draw points,  Draw lines,  Draw polygon’s

 If we draw a wireframe version, we don’t have to worry about what’s in front of what.  Because that’s hard!

 Us, turning around.  Things we see.

 New x and y are given by  R*Cos(Angle),R*Sin(angle)  I’ll draw a diagram.

 A right way and a wrong way!  Hamilton’s walk by the canal  Wrong is easier!  So we will try wrong initially

 Wiki page Wiki page  Can we see where these come in?  We will try and wrap up a lot of the fancy maths inside functions. But to use them we have to have an idea about what is going on inside so we know what we have to feed them.

 In 3D  Add how high to walls, maybe Jelly fish float up or down.  Not doing this yet. But:- we could think about this.

 We try and get the code from the website to run.

 Start by adding one line and seeing how this works.  Then we can try drawing all the sides of the cube and watching it rotate.