Modeler Help Session CSEP 557, Spring 2009. Help Session Overview The Modeler Application Modeler Code Overview Constructing Your Model Hierarchical Modeling.

Slides:



Advertisements
Similar presentations
Working with Profiles in IX1D v 3 – A Tutorial © 2006 Interpex Limited All rights reserved Version 1.0.
Advertisements

Pages and boxes Building quick user interfaces. learning objectives o Build a quick UI with pages and boxes o understand how pages and boxes work o click.
CSE 457 Modeler Help Session Lovingly brought to you by: TA Steve.
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.
CLASS 4 CS770/870. Translation Scale Multiplying Matrices. The R C rule What happens when we do two translates? What happens when we do two scales?
Graphics Pipeline.
CSE 557: Impressionist Help Session Ian Simon. What we’ll be going over Getting Set Up The Skeleton Code OpenGL Basic FLTK How to make a new brush Good.
Due: Thursday, April 28 th by the stroke of midnight! TA: Jeff Booth.
MAT 594CM S2010Fundamentals of Spatial ComputingAngus Forbes Overview Today: - Make sure everyone is set up with an OpenGL environment - OpenGL basics:
Lab 1: OpenGL Tutorial CS 282. What’s the plan for today? Go over our framework code. Learn some basic OpenGL! Reveal Lab 1 Answer questions.
Modeler Help Session CSE 457, Spring 2006 Modeler Due: Thursday, October 26th Modeler Artifact Due: Monday, Oct. 30th Project TA: Sierra
Transformations Objectives Understand how transformations work in 2D and 3D Understand the concept of homogenous coordinate system Understand scene graphs.
OpenGL 3D and Animation for Simulating a Solar System
Modeler Help Session CSE 457, Fall 2005 Modeler Due: Oct 28, Friday Modeler Artifact Due: Oct 31, Monday Project TA: Jeremy
OpenGL Help Session CS248 Fall 2006 Zhengyun Zhang.
TA: Zhicheng Yan Sushma S Kini Mary Pietrowicz
Graphical Objects and Scene Graphs CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
OpenGL (II). How to Draw a 3-D object on Screen?
2IV60 Computer Graphics 2D transformations
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
Hierarchical Transformations Hierarchical Models Scene Graphs
Animator Project CSE 557. In this project… Create your own hierarchical model Create keyframe animations Create smooth keyframe animations Create particle.
JQuery Page Slider. Our goal is to get to the functionality of the Panic Coda web site.Panic Coda web site.
COMP 175: Computer Graphics March 10, 2015
Mouse-Based Viewing & Navigation Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Monday, November 3, 2003.
THE BIG PICTURE. How does JavaScript interact with the browser?
CDM105 Session 9 Macromedia FLASH MX 2004 Part 2 : Animation with Motion Tweening and Shape Tweening.
Image Synthesis Rabie A. Ramadan, PhD 2. 2 Java OpenGL Using JOGL: Using JOGL: Wiki: You can download JOGL from.
Data Structures for Scenes, The Basics of Scene Graphs Glenn G. Chappell U. of Alaska Fairbanks CS 481/681 Lecture Notes Friday,
Homogeneous Form, Introduction to 3-D Graphics Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Monday, October 20,
 Checking out, building, and using the sample solution  Part 1: Surface of Revolution  Part 2: Hierarchical Modeling  Part 3: Blinn-Phong Shader 
Lecture 11: Exam Revision 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 718,  ex 2271  Coursework.
Computing & Information Sciences Kansas State University Lecture 19 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 19 of 42 William H. Hsu.
More on Drawable Objects, Hierarchical Objects Glenn G. Chappell U. of Alaska Fairbanks CS 481/681 Lecture Notes Wednesday, January.
Modeling with OpenGL Practice with OpenGL transformations.
Computer Science Term 1, 2006 Tutorial 2 Assignment 3 – The Virtual World.
Review of OpenGL Basics
Control flow for interactive applications CSE 3541 Matt Boggus.
Ray Tracer Spring 2008 Help Session. Outline Project Web Resources What do you have to do for this project? Ray Class Isect Class Requirements Tricks.
Image Synthesis Rabie A. Ramadan, PhD 4. 2 Review Questions Q1: What are the two principal tasks required to create an image of a three-dimensional scene?
Splatter! ALPHA Presentation By: David Kikuta March 29, 2011.
Animator Help Session. Surface of Revolution You will write OpenGL code to draw a surface by rotating a curve. Each vertex must have an appropriate: 
Advanced Stuff Learning by example: Responding to the mouse.
1/50 CS148: Introduction to Computer Graphics and Imaging Transforms CS148: Introduction to Computer Graphics and Imaging Transforms.
Overview  Basic requirements of implementation  Image resource  Texture mapping  Advanced requirements of implementation  KGL sprite class.
3D TERRAIN VIEWER: Basics HYPACK D Terrain Viewer (3DTV)
Project 1: Impressionist Help Session Zinnia Zheng
1 Geometric Transformations-II Modelling Transforms By Dr.Ureerat Suksawatchon.
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
CSCE 441: Computer Graphics: Hierarchical Models Jinxiang Chai.
OpenGL: The Open Graphics Language Technology and Historical Overview By Ricardo Veguilla.
Mind Mapping with Bubbl.us. The Bubbl.us Homepage Click to create a bubbl.us account Sign in or, To access, type
School of Computer Science
Hank Childs, University of Oregon
Introducing Blender.
Introducing Blender.
CSCE 441: Computer Graphics: Hierarchical Models
Chapter 4/5 glMatrixMode Modeling Transformations glTranslate glScale
Modeler Help Session CSE 457, Autumn 2008
Projection in 3-D Glenn G. Chappell
Modeler Help Session CSE 457, Spring 2006
Modeler Help Session CSE 457, Spring 2005
Modeler Help Session CSE 457, Autumn 2007
Modeler Help Session CSE 457, Spring 2008
Modeler Code Basics CSE P 557, Autumn 2006
Modeler Help Session CSE 457, Spring 2007
CSCE 441: Computer Graphics: Hierarchical Models
Prepared by your friendly, phantom TA Jennifer
Introduction to Methods and Interfaces
Presentation transcript:

Modeler Help Session CSEP 557, Spring 2009

Help Session Overview The Modeler Application Modeler Code Overview Constructing Your Model Hierarchical Modeling in OpenGL Warnings & Hints Example Models Summary

The Modeler Application Two main windows:  Control window with sliders  Model view window To navigate in the model view window:  Left-click: Rotate the camera  Middle-click: Move the point that the camera is looking at (Translation/Dolly)  Right-click: Zoom in/out

Modeler Code Overview modelerapp.* and modelerui.* handles the user interface modelerapp.h defines the ModelerApplication class which handles the setting of control values modelerdraw.* supports the drawing of primitive shapes and material attributes

Modeler Code Overview modelerview.h  defines the ModelerView object  base class of your model – your model will be a subclass of ModelerView  handles OpenGL drawing and event handling modelerview.cpp  provides some base functionality such as setting up lighting and handling camera controls

Modeler Code Overview DO NOT TOUCH THE FOLLOWING FILES:  modelerapp.*  modelerui.*  modelerdraw.*  modelerview.* For the animator project, you will be re-using your model source file and plugging it into a different application. If you change modelerapp.* or modelerdraw.*, your model may not work with the animator project!

Modeler Code Overview What DO you get to change? Camera.*  Controls camera functions  Look in camera.cpp to implement your own version of gluLookAt() Sample.cpp  Example BoxModel - you will replace this with your own model file  To start: copy sample code and then modify in order to include the methods you need.  Eventually remove sample.cpp file and replace with.cpp

Modeler Code Overview Some helpful files (that you should also not change) Modelerui.fl is a data file that controls the FLTK user interface Vec.h & Mat.h contains useful vector/matrix operations

Constructing Your Model Make all changes in Sample.cpp  Draw() function is where you will build your model  Main() function initializes the controls Add slider controls  Enum statement at the top of the file defines the names and number of controls Add controls both to Enum and main Remember to keep NUMCONTROLS variable at the end of the Enum list

Hierarchical Modeling in OpenGL OpenGL is a state machine  glEnable()/glDisable() changes the state  Once you change something, it will stay that way until you change it to something new!  This includes: current color, transformation details, drawing modes, information about the lights, etc. OpenGL maintains a transformation matrix that is applied to everything that is drawn  In other words: transformations are cumulative  Perform transformations glRotated(), glTranslated(), glScaled() relative to the previous drawn object

Hierarchical Modeling in OpenGL How do we get back to an earlier transformation matrix? glPushMatrix() & glPopMatrix()  Keeps track of the state of your model in a stack  If you want to make changes and then undo the transformation matrix, glPushMatrix() will keep track of where everything was  When popped off the stack, will return to those values

Warnings & Hints Keep track of your pushes() and pops() – having unmatched pushes and pops can cause a lot of grief!  It can help to divide the draw routine into a series of nested methods, each with their own push and pop. Implementing gluLookAt(): Look in your slides and in the OpenGL Blue Book, but make sure you understand how it works! Implementing the animation sequence: have a slider control multiple aspects of the model

Warnings & Hints Worthwhile bells & whistles that will help you out down the road: Cool lighting/camera effects Smooth curve functionality/swept surfaces

Warnings & Hints Texturing mapping FAQ: Look in the OpenGL Programming Guide to see how to set up texture mapping Use the load function in imageio.cpp to load a JPEG or PNG to use as a texture map

Example Models Looking for inspiration? Example models can be found on previous quarters’ websites A short list of sample executables available at: CurrentQtr/projects/modeler/newdoc/demos/ CurrentQtr/projects/modeler/newdoc/demos/ A quarter of very impressive models: 2au/projects/modeler/vote/winners/ 2au/projects/modeler/vote/winners/ More links on the project page

Test the Source Control Early The only way we can fix problems is if we know about them So, verify that your repository works by checking it out, building it, tweak something, and commit  If something fails, please let us know so we can fix it

Summary Things To Do:Bad Things Will Happen if you modify: Replace the glulookat() function in camera.cpp Create a model (like sample.cpp) with at least 4 hierarchical levels and 10 primitive shapes Animation Slider An Additional Bell modelerapp.* modelerui.* modelerdraw.* modelerview.* vec.h mat.h