haptic rendering of nurbs models

37
IMA Haptics Workshop - David Johnson - Univ. of Utah Haptic Rendering of NURBS Models David Johnson Virtual Prototyping Project School of Computing University of Utah www.cs.utah.edu/~dejohnso

Upload: jorden-cortez

Post on 31-Dec-2015

39 views

Category:

Documents


2 download

DESCRIPTION

Haptic Rendering of NURBS Models. David Johnson Virtual Prototyping Project School of Computing University of Utah www.cs.utah.edu/~dejohnso. Sample Design Pipeline. Clay model is modified. Motivation -Virtual Prototyping. Replace physical prototypes with digital ones. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Haptic Rendering of NURBS Models

David Johnson

Virtual Prototyping ProjectSchool of Computing

University of Utah

www.cs.utah.edu/~dejohnso

Page 2: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Sample Design Pipeline

Clay model is modified

Page 3: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Motivation -Virtual Prototyping

• Replace physical prototypes with digital ones.

• Allow human interaction with virtual models.

• Test– aesthetics– assembility– ergonomics

Page 4: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Approach

• Add sense of touch to virtual prototyping system.

• Avoid conflicting cues between visual and haptic senses.

• Leverage innate human talents at manipulation.

Page 5: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Computing Haptic Forces

• Approximate complicated surface deformation with a wall model

• Force proportional to penetration depth

Page 6: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Local vs Global Closest Point

Why do we want to track the local closest pt?

Global closest point

Localclosest point

Desiredpenetration

depth

Previous position

Page 7: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Background - Surface Rep

• Choice of surface representation– Intermediate– Polygonal– Implicit– Voxel– NURBS

Page 8: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

NURBS Representation

• Same as used in CAD– avoid translation

• Compact storage• Exact (assembly)• Thompson ‘97,

Johnson ‘98, ‘99, Stewart and Buttulo ‘97

Page 9: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

NURBS Surfaces

Control mesh

Control point

Page 10: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

NURBS Background• Piecewise-polynomials of two variables

• Control mesh weights the basis functions

• Refinement adds DOFs to surface

Page 11: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Trimmed NURBS Models• Defined in parametric domain

• Directed closed polygon

• Loops

• Edges

• Segments

Parametric Domain Surfaces

Page 12: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Multi-stage process

• Three stages– Proximity– Local Tracking– Contact

• Helps manage overall scene complexity

Page 13: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Global Minimum Distance Framework

• Use a hierarchical refinement method (LUB-tree)– completely stable– reasonable speed (20-100 Hz)

• Experimenting with local methods – 1000 Hz for point to trimmed model– Some stability concerns

Page 14: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

LUB-Tree Framework• LUB-Tree

– Bounding hierarchy– Establish upper bound on minimum

distance– Measure lower bound for current bounding

volumes– Prune away impossible areas– Refine

Page 15: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

LUB-Tree: Example• Bounding volumes around model

Page 16: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

LUB-Tree: Example

• Establish upper bound on minimum distance

Page 17: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

LUB-Tree: Example• Measure lower bound for current

bounding volumes

Page 18: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

LUB-Tree: Example

• Prune regions further away than the upper bound

Page 19: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

LUB-Tree: Example

• Refine remaining regions

• Repeat

Page 20: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

LUB-Tree: NURBS

• Apply polygonal style method to NURBS models

Page 21: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

LUB-Tree: NURBS

• Refinement– Group remaining polynomial pieces– Extract– Refine

Page 22: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Time-critical Properties• Upper and lower bounds found quickly

Page 23: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Local Tracking

• Initialized by global method

• Local methods– faster– give the desired behavior

Page 24: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Direct Parametric Tracking (DPT)

Initial State Movement Project Compute parametric change and new surface position

Page 25: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

DPT derivation for a curve

• B-spline curve

• Velocity curve relates movement along curve to change in parameter

or

Page 26: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

DPT derivation (cont.)

• Use linear approximation

• Tangents are efficiently evaluated

Page 27: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

DPT derivation (cont.)

• All together

• 1000’s of Hz

• Pretty reliable

u

P P

P P

u uk

i i

i i

i k i

,.1

1

21

1

Page 28: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

0)),((

0)),((

vSuS

PvuS

PvuSF

• Multidimensional Newton’s method

FJ x

v

u

vvvu

uvuu

SPS

SPS

v

u

SPSSPS

SPSSPS

)(

)(

])[(])[(

])[(])[(

S

P

Higher-order tracking

• Orthogonal to tangents

Page 29: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Haptic “Philosophy”

• Coherence can save you!

• Perform one iteration of Newton’s method at higher rates rather than more iterations at lower rates.

Page 30: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Improved stability

DPT method Higher-order method

Page 31: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Dealing with Trimming Loops• Brute force approach not feasible

• Grid approach– Boundary on

bounding box– Walk algorithm

Page 32: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Grid Data• Goblet

– 3 surfaces– 254 segs– 13 max– 3 mean– 89% empty

Gear 22 surfaces 1256 segs 15 max 4 mean 92% empty

Crank Shaft 73 surfaces 412 segs 36 max 4 mean 89% empty

Page 33: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Current Projects

• Develop systems of equations for two models– minimum distance– penetration depth

Nelson, D, Johnson, D., and Cohen, E., "Haptic Rendering of Surface-to-Surface Sculpted Model Interaction," in Proc. 8th Annual Symp. on Haptic Interfaces for Virtual Environment and Teleoperator Systems, (Nashville, TN), ASME, November 1999.

Page 34: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Current Projects

• Apply concepts from NURBS local tracking back to polygonal models

• Encapsulate directional information in data structure

• Prune based on orientation, not spatial bounds

eyenormal cone

view cone

Page 35: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Local minimum distance

Sphere Holes3 Small bunny Large bunny

# triangles 32,700 11,800 10,800 69,500

Time (ms) 0.06 0.05 0.1 0.2

Page 36: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Local minimum distance• Also for model-model distance

Page 37: Haptic Rendering of NURBS Models

IMA Haptics Workshop - David Johnson - Univ. of Utah

Acknowledgements

• Tom Thompson, John Hollerbach, and Donald Nelson provided some material for slides.

• Sponsored by NSF