+ All Categories
Home > Education > A graphic library and an application for simple curve manipolation

A graphic library and an application for simple curve manipolation

Date post: 11-May-2015
Category:
Upload: graphitech
View: 416 times
Download: 0 times
Share this document with a friend
Description:
In this report I am going to describe the implementation of a simple curve manipolation application, developed as a ful lment of the second project for the course of Principles of Computer Graphics. The report is organized as follows: Section 1 introduces the problem and what the application should implement, Section 2 describes the architecture of the program, Section 3 explains some foundamental parts of the source code and nally Section 4 illustrates how to use the application together with some screenshots and examples.
Popular Tags:
16
Principles of computer graphics Final project assignment – Michele Segata
Transcript
Page 1: A graphic library and an application for simple curve manipolation

Principles of computer graphics Final project assignment – Michele Segata

Page 2: A graphic library and an application for simple curve manipolation

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

Page 3: A graphic library and an application for simple curve manipolation

A first screenshot before starting

Page 4: A graphic library and an application for simple curve manipolation

Application architecture

Page 5: A graphic library and an application for simple curve manipolation

Picking procedure

Page 6: A graphic library and an application for simple curve manipolation

Application with background image

Page 7: A graphic library and an application for simple curve manipolation

Sampling of a picture

Page 8: A graphic library and an application for simple curve manipolation

Application with sampled points

Page 9: A graphic library and an application for simple curve manipolation

Tools used

"   Only OpenGL and the graphic library developed for first assignment

"   Why? For fun and better understanding

Page 10: A graphic library and an application for simple curve manipolation

First assignment – Brief description

"   gl_2d_geometry.h

"   gl_3d_geometry.h

"   gl_curve.h

"   gl_material.h

"   gl_mempool.h

"   gl_mesh.h

Page 11: A graphic library and an application for simple curve manipolation

First assignment – Brief description (2)

"   gl_mouse.h

"   gl_physic.h

"   gl_physic_law.h

"   gl_printf.h

"   gl_rendering.h

"   gl_scenegraph.h

Page 12: A graphic library and an application for simple curve manipolation

First assignment – Brief description (3)

"   gl_selection.h

"   gl_tga.h

"   gl_transformation.h

"   gl_util.h

Page 13: A graphic library and an application for simple curve manipolation

First assignment – Few screenshots

Convex hull example

Page 14: A graphic library and an application for simple curve manipolation

First assignment – Few screenshots

Solid pyramid with 3 different normals algorithms

(a) Face normals (b) Vertex normals (c) Mixed approach

Page 15: A graphic library and an application for simple curve manipolation

First assignment – Few screenshots

Spheres at different resolutions

Page 16: A graphic library and an application for simple curve manipolation

First assignment – Few screenshots

Automatic texture application on sphere


Recommended