您好,欢迎访问三七文档
CollisionDetectionforInteractiveGraphicsApplicationsPhilipM.HubbardDepartmentofComputerScienceBrownUniversityProvidence,RhodeIsland02912CS-95-08April1995CollisionDetectionforInteractiveGraphicsApplicationsbyPhilipMartynHubbardA.B.,HarvardUniversity,1988Sc.M.,BrownUniversity,1991ThesisSubmittedinpartialful llmentoftherequirementsfortheDegreeofDoctorofPhilosophyintheDepartmentofComputerScienceatBrownUniversity.Submitted:October1994Revised:March1995c Copyright1995byPhilipMartynHubbardAllrightsreserved.ErrataSection6.3describeshowtobuildatreeofspheresthatapproximateapolyhedron.Onestep,describedinSection6.3.2,takesatreethatroughlycoversapolyhedronandmakesthetreecoverthepolyhedronconservatively.Thisstepshouldensurethateachsetofchildrenspheresatleveljcoversthepartofthepolyhedroncoveredbytheparentsphereatlevelj 1.Myimplementation,however,usedadi erentcriteria.Itensuredthatforeachlevelj,theunionofallspheresatthatlevelcoversthepolyhedron;thepseudocodefromFigure6.26alsousesthisapproach.Thus,aparent’sniecesmaycoverwhatitschildrenshouldcover.Intheory,thisoversightcouldproducetreesthatcausethecollision-detectionalgorithmfromFigure5.4tomisscollisions.IntheempiricaltestsfromSection7.2,though,thisproblemdidnotoccur,asthealgorithmfromFigure5.4foundeverycollisionfoundbyareferencealgorithm.AppendixBassertsthat ndingintersectionsbetweentwo-dimensionalshapes(undermildre-strictions)isasymptoticallyase cientas ndingintersectionsbetweentheshapesboundingboxes.Thisconjecturestillseemsplausible,buttheproofsketchedinAppendixBdoesnotcoverallcases.Fortunately,thisconjectureismerelyadigression,andnoresultsofthisdissertationdependonit.AbstractSolidobjectsintherealworlddonotpassthrougheachotherwhentheycollide.Enforcingthispropertyof\solidnessisimportantinmanyinteractivegraphicsapplications;forexample,solid-nessmakesvirtualrealitymorebelievable,andsolidnessisessentialforthecorrectnessofvehiclesimulators.Theseapplicationsuseacollision-detectionalgorithmtoenforcethesolidnessofob-jects.Unfortunately,previouscollision-detectionalgorithmsdonotadequatelyaddresstheneedsofinteractiveapplications.Toworkintheseapplications,acollision-detectionalgorithmmustrunatreal-timerates,evenwhenmanyobjectscancollide,anditmusttolerateobjectswhosemotionisspeci ed\onthe ybyauser.Thisdissertationdescribesanewcollision-detectionalgorithmthatmeetsthesecriteriathroughapproximationandgracefuldegradation,elementsoftime-criticalcomputing.Thealgorithmisnotonlyfastbutalsointerruptible,allowinganapplicationtotradeaccuracyforspeedasneeded.Thealgorithmusestwoformsofapproximategeometry.The rstisafour-dimensionalstructurecalledaspace-timebound.Thisstructureprovidesaconservativeestimateofwhereanobjectmaybeintheimmediatefuturebasedonestimatesoftheobject’sacceleration.Thealgorithmusesspace-timeboundstofocusitsattentiononobjectsthatarelikelytocollide.Thesecondformofapproximategeometryisasphere-tree.Thisstructurecontainsahierarchyofunionsofspheres,eachunionapproximatingthethree-dimensionalsurfaceofanobjectatadi erentlevelofdetail.Sphere-treesallowthealgorithmtoquickly ndapproximatecontactsbetweenobjects,andtheyallowtheapplicationtointerruptthealgorithminordertomeetreal-timeperformancegoals.Automaticallybuildingsphere-treesisaninterestingprobleminitself,andthisdissertationdescribesseveralapproaches.Thesimplestapproachisbasedonoctrees,andmoresophisticatedapproachesusesimulatedannealingandapproximatemedial-axissurfaces.Severalofthestepsinthesealgorithmsarethemselvessigni cant.Onestepisasimplealgorithmforcheckingwhetheraunionoftwo-dimensionalshapescoversapolygon.AnotherstepbuildsVoronoidiagramsforthree-dimensionaldatapoints,anddoessomorerobustlyandaccuratelythanpreviousalgorithms.Animplementationofthecollision-detectionalgorithmrunssigni cantlyfasterthanapreviousalgorithminempiricaltests.Inparticular,thisimplementationallowsreal-timeperformanceinasampleapplication(asimple ightsimulator)thatistooslowwiththepreviousalgorithm;insomecases,theperformanceimprovesbymorethantwoordersofmagnitude.Experiencewiththissampleapplicationsuggeststhattime-criticalcomputingisnotalwayssimpletoapply,butitprovidesenoughbene tsthatitdeservesfurtherexplorationinothercontexts.iiiAcknowledgementsAlltherecentmembersoftheBrownUniversityComputerGraphicsGroupcontributedtothiswork,whethertheyrealizeitornot.Thegroupisintenseandexciting,anditisdi culttospendmuchtimeinthegroupwithoutfeelingapermanentin uence.Certainmembersofthegroupstandoutfortheirparticularimportancetome.HenryKaufman,MikeNatkin,andPaulStrausshelpedmesettleintothegroupduringmy rstyear.BrookConner,CindyGrimm,KenHerndon,NateHuang,BrianKnep,TomMeyer,DanRobbins,ScottSnibbe,MatthiasWlokaandBobZeleznikspentcountlesshourssharingtheirideaswithmeandhelpingmeclarifymyown.IparticularlythankScottforimplementingtheinteractivesystemthatletmeplaywithtwo-dimensionalVoronoidiagrams,andformodifyingittohelpmegeneratethediagramsthatappearinthisdissertation.DanandKenalsodeservespecialmentionforansweringallmyvideoquestions.LoriAgrestihelpedwithmanyadministrativeproblems,andthe
本文标题:Collision Detection for Interactive Graphics Appli
链接地址:https://www.777doc.com/doc-5455096 .html