• Non ci sono risultati.

Marco Tarini -univ insubriaAA 2016/2017Computer Graphics: models (3)1Mesh poligonale: caratteristiche

N/A
N/A
Protected

Academic year: 2021

Condividi "Marco Tarini -univ insubriaAA 2016/2017Computer Graphics: models (3)1Mesh poligonale: caratteristiche"

Copied!
10
0
0

Testo completo

(1)

Mesh poligonale:

caratteristiche

Circa la connettività di una mesh

• è two-manifold ? (una "varietà due")

– two-manifold = localmente è una superficie

• SI = bene, NO = male

• (molti algoritmi su mesh necessitano che sia two-manifold)

– per le mesh:

1. two-manifold = ogni edge condiviso da max 2 faccie

NO SI

(2)

M a r c o T a r i n i ‧ C o m p u t e r G r a p h i c s ‧ 2 0 1 6 / 1 7 ‧ U n i v e r s i t à d e l l ’ I n s u b r i a

Circa la connettività di una mesh

• è two-manifold ? (una "varietà due")

– two-manifold = localmente è una superficie

• SI = bene, NO = male

• (molti algoritmi su mesh necessitano che sia two-manifold)

– per le mesh:

2. two-manifold = ogni vertice condiviso da max 1 stella

 NON COSI

Esempi di NON 2-manifolds

(3)

Esempi di NON 2-manifolds

M a r c o T a r i n i ‧ C o m p u t e r G r a p h i c s ‧ 2 0 1 6 / 1 7 ‧ U n i v e r s i t à d e l l ’ I n s u b r i a

Esempi di NON 2-manifolds

(4)

Examples of NOT 2-manifolds meshes

M a r c o T a r i n i ‧ C o m p u t e r G r a p h i c s ‧ 2 0 1 6 / 1 7 ‧ U n i v e r s i t à d e l l ’ I n s u b r i a

1 non manifold edge here

1 non manifold vertex here 1 non manifold

edge here

Circa la connettività di una mesh

• Orientamento delle facce

0 2 1

0 1 2

A

B C

D

t_a = {A,C,D}

t_b = {A,B,C}

(5)

M a r c o T a r i n i ‧ C o m p u t e r G r a p h i c s ‧ 2 0 1 6 / 1 7 ‧ U n i v e r s i t à d e l l ’ I n s u b r i a

Circa la connettività di una mesh

• Orientabile, non orientabile

– è possibile assegnare un orientamento ad ogni faccia coerentemente?

– orientabile = normali coerenti!

1 3 2

1 3 2

senso opposto, edge coerente

A

B C

D

Circa la connettività di una mesh

• Orientabile, non orientabile – esempi di mesh non orientabili:

• mesh non two-manifold

• e...

(6)

Mesh poligonale:

processing

3D models categorization:

Origin

informazione

construction

MODEL 3D the scene of

Images

rendering

preprocessing

modelling

(7)

Mesh processing

aka Geometry Processing

• Un buon manuale x programmare mesh processing:

M a r c o T a r i n i ‧ C o m p u t e r G r a p h i c s ‧ 2 0 1 6 / 1 7 ‧ U n i v e r s i t à d e l l ’ I n s u b r i a

Geometry Processing

Alcune buone librerieLibrerie:

• VCG-Lib (CNR, )

– Vision and Computer Graphic Lib

• OpenMesh (RWTH, de )

– + open flipper

• CGAL (INRIA, )

– Computational Geometry Algorithms Library

(8)

Geometry Processing

• Un buon applicativo

M a r c o T a r i n i ‧ C o m p u t e r G r a p h i c s ‧ 2 0 1 6 / 1 7 ‧ U n i v e r s i t à d e l l ’ I n s u b r i a

Geometry Processing: esempio

• Es: Mesh smoothing

(9)

Geometry Processing: esempio

• Es: Mesh smoothing

M a r c o T a r i n i ‧ C o m p u t e r G r a p h i c s ‧ 2 0 1 6 / 1 7 ‧ U n i v e r s i t à d e l l ’ I n s u b r i a

Geometry Processing: esempio

• Es: Mesh denoising

(10)

Semplificazione automatica di modelli 3D

automaticamente

mesh semplificata 2K triangles mesh originale

500K triangoli

• parametri:

– un errore massimo

– o un numero di facce obiettivo

M a r c o T a r i n i ‧ C o m p u t e r G r a p h i c s ‧ 2 0 1 6 / 1 7 ‧ U n i v e r s i t à d e l l ’ I n s u b r i a

Semplificazione automatica

• Molte tecniche diverse

– Adattive oppure no

• usare piu' triangoli dove c'e' bisogno (es non nelle zone cmq piatte)

• oppure no

– Errore massimo introdotto:

• misurato e/o limitato

• oppure no

– Topologia:

• mantenuta

• oppure no

– Streaming

• Possibile

• Oppure no

– ...

Riferimenti

Documenti correlati

Marco Tarini - Video Game Dev Univ... Marco Tarini - Video Game Dev

volumetric data, polygonal meshes, NURBS, splines, subdivision surfaces, LODs, multiresolution structures…. • 3D acquisition (catturare modelli 3D

much cheaper than sampled sound to store, but requires instrument liberary at runtime not much used anymore (in games) still most convenient for procedural music. Specialized

3D data models textures materials shaders animations collision objects scenes etc audio. music sound fxs ambient sounds voice

3D models meshes textures materials shaders animations collision objects scenes.

ogni voxel un colore RGB solid RGB textures. Come tutte

animazione di trasformaz di modellazione (anche con giunti: robot, macchine…).. di oggetti

3D data models textures materials shaders animations collision objects scenes etc audio. music sound fxs ambient sounds voice overs