Post on 11-May-2015
description
transcript
Principles of computer graphics Final project assignment – Michele Segata
The project
Develop an application to
• Draw and manage different type of curves (control points dragging, use of composite curves, etc…)
• Put an image as background to see which curve is best suited
• Use a file as a source of points and display the curves using those points
A first screenshot before starting
Application architecture
Picking procedure
Application with background image
Sampling of a picture
Application with sampled points
Tools used
" Only OpenGL and the graphic library developed for first assignment
" Why? For fun and better understanding
First assignment – Brief description
" gl_2d_geometry.h
" gl_3d_geometry.h
" gl_curve.h
" gl_material.h
" gl_mempool.h
" gl_mesh.h
First assignment – Brief description (2)
" gl_mouse.h
" gl_physic.h
" gl_physic_law.h
" gl_printf.h
" gl_rendering.h
" gl_scenegraph.h
First assignment – Brief description (3)
" gl_selection.h
" gl_tga.h
" gl_transformation.h
" gl_util.h
First assignment – Few screenshots
Convex hull example
First assignment – Few screenshots
Solid pyramid with 3 different normals algorithms
(a) Face normals (b) Vertex normals (c) Mixed approach
First assignment – Few screenshots
Spheres at different resolutions
First assignment – Few screenshots
Automatic texture application on sphere