/
Sketch-based Model Prototype Tool Sketch-based Model Prototype Tool

Sketch-based Model Prototype Tool - PowerPoint Presentation

yoshiko-marsland
yoshiko-marsland . @yoshiko-marsland
Follow
405 views
Uploaded On 2016-07-13

Sketch-based Model Prototype Tool - PPT Presentation

By Nathaniel Tan Charles Lee Adam Kromm Andrew Pugi Overview Our application A llows the quick creation of 3D model assets for use in the entertainment industry Allows the user to generate a textured3D model of a 2D drawingsketch ID: 403326

model image controls texture image model texture controls workspace object mesh selected curves blending draw cross view opengl user

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "Sketch-based Model Prototype Tool" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

Sketch-based Model Prototype Tool

By:

Nathaniel Tan

Charles

Lee

Adam

Kromm

Andrew

PugiSlide2

Overview

Our application:

Allows the quick creation of 3D model assets for use in the entertainment industry.

Allows the user to generate a textured-3D model of a 2D drawing/sketch.

Utilizes the user choice of cross-sectional

and rotational blending for model building with the ability to texture the model based on the image selected by the user.Slide3

UI

Application is divided into:

Workspace Window

Controls

Workspace

ControlsSlide4

How?

To generate a model:

S

imply use your mouse to draw the appropriate amount of curves of the image that you would like, and the application will create a fully exportable 3D object of that image for you!Or

2) Import a 2D image that you would like, and press a button. A 3d model of the image will then be created for you.Slide5

Drawing

Cross Section Blending:

Draw 2 curves for each side of the image that you want.

Then draw the profile curve last.

Rotational Blending:

Draw 2 curves for each side of the image that you want. Slide6

Drawing

Draw an object on the Workspace:

Left Mouse Button

: Press and Hold to draw a curve.

Right Button

: Press and Hold to move the view port.

Scroll Button

: Zoom In/OutSlide7

Controls:

Image/Texture Controls

Mesh Editing Controls

Workspace View Controls

Model ExportSlide8

Workspace View Controls

Show Grid:

Check/Uncheck to display gridlines

in the background.

Show Curves:

Check/Uncheck to display the sketch

curves for each object.

Reset View:

Reset the Workspace view to default.Slide9

Image/Texture Controls

Path to Image:

Path to image you want to load.

Load Image:

Load declared

image

.

Remove Image:

Removed a loaded workspace image.

Remove Texture:

Removed a texture from a currently selected model.

Auto Generate Surface:

Automatically generate a model from a

valid image.Slide10

Mesh Editing Controls

Delete All:

Delete all Objects in

the workspace.

Delete Selected:

Delete a

Selected Object

.

Surface Type:

User selected Mesh action.

- Add

Object (draw curves).

- Select

Existing Mesh.

- Edit

a Selected Mesh Object (by selecting Current Curve, and Surface Type).

Current Curve:

Current Curve that is being drawn or edited.

Profile is only for cross section blending.

Rotate Object:

Rotate a currently selected Mesh

.

Move the mouse on the trackball in any direction to rotate.

Red-Green-Blue:

Sets the

color of a currently selected Mesh.Slide11

Export Model

Export

Obj:

Export the meshes in the workspace to an OBJ file.Slide12

Implementation

589 Concepts:

Rotational Blending

Cross Sectional BlendingMesh Texturing

Image

ExtractionSlide13

Rotational BlendingSlide14

Cross Sectional BlendingSlide15

Mesh Texturing

Map from OpenGL to Texture Coordinates

UV = ((v) + 1) / 2

Scale Texture to Model

(w –

h / 2) + ((UV.x+1)/2) * (h/w) Where v = Vertex Location w = width of the Texture h = height of the texture Slide16

Image Extraction

1) Each pixel scans it’s neighbours for a sharp change in colour values.

2) All edge pixels are determined

3) Edge pixels are joined into continuous lines

4) The final curves are generated from the original image and are applied to the new objectSlide17

SamplesSlide18

SamplesSlide19

SamplesSlide20

References

589 Implementations:

2 main papers for the purpose of this project.

1) Sketch-based Modeling with Few Strokes, Cherlin, J.J., Samavati, F.F., Sousa, M.C., abd Jorge, J.A., Best Presentation Award, Proceedings of the 21st Spring Conference on Computer Graphics (SCCG'05),

in association with ACM SIGGRAPH and

Eurographics

,

Budmerice

, Slovakia, May 12-14, 20052) Image-Assisted Modeling from Sketches, Olsen, L., and

Samavati, F.F., Proceedings of the Graphics Interface 2010 (GI'10), Ottawa, Canada, May 31-Jun 2, 2010. Slide21

Platform

We utilize:

- C++, Visual Studio.- OpenGL 3.0- FreeImagePlus (the

c++ wrapper for FreeImage, a image loading library: http://freeimage.sourceforge.net/)- GLUI (openGL User Interface: http://www.cs.unc.edu/~rademach/glui/)- GLM (vectors, matrices, and all the math for them: http://glm.g-truc.net/

)

- GLEW

(

openGL

Extension Wrangler: exposes opengl 3 functions http://glew.sourceforge.net/ )