i magis is a joint project of cnrs - inpg - inria - ujf imagis-gravir / imag a simple kinetic...

29
iMAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

Upload: kian-boye

Post on 14-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS is a joint project of CNRS - INPG - INRIA - UJF

iMAGIS-GRAVIR / IMAG

A simple kinetic visibility polygon

EWCG’02

Samuel Hornus, Claude Puech

Page 2: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Hypothesis :

• simply-polygonal obstacles

• known algebraic motion (everything can move)

Goals :

• maintaining the visibility polygon continuously

Solution :

Kinetic Data Structure framework

Page 3: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Overview

• Kinetic Data Structures (KDS)

• Visibility polygon

• Detecting crossing events

• Updating the visibility polygon

• Conclusion

contributions

Page 4: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Overview

• Kinetic Data Structures (KDS)

• Visibility polygon

• Detecting crossing events

• Updating the visibility polygon

• Conclusion

Page 5: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Kinetic Data Structures

• Moving Items (points, segments, …)

• Attributes on the items (convex hull, voronoï diagram)

given with a proof of correctness for the static case

• Idea : animating the proof through time when items are moving

certificate failure

[Bash and Guibas 95]

Page 6: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Kinetic Data Structures

Proof ofcorrectness

Certificatefailure

Proof update Attribute update

[Bash and Guibas 95]

Page 7: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Overview

• Kinetic Data Structures (KDS)

• Visibility polygon

• Detecting crossing events

• Updating the visibility polygon

• Conclusion

Page 8: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Visibility polygon

• n vertices / edges

• Cyclically ordered set of the n tangent rays

• The visible edge is stored between each pair of tangent rays

Page 9: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Overview

• Kinetic Data Structures (KDS)

• Visibility polygon

• Detecting crossing events

• Updating the visibility polygon

• Conclusion

Page 10: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Detecting Eventsconsecutive rays in the ordered set

Page 11: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Detecting Events

crossingevent !

Page 12: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Detecting Events

next crossing event

Page 13: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Detecting Events

Page 14: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Overview

• Kinetic Data Structures (KDS)

• Visibility polygon

• Detecting crossing events

• Updating the visibility polygon

• Conclusion

Page 15: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility Polygon

Knowing only the visibility polygon is not enough to maintain it, we need more data…

We will use a weak radial decomposition of the scene.

Page 16: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility PolygonEach tangent ray consists of

- the vertex of « tangency »

Page 17: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility PolygonEach tangent ray consists of

- the vertex of « tangency »

- the hit edge along the ray, beyond the vertex of tangency

8

88

88 8

8

8

Page 18: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility PolygonEach tangent ray consists of

-the vertex of « tangency »

- the hit edge along the ray

-the visible edge at its left

88

88

88

8

8

8

Page 19: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility PolygonEach tangent ray consists of

-the vertex of « tangency »

- the hit edge along the ray

-the visible edge at its left

-the type of the tangency vertex

see next slide…

88

88

88

8

8

8

Page 20: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility Polygon

Tangent ray type

Page 21: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility Polygon

R

L

hit2hit1Before the crossing

Page 22: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility Polygon

• There is no other tangent ray between these ones

Before the crossing

R

L

hit2hit1

Page 23: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility Polygon

C

R

L

hit2hit1

• There is no other tangent ray between these ones

Before the crossing

• C exists if and only if

hit1 is different from hit2

Page 24: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility Polygon

R

L

hit2hit1

Before the crossing,

when C does not exist

visible = hit2 = hit1

Page 25: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility PolygonAfter the crossing,

R

L

hit1 := R

hit2

R

L

hit2hit1

Before the crossing,

when C does not exist

visible = hit2 = hit1

visible := L

Page 26: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility Polygon

R

L

hit2

Before the crossing,

when C does not exist

visible = C

C

hit1 = C

Page 27: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

Updating the Visibility PolygonAfter the crossing,

L

C

R

hit1

hit2

R

L

hit2

Before the crossing,

when C exists

visible = C

C

visible := L

hit1 = C

Page 28: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

ConclusionPros

• Concave (simple) polygons

• Constant time processing of an event

Cons

• High quantity of crossing events

Future Work

• What about 3d ?

Page 29: I MAGIS is a joint project of CNRS - INPG - INRIA - UJF iMAGIS-GRAVIR / IMAG A simple kinetic visibility polygon EWCG’02 Samuel Hornus, Claude Puech

iMAGIS-GRAVIR / IMAG

A simple kinetic visibility polygon

Thank you for your attention

Any questions ?