1 preprocessing of large databasesv for interactive visualisation xavier décoret imagis-gravir /...

129
1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG iMAGIS est un projet commun CNRS - INPG - INRIA - UJF

Upload: luke-ruiz

Post on 26-Mar-2015

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

1

Preprocessing ofLarge databasesV for

Interactive visualisation

Preprocessing ofLarge databasesV for

Interactive visualisation

Xavier Décoret

iMAGIS-GRAVIR / IMAG

iMAGIS est un projet commun CNRS - INPG - INRIA - UJF

Page 2: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

2

SummarySummary

• Context• Visibility computation

– Previous work– Contributions

• Level of details– Previous Work– Billboard clouds

• Conclusion

Page 3: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

3

SummarySummary

• Context• Visibility computation

– Previous work– Contributions

• Level of details– Previous Work– Billboard clouds

• Conclusion

Page 4: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

4

ContextContext

• Virtual environments– Video game, virual tourism, simulations

• User walk freely through the modl

• The computer is in charge of generating images of what user « sees »

Frequent refresh (25 / sec)

Page 5: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

5

Feeling of immersionFeeling of immersion

• Complex environments– Large spatial extent– Highly detailed

• Realistic effects– Shadows– Ligthing effets (reflection)– Appearance

High computation time

Page 6: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

6

Useractions

Useractions

ContextContext

RenderingSystem

RenderingSystemDatabaseDatabase imagesimages

Model complexity Bounded computation time

Preprocess to speed-up•Reusing results

•Optimizing representations

Page 7: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

7

Hidden Faces RemovalHidden Faces Removal

• Vertex projections• Face rasterisation

View frustum

Page 8: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

8Image

• Vertex projections• Face rasterisation

Hidden Faces RemovalHidden Faces Removal

Page 9: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

9Image

Pixel

• Vertex projections• Face rasterisation

Hidden Faces RemovalHidden Faces Removal

Page 10: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

10Image

• Vertex projections• Face rasterisation

Hidden Faces RemovalHidden Faces Removal

Page 11: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

11Image

• Vertex projections• Face rasterisation

Hidden Faces RemovalHidden Faces Removal

Page 12: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

12Image

• Vertex projections• Face rasterisation

Hidden Faces RemovalHidden Faces Removal

Page 13: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

13Image

• Vertex projections• Face rasterisation

Hidden Faces RemovalHidden Faces Removal

Page 14: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

14Image

Pixel =ColorDepth

depth

• Vertex projections• Face rasterisation

Hidden Faces RemovalHidden Faces Removal

Page 15: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

15Image

depth > depth

• Vertex projections• Face rasterisation• Z-buffer [Cat74]

Hidden Faces RemovalHidden Faces Removal

Page 16: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

16

ConsequencesConsequences

• Complex 3D model ) lot of calculations

• Redundancy in computations

• Unadapted computations

Page 17: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

17

ConsequencesConsequences

Image

• Complex 3D model ) lot of calculations

• Redundancy in computations

• Unadapted computations

Page 18: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

18

ConsequencesConsequences

Image

• Complex 3D model ) lot of calculations

• Redundancy in computations

• Unadapted computations

Page 19: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

19

ConsequencesConsequences

Image

• Complex 3D model ) lot of calculations

• Redundancy in computations

• Unadapted computations

Page 20: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

20

ConsequencesConsequences

Image

• Complex 3D model ) lot of calculations

• Redundancy in computations

• Unadapted computations

Page 21: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

21

ConsequencesConsequences

Image

• Complex 3D model ) lot of calculations

• Redundancy in computations

• Unadapted computations

Page 22: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

22

ConsequencesConsequences

Image

• Complex 3D model ) lot of calculations

• Redundancy in computations

• Unadapted computations

Page 23: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

23

ConsequencesConsequences

Image

• Complex 3D model ) lot of calculations

• Redundancy in computations

• Unadapted computations

Page 24: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

24

ConsequencesConsequences

Image

• Complex 3D model ) lot of calculations

• Redundancy in computations

• Unadapted computations

Page 25: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

25

Possible solutionsPossible solutions

• Visibility computations– Finding what is hidden– Prevent unecessary rasterization

• Level of Details– Several level of modelisation– Using the level fitted to object’s distance

• Alternative rendering

Page 26: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

26

SummarySummary

• Context• Visibility computation

– Previous work– Contributions

• Level of details– Previous Work– Billboard clouds

• Conclusion

Page 27: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

27

Visibility computationVisibility computation

• Reject as soon as possible what will not

contribute to an image

• Two approaches– Online ) for current view point

– Offline ) for a region of space

• Difficulty: umbrae and penumbrae fusion

Page 28: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

28

Umbrae fusionUmbrae fusion

Viewpoint

Shadow volume

Buildings(top view)

Page 29: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

29

Shadow volume

Viewpoint

Buildings(top view)

Umbrae fusionUmbrae fusion

Page 30: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

30

Shadow volume

Viewpoint

Buildings(top view)

Umbrae fusionUmbrae fusion

Page 31: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

31

Viewpoint

Buildings(top view)

Umbrae fusionUmbrae fusion

Page 32: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

32

Penumbrae fusionPenumbrae fusion

Viewcell

Buildings(topview)

Page 33: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

33

Penumbrae fusionPenumbrae fusion

Viewcell

Buildings(topview)

Page 34: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

34

VisibilityVisibility• Lot of previous work [Dur99]• Classification [SPS74]

Image SpaceObject Space

•Hierarchical Frustum Culling [GBW90]

•Shaft culling [HW91]

•Shadow volumes [CT97]

•Bloqueurs convexes [CZ98]

•Convex Vertical Prisms [DM01]

•Volumetric visibility [SDSD00]

•Portals [ST91]

•Hierarchical Z-buffer [GKM93]

•Hierarchical Occlusion Map [ZMH97]

•2D1/2 Occlusion maps [WS99]

•Extended projections [DDTP00]

•Line Space subdivision [BWW01]

•Portals [LG95]

Page 35: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

35

Complexe problemComplexe problem

• No exact solution ) being conservative

• Umbrae fusion more or less done

• Object space ) extended visibility

• Image space ) fusion (implicit)

Combining approaches

Page 36: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

36

SummarySummary

• Context• Visibility computation

– Previous work– Contributions

• Level of details– Previous Work– Billboard clouds

• Conclusion

Page 37: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

37

DifficultyDifficulty

• Visibility from-point easy– Z-buffer

• Visibility from region difficult

Reducing to a from-point problem

Page 38: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

38

Blocker shrinkingBlocker shrinking

• Proposed by [WWS00]

Viewcell

Object

Blockers

Page 39: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

39

Object

Shrunk blockers

Center of viewcell

• Proposed by [WWS00]

Blocker shrinkingBlocker shrinking

Page 40: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

40

O

• Proposed by [WWS00]

Blocker shrinkingBlocker shrinking

Page 41: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

41

O { P such as Br(P) O }

r-shrinking

• Proposed by [WWS00]

Blocker shrinkingBlocker shrinking

Page 42: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

42

O

V

M

• Generalisation to convex viewcells

• Shrinking of occludees

V’

• Proposed by [WWS00]

Blocker shrinkingBlocker shrinking

Page 43: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

43

Occluder/occludees shrinkingOccluder/occludees shrinking

Viwcell

Object

Blockers

Page 44: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

44

Shrunk blockers

Center ofviewcell

Shrunk object

Image taken fom viewcell’s center

with shrunk objects

•Same treatment to occluders/occludees•One pass algorithm

Occluder/occludees shrinkingOccluder/occludees shrinking

Page 45: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

45

Formalisation (1)Formalisation (1)

• Dilatation (Minkowski sum)

Set of points

O

Set of vectors

XO © X

{P+x, P2 O and x 2 X}

Page 46: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

46

Formalisation (2)Formalisation (2)

• Erosion

Set of points

O

Set of vectors

X

O ª X

{P such as 8 x 2 X, P+x 2 O }

Page 47: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

47

TheoremTheorem

If a ray (VM) is blocked by

O ª X with X convex, then:

Any ray (V’M’) is blocked

by O with:

V’ 2 {V} © X and

M’2 {M}© X

V

MV’

M’

O ª X

O

Page 48: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

48

Approximative erosionApproximative erosion

• Exact erosion is hard to compute

• We can have approximations

Page 49: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

49

DifficultyDifficulty

O ª X

Erosion by X

O ª X

Internal erosion

½ O ª X

External erosion

½

• Exact erosion is hard to compute

• We can have approximations

Page 50: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

50

Mise en oeuvreMise en oeuvre

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Objects+erosions

Page 51: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

51

Mise en oeuvreMise en oeuvre

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Page 52: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

52

Modification de l’algorithmeModification de l’algorithme

Carte d’occlusion

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Page 53: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

53

Modification de l’algorithmeModification de l’algorithme

Carte d’occlusion

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Page 54: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

54

Modification de l’algorithmeModification de l’algorithme

Carte d’occlusion

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Page 55: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

55

Modification de l’algorithmeModification de l’algorithme

Carte d’occlusion

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Page 56: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

56

Modification de l’algorithmeModification de l’algorithme

Carte d’occlusion

Visibles

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Page 57: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

57

Modification de l’algorithmeModification de l’algorithme

Carte d’occlusion

Visibles

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Page 58: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

58

Modification de l’algorithmeModification de l’algorithme

Carte d’occlusion

Visibles

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Page 59: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

59

Modification de l’algorithmeModification de l’algorithme

Carte d’occlusion

Visibles

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Page 60: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

60

Modification de l’algorithmeModification de l’algorithme

Carte d’occlusion

Visibles

Hidden

• Building an occlusion map with internal erosions

• Testing external erosions against the map

Page 61: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

61

Pros & consPros & cons

Two pass of rendernig (map + test)

Tests can be done par graphic card

Linear complexity

Linear memory cost

ObjectsObjects

2 pass2 passApproximative erosion

Approximative erosion

Exact erosionExact erosion 1 pass1 passVisibility

pre-computation

Visibility pre-computation

Page 62: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

62

Approximative erosionApproximative erosion

• Voxelisation of object– Volumetric information [SDDS00]– Suitable representation [DM01]

• Erosion on voxels– Simple– Robust and fast

Page 63: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

63

VoxelisationVoxelisation

Page 64: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

64

VoxelisationVoxelisation

Page 65: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

65

VoxelisationVoxelisation

Page 66: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

66

Erosion of voxels by a cubeErosion of voxels by a cube

= ©

= ©©

Page 67: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

67

O ª (X ©Y) = (O ª X) ª Y

ª ª ª

Erosion of voxels by a cubeErosion of voxels by a cube

Page 68: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

68

Erosion 1DErosion 1D

• Of half a voxel

Direction of erosionTopological

change

Page 69: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

69

Erosion 1DErosion 1D

• Of half a voxel

Direction of erosion

• Of less than a half

Topological change

Topology preserved

Page 70: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

70

ª ª ª

Aligned axis

Erosion of voxels by a cubeErosion of voxels by a cube

Page 71: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

71

Erosion of voxels by X convexErosion of voxels by X convex

Cellule X

voxels

If X ½ Y then O ª Y ½ O ª X

ªInternal erosion

)

ªExternal erosion

)

Page 72: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

72

DemoDemo

• Erosion of voxels

• Visibility pre-computation

Page 73: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

73

ConclusionConclusion• Formalism and new theorem

– Érosion of occluders and occludees

• Per object voxelisation– Optimized orientation– Do no discretize empty spaces

• Working in image space– Implicit fusion of umbrae– Acceleration

• Hardware : graphic cards• Software : combining with other visibility algorithm

Page 74: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

74

Ext step…Ext step…

We know what is visible

How to display it?

Page 75: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

75

SummarySummary

• Context• Visibility computation

– Previous work– Contributions

• Level of details– Previous Work– Billboard clouds

• Conclusion

Page 76: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

76

Level of detailsLevel of details

• Mesh simplification

•Clusterisation [RB93,LT97]

•Hierarchical Dynamic Simplification [LE97]

•Decimation of Triangle Meshes [SZL92]

•Re-tiling [Tur92]

•Progressive Meshes [Hop96,PH97]

•Quadric Error Metrics [GH97]

•Out of Core Simplification [Lin00]

•Re-tiling [Tur92]

•Voxel based reconstruction [HHK+95]

•Multiresolution analysis [EDD+95]

•Superfaces [KT96], face cluster [WGH00]

Page 77: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

77

LimitationsLimitations

• Constraints on models• Erreur contrôle

– Simplification enveloppes [CVM96]– Permission Grids [ZG02]– Image driven [LT00]

• Handling of attributes (textures and colors)– Integration to the metric[GH98][Hop99]– Re-generation [CMRS98,COM98]

• Extreme Simplification– Sillouhette Clipping [SGG+00]

Page 78: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

78

Alternative renderingAlternative rendering

• Image based rendering– Lightfield,Lumigraph [LH96,GGRC96]

– Imposteurs [DSSD99]

– Relief Textures [OB00]

• Point based rendering– Surfels [PZBG00]

– Pointshop 3D [ZPKG02]

Page 79: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

79

SummarySummary

• Context• Visibility computation

– Previous work– Contributions

• Level of details– Previous Work– Billboard clouds

• Conclusion

Page 80: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

80

Billboards cloudBillboards cloud

• New representation

• Used for extreme simplification

Page 81: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

81

BillboardBillboard

• Classical solution [RH94]

• Generalising to many planes• Automating synthesis

Page 82: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

82

OverviewOverview

• Approaching shape by a set of plane

• Projecting model on those planes) textures

• Textures interleaving replace the object

Page 83: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

83

PrinciplePrinciplepolygonal 3D model

Page 84: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

84

PrinciplePrinciple

Simplification by planes

Page 85: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

85

PrinciplePrinciple• Moving vertices

Maximum allowed displacement for P

P

Page 86: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

86

PrinciplePrinciple• Projecting polygons on planes

Polygon

Valide plane

Page 87: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

87

PrinciplePrinciple• How many planes? Which planes?

Page 88: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

88

OverviewOverview• It is an optimisation problem

• Measuring plane interest

• Traversing the space of planes

• Finding a set of planes

Page 89: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

89

OverviewOverview• It is an optimisation problem

– Greedy algorithm

• Measuring plane interest

• Traversing the space of planes

• Finding a set of planes

Page 90: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

90

OptimisationOptimisation•We define over the set of Billboards clouds:

– An error function– A cost function

•Two goals– Budget-based

cost fixed minimising error

– Error-based max error fixed minimising cost

Page 91: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

91

OptimisationOptimisation•We define over the set of Billboards clouds:

– An error function– A cost function

•Two goals– Budget-based

cost fixed minimising error

– Error-based max error fixed minimising cost

Page 92: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

92

OptimisationOptimisation

• Cost function– Number of planes

• Error function– Vertex displacement

• In object space

• In image space

Page 93: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

93

OverviewOverview• It is an optimisation problem

– Greedy algorithm

• Measuring plane interest– Defining a density function

• Traversing the space of planes

• Finding a set of planes

Page 94: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

94

Replaces a lot of faces

Fonction de densitéFonction de densité• Important plane = low cost

Density function overThe space of planes

• density = measure of the amount of facesthat a plane can replace

Page 95: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

95

ValiditéValidité• Faces for which a plane is valid

– Enforces the error bound

• Density = number of valid faces

Allowed displacement

Density de 3

Page 96: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

96

ValiditéValidité

Allowed displacement

Density of 3

• Faces for which a plane is valid– Enforces the error bound

• Density = number of valid faces

Page 97: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

97

ContributionContribution• Ponderation by projected area

– Favor large faces– Favor planes parallel to faces

Page 98: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

98

OverviewOverview• It is an optimisation problem

– Greedy algorithm

• Measuring plane interest– Defining a density function

• Traversing the space of planes– discretisation

• Finding a set of planes

Page 99: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

99

DiscretisationDiscretisation• Discretisation of plane space

• Hough transform

ρ

φ

θ(θ,φ)

O

ρ

primal dual

H

Page 100: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

100

Dual spaceDual space• planes through a point ) a sheet

φθ

ρ

Page 101: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

101

• Plans through a sphere ) a slice

φθ

ρ

Dual spaceDual space

Page 102: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

102

• Plans through a sphere ) a slice

• Planes through 3 spheres ) intersection of 3 slices

φθ

ρ• Uniform discretisation

Dual spaceDual space

Page 103: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

103

Cumulated densityCumulated density

Page 104: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

104

OverviewOverview• It is an optimisation problem

– Greedy algorithm

• Measuring plane interest– Defining a density function

• Traversing the space of planes– discretisation

• Finding a set of planes– Refinement

Page 105: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

105

Greedy iterationGreedy iteration

Faces

Plane space

Planes validPlanes validfor the facefor the face

DiscretisationDiscretisation

Page 106: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

106

Faces

Plane space

Planes validPlanes validfor the facefor the face

DiscretisationDiscretisation

DensityDensity

+

-

Greedy iterationGreedy iteration

Page 107: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

107

Faces

Planes validPlanes validfor the facefor the face

DensityDensity

+

-

Plane space

DiscretisationDiscretisation

Greedy iterationGreedy iteration

Page 108: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

108

Faces

Planes validPlanes validfor the facefor the face

DensityDensity

+

-

Plane space

DiscretisationDiscretisation

Greedy iterationGreedy iteration

Page 109: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

109

Faces

Planes validPlanes validfor the facefor the face

DensityDensity

+

-

Plane space

DiscretisationDiscretisation

Greedy iterationGreedy iteration

Page 110: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

110

Faces

Planes validPlanes validfor the facefor the face

DensityDensity

+

-

Plane space

DiscretisationDiscretisation

Greedy iterationGreedy iteration

Page 111: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

111

Faces

Planes validPlanes validfor the facefor the face

DensityDensity

+

-

Plane space

DiscretisationDiscretisation

Greedy iterationGreedy iteration

Page 112: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

112

Faces

Planes validPlanes validfor the facefor the face

DensityDensity

+

-

Plane space

DiscretisationDiscretisation

Greedy iterationGreedy iteration

Page 113: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

113

Faces

Planes validPlanes validfor the facefor the face

DensityDensity

+

-

Plane space

DiscretisationDiscretisation

Greedy iterationGreedy iteration

Page 114: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

114

Faces

Planes validPlanes validfor the facefor the face

DensityDensity

+

-

Plane space

DiscretisationDiscretisation

Greedy iterationGreedy iteration

Page 115: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

115

Cell of highestdensity

Faces for which cell is valid

Greedy iterationGreedy iteration

Page 116: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

116

High density

There is probably a plan valid for all the faces

How to find such a plane?

Greedy iterationGreedy iteration

Page 117: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

117

We test centralplane

We subdivide

Local densityrecomputation

Greedy iterationGreedy iteration

Page 118: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

118

Texture synthesisTexture synthesis

• To each plane is associated a set of faces

• Orthogonal projection on plane

• Minimal bounding rectangle (CGAL)

• Orthogonal rendering ) texture

Page 119: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

119

ResultsResults

• Movies

Examples Shadows

Page 120: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

120

View-dependent extensionView-dependent extension

• Changing the error function– Reprojection error

P-

M P+

viewcell

V

T

θ

Page 121: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

121

View-dependent extension View-dependent extension

• Textures rendered from viewcell’s center

• Automatic selection of resolution

• Saving the projection matrix

Page 122: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

122

ResultsResults

Close

zoom

View from the cell

Billboards cloud polygonal model

Page 123: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

123

MiddleRange

ResultsResults

zoom

View from the cell

Billboards cloud polygonal model

Page 124: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

124

Far

ResultsResults

zoom

View from the cell

Billboards cloud polygonal model

Page 125: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

125

ConclusionConclusion

• New representation

• Automatic construction

• Arbitrary models

• Simple error criteria / no parameter

• Extreme simplification

Page 126: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

126

ExtensionsExtensions

• Optimising texture usage– Integration to the cost function– Texture compression

• Re-lighting– Normal maps– Pixel shading

• Transition• Moving objects

Page 127: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

127

SummarySummary

• Context• Visibility computation

– Previous work– Contributions

• Level of details– Previous Work– Billboard clouds

• Conclusion

Page 128: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

128

ConclusionConclusion

• New tools for the studied proble,• Visibility computation

– Theoretical results

– Practical algorithm easy to implement

• Level of details– New representation / Algorithm for construction

– Extreme simplification / handling of attributes

• Integration

Page 129: 1 Preprocessing of Large databasesV for Interactive visualisation Xavier Décoret iMAGIS-GRAVIR / IMAG i MAGIS est un projet commun CNRS - INPG - INRIA

129

QuestionsQuestions