Making an Ice Cream Cone

Slides:



Advertisements
Similar presentations
Fundamentals of Engineering
Advertisements

Rotation Solids In Contact.
Perspective Sketching
This terms course Last term we both worked on learning 2 things –Processing –The concepts of graphics etc. This term will focus more on the basic concepts.
Using GLU/GLUT Objects GLU/GLUT provides very simple object primitives glutWireCube glutWireCone gluCylinder glutWireTeapot.
Three-Dimensional Figures. Vocabulary Two-dimensional figures (plane figures) – triangles, quadrilaterals, and circles. They lie in one plane.
Chapter 12.1 and 12.2.
Perspective Sketching
How to draw in 1 Point Linear
How to draw in 1 Point Linear An Artist’s Tool for showing Space and Form.
Sketching & Drawing Types “One picture is worth a thousand words.”
3D Rendering with JOGL Introduction to Java OpenGL Graphic Library By Ricardo Veguilla
3-D Views of Solid Figures
Homogeneous Form, Introduction to 3-D Graphics Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Monday, October 20,
Isometric drawings By: Curtis Denlinger. Intro This movie includes an Isometric drawing, and a Mat Plan. Isometric Drawing: Isometric Drawings are three-dimensional.
Lesson 10-2: 3-D Views of Solid Figures 1 3-D Views of Solid Figures Lesson 10-2.
Lesson 11-2 Nets and Surface Area.
Textbook - page 10 Lined paper. Vocabulary An isometric drawing of a three dimensional object shows three sides of a figure from a corner view. Workbook.
Hierarchical Modeling CS418 Computer Graphics John C. Hart.
Transforming Geometry Groundhog Day. Drawing Quads In a 300 by 200 window, draw two quads of different colors. Don’t show the grey grid.
Engineering Design and Presentation Solid Modeling Solid Modeling Drawing UNT in partnership with TEA, Copyright ©. All rights reserved. UNT in partnership.
Modeling with OpenGL Practice with OpenGL transformations.
LEARN ABOUT LINEAR PERSPECTIVE.
3-D SHAPES.
Transformations Tutorial
January 27  Pick up the 2 pages from the front.  Get your composition notebooks out.
Views of Solids Geometry D. Sketching the views of the solid. First, use blocks to construct a similar solid to the one shown at the left.
Engineering Design and Presentation Solid Modeling Solid Modeling Drawing UNT in partnership with TEA, Copyright ©. All rights reserved. Copyright © Texas.
Drawing in Perspective. The first thing you need to know is that in perspective drawing, every set of parallel lines has its own vanishing point. Remember.
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.
Vocabulary Thinking Maps Directions Note: This is presented as a group activity. You’ll need to make adjustments where necessary if completing this individually.
Perspective Drawings Linear perspective is a geometric method of representing the apparent diminishing of scale as the distance from object to viewer increases.
On to 3D Introduction to Computer Graphics and Animation (Principle of Computer Graphics) Rattapoom Waranusast.
Nesting and Floating. Nesting and Floating Elements To make our page content appear the way we want, and to make the best use of screen space, we can.
1 Point Perspective Students will tape down a piece of paper and go through the steps As we go through the presentation.
Coordinate Systems Lecture 20 Wed, Oct 15, Object Coordinates Each object has its own “local” coordinate system, called object coordinates. Normally.
Geometry Cakes and Pancakes.
The Unit Circle. Right now… Get a scissors, and one copy of each circle (blue, green, yellow, white). Sit down and take everything BUT that stuff & your.
OpenGL Matrices and Transformations Angel, Chapter 3 slides from AW, Red Book, etc. CSCI 6360/4360.
Spatial Visualization Let’s Learn about Spatial Vis!
Surface Area Total area on the surface of the figure, amount of paper needed to cover it.
How to draw in 1 Point Linear
Measure It!! Estimate Actual Measurement Object
Using One Point Perspective to Combine Shapes
Transformations Introduction to Computer Graphics and Animation
Camera Position (5.6) we specify the position and orientation of the camera to determine what will be seen. use gluLookAt (eye x, y, z, at x, y, z, up.
Rocket Difficulty Time Approximately 30–35 minutes Art Deco Clock
ISOMETRIC PROJECTION RATHER DRAWING
Transformation and Viewing
Perspective Sketching
Class 10 Part 1 What values to use for Frustum The Trick
Perspective Sketching
Geometric Transformations
Chapter 4/5 glMatrixMode Modeling Transformations glTranslate glScale
Chapters 5/4 part2 understanding transformations working with matrices
Chapter 1- Lesson 2 Making Bar Graphs
Splash Screen.
Lesson 54 Representing Solids.
Geometric Transformations
Page 1.
drawing curved surfaces
Volume of Pyramids, Cones & Spheres
How to draw in 1 Point Linear
Positioning.
Class 10 Part 1 What values to use for Frustum The Trick
Finding the Volume of Any Prism or Cylinder and Any Pyramid or Cone
Translate, Rotate, Matrix
Rotation Solids In Contact.
3-D Views of Solid Figures
Geometric Transformations
Presentation transcript:

Making an Ice Cream Cone How to build Making an Ice Cream Cone

Take a piece of paper, lay it on the desk, and draw the x and z axes on it. Label it with +x, -x, +z, -z +x is to the right +z is toward you

Start with a copy of box.cpp Notice the viewing box   glFrustum(-5.0, 5.0, -5.0, 5.0, 5.0, 100.0); Notice everything is being translates back 15 units glTranslatef(0.0, 0.0, -15.0); Comment out the line that creates a box Replace it with code that makes one fat red point at the origin. Run it and see that it is working

Some building blocks: glutWireSphere(radius, slices, stacks); https://www.opengl.org/resources/libraries/glut/spec3/node81.html glutWireCone(base, height, slices, stacks); https://www.opengl.org/resources/libraries/glut/spec3/node83.html

Below making the red dot, make a green cone, vertex down. you will need to rotate it glRotated(angle, x, y,z); put glPushMatrix and glPopMatrix around the rotation and the cone. run it and see where it is relative to the dot.

Below making the cone, make a sphere of the same radius. Pick a flavor Below making the cone, make a sphere of the same radius. Pick a flavor. Translate it, if necessary, to be sitting inside and above the cone. glTranslated(x,y,z); run it

Below making the icecream, make a cherry on top, a solid sphere of a small radius. Translate it to be sitting on top of the ice cream. Around the translate and making the little sphere put glPushMatrix and glPopMatrix. Run it.

Translate the entire icecream cone 5 units to the right. Using pushMatrix and popMatrix, have that translation only apply to the icecream cone.

Notice the icecream appears to be in front of the cone, not in it Notice the icecream appears to be in front of the cone, not in it. Add depth. In main:    glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB | GLUT_DEPTH); In drawscene: glClear(GL_COLOR_BUFFER_BIT| GL_DEPTH_BUFFER_BIT); glEnable(GL_DEPTH_TEST);