教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 文库大全 > 教育文库 >

Integrating Dynamic Deformations into Interactive Volume(2)

来源:网络收集 时间:2026-09-06
导读: Acommonapproachforhardwarerenderingofvolumesplacesthevolumeina3Dtexture,see[EHK 04]forde-tails.Brie y,theintegraloflightattenuationovereachraythroughthevolumeisapproximatedbysampling.Thesam-plesarege

Acommonapproachforhardwarerenderingofvolumesplacesthevolumeina3Dtexture,see[EHK 04]forde-tails.Brie y,theintegraloflightattenuationovereachraythroughthevolumeisapproximatedbysampling.Thesam-plesaregeneratedbyrenderingproxygeometry,andaccu-mulatedintheframebufferwithcompositingoperations.Toprovideforcorrectsamplingthroughtheobjectspace,asetofparallelgeometricelementsareusedfortheproxygeometry.Mostoften,theseareviewalignedplanes.Un-derperspectiveprojection,thespacingofthesamplesisnon-uniform(Figure2).Whiletheseerrorsareoftensmallenoughtobeignored,theycanbeaddressedthroughtheuseofnon-planarproxygeometryorapplyingaper-pixel(e.g.ray)correctionfactor.Ourimplementationdoesthelatter.Volumerenderingisimplementedbyrenderingpolygonsintheviewalignedplanesinbacktofrontorder.Eachpoly-gonisassignedtexturecoordinatessuchthatitsfragmentssampletheappropriatelocationinobjectspace.3.2.DeformedVolumeRendering

ThedeformedvolumerenderingprocessisschematizedinFigure2.First,theundeformedvolumedataisplacedina3Dtexture.Therenderingprocessdrawsaseriesofpolygonsthatarealignedwiththeimageplane.Eachpolygonisas-signedtexturecoordinatesthatareitsdeformedobject-spacecoordinates.Whenthepolygonisrasterized,eachfragment’sexecutionisprovideditsdeformedobject-spacecoordinatesandthevolumetrictextureasinputparameters.Tosamplethedeformation,itmustthereforeconvertthedeformedob-jectspacecoordinatesintoundeformedobjectspace,ortex-turespace,coordinatesbyapplyingtheinversedeformationfunctionbeforeperformingthetexturelookup.

cTheEurographicsAssociation2006.

Renderingadeformedvolumerequiresreplacingalleval-uationsoftheundeformedvolume,v,withthedeformedvol-ume,v′,meaningthatreferencestovarereplacedbyv u.

Fromanimplementationpointofview,foreachfragment,weapplytheinversedeformationfunctiontothedeformedobjectspacecoordinatesandusetheresultingundeformedobjectspacecoordinatestosamplethetexture.Thatis,thefragmentprogramforanundeformedtexturehasthefollow-ingstructure:

Vec3uvw=textCoord;

floatd=texture3D(texD,uvw);Vec4color=transfer(d);

thedeformedrenderingcanbeachievedsimplybyinsertingtheinversedeformationintotheevaluation:

Vec3uvwo=textCoord;

Vec3uvw=invDeform(uvwo);

floatd=texture3D(texD,uvw);Vec4color=transfer(d);

Thelookupintothevolumetextureperformsapointsam-plingwhichmayleadtoaliasing.Thisproblemshouldbeaddressedwhetherornotdeformationisused.Anyvolumetexturesamplingsolution,suchasa3Danalogtoamipmap,appliestothedeformedcaseaswell.Tocorrectly lterthewarp,thekernelradiusmustbedeterminedforthespacingofthesamplingintexturespace,notobjectspace.Ourpresentimplementationimplementspointsampling.

Withthedeformationfunction“encapsulated”insideofthefragmentprogram,otheraspectsofthevolumerender-ingprocessareunchanged.Theundeformedvolumedataisstillstoreddirectlyinthe3Dtexture.Anyproxygeometrycanbeused,althoughitismostsensibletouseview-alignedplanestoavoidartifacts.Proxygeometryisprovidedwithobjectspacelocationsastexturecoordinates,justasbeforedeformationsbecamepartoftherenderingprocess.Thefactthatthisobjectspaceisdeformedobjectspaceishiddenas

Non-linear geometric deformation (or warping) is a useful tool for working with volumes. Unfortunately, the computational expense of performing the resampling needed to implement volume deformation has precluded its use in interactive applications. In this

thetransformationbetweendeformedandundeformedob-jectspaceinthefragmentprogram.

Unfortunately,thereareseveralhurdlesthatwemustad-dressinordertorealizesuchanapproach:

1.Fragmentprogramshavelimitedresourcesmakingsomedeformationfunctionsimpracticaltoimplement.2.Shadingneedsthegradientofthedeformedvolume.3.Giventhelargenumberoffragmentsthatmustberen-dered,theamountofcomputationmightleadtoperfor-manceissues.Thefollowingtwosectionsconsiderhowweaddressthese rsttwohurdles.TheperformanceconsiderationisdeferreduntilSection6.2.

3.3.DeformationFunctions

Onedif cultyinourmethodisthatthedeformationfunc-tionmustbeencodedintothefragmentprogram.While,inprinciple,thefragmentprogramsmaybegeneralpurposecomputations,inpracticetheresourcesavailabletofragmentprogramsaremorelimitedthanthosetotheCPU.Afurtherpracticallimitationisthatsincetheseprogramsareexecutedforeveryfragmentrendered,theymustbeef cient.Thecontinuedevolutionofhardwareandshadinglan-guagesexpandsthesetoffunctionsthatcanbeimplementedeffectivelyasfragmentprograms.However,theremayal-waysbesomefunctionsthataretoocomplexorcomputa-tionallyexpensivetoapplyinthefragmentprograms.Weevaluatesuchfunctionsusingadatacentricrepresentationofstoringatableofsamplesandinterpolating.

Theideaofstoringasampledrepresentationofthefunc-tionuina3Dtexturewassuggestedin[RSSSG01].Priortorendering,theinversedeformationfunctionisevaluatedontheCPUforallpointsonaregular3Dgrid.Thesesam-plesarestoredina3Dtexturethatisaccessedbythefrag-mentprograms.Becausetextureaccessprovidestrilinearin-terpolation,thisapproacheffectivelyconstructsanef cienttoevaluate,piecewise-linearapproximationtothedeforma-tionfunction.Evaluationoftheinversedeformationfunctioninthefragmentprogramsrequiresonlyasingle3Dtexturesamplingoperation,independentofthecomplexityofthefunctionitself.Thisdeformationtextureneednothavethesameresolutionasthevolumedata.

Theuseofasampleddeformationfunctionhasdraw-backs.Forone,itcomputesapiecewiselinearapproximationthatmayfailtocapturedesiredsmoothnessorhighfrequen-ciesunlesslargenumbersofsamplesareused(Figure3).Second,theentiretablemustbeevaluateddensely,whichmaybeexpensive.However,formanycategoriesoffunc-tions(suchaspolynomialsplines),methodsforcomputingregularsamplescanbemoreef cientthancomputinginde-pendentsamples.Third,fragmentprogramsoftenbecometexture-lookup

bound.

(a)163control

texture(b)323control

texture

(c)643control

texture

(d)Fragmentdeformation

Figure3:Imagesofasolidbrickinsideofa2563volumeun-derasinedeformation.Thedeformationisperformedwithcontroltexureso …… 此处隐藏:6204字,全部文档内容请下载后查看。喜欢就下载吧 ……

Integrating Dynamic Deformations into Interactive Volume(2).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wenku/280129.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)