您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 其它文档 > createquest3dchannel
CreatingQuest3DChannelStepByStepByChinLin()WrittenByChinLin@Taipei.Taiwan.RepublicOfChina2005/06/28~chinlin/DuetothepoordocumentsofQuest3DSDK,Iwrotesomestepbystepinstructions,creatingyourfirstchannel.Ihopethisdocumentmighthelpyougointothequest3dsdkworldeasily!!JThedocumentiswritteninahurryandsorryformypoorEnglish,itisnotverywellorganized.Let’sbegin!!!1.DownloadtheQuest3DSDK2.5A,andunzipit,youwillseethefollowfilesstructure:2.gointothetemplate(thisisaVisualC++wizardfiles),youwillseethe2.awxfiles.NOTICE:IfyouwanttobuildachanneldllforQuest3D3.0,u“hadbeter“useQuest3D3.0SDKtorebuildurproject.Youwillfindthatthereisnotemplatefolderandno.awxfileinQuest3D3.0package”!(thatiswhyIsuggestudownloadthe2.5Afirsttoinstallthewizardfile).Ucanstillusethe.awxthatisfrom2.5ASDKpackatetobuildur3.0versionChannel,theyaresourcecompatible(ofcouse,uneedsomemodificationifinneed)Howtobuildurquest3Dfordifferentversion?TheonlythinguhavetodoischangeyourincludeandlibraryfilepathinVC“tools”menu.Iwilldiscussthedeailslater.3.copythe2filesintoVC’swizardfilefolder(ex:inmycomputer,thevc’spathisC:\ProgramFiles\MicrosoftVisualStudio\Common\MSDev98\Template)4.Nice!!youcannowstartyourVisualC++now.selecttheprojectstab,youwillseetheQuest3Dchannelinstalledinit.Youcannowcreateprojectwiththesechannelwizard.5.Youwillseethegeneratedcodesasfollows:5.1addsomesamplecodeinCallChannel()method:(thisisforquest3dsdkbeginner)MessageBox(NULL,hi!itischannel,debug,MB_OK);6.beforecompiling,pleasecheckyourinclude,andlibraryfilepath.ItdependsonwhatuwanttobuildurchannelfordifferentQuest3Dversion.(2.5Aor3.0…andsoon).Inmyexample,Iuse2.5ASDKforbuildingmychanneldll.NOTICE:ifyourchannelwanttousesomelibraryorincludefiles,uhavetocarethispart!!!7.aftersetting,ucannowcompileursimplechannel.uneedtocareabouttheprojectsettingforthegereratingdllpath.!TAKEcareforurOutputfilename,hereismyexample:C:\ProgramFiles\Act-3D\Quest3D2.5a\channels\4D305564-AE94-440F-8259-2FEB0A227842.dllOfcourse,ucanrenametoanyoneulike!Thethinguhavetocareistocheckiffilepathiscorrectornot.Andifyourchannelswanttocallsomeotherlibrary,uhavetotakecareofyour“librarymodules”,forexample,ifyouwanttocallwinsockapiinurchannel,uhavetoaddwsock32.libin“librarymodules”,sothaturchannelcanlinkthemodulecorrectly.8.YouhadbetteruseDebugmodefirsttocompileur“first”channelbeforeusingReleasemode.Becausetheremightsomedifferentresultofurchannelwithdifferentmode.Exampleofmychannels,Icanmakemychannelworkwellindebugmode,butinrelaseoode.Itmightbethememorymanagementproblem.butifyouarenotwritingcomplexchannel,itmightworkwellinReleasemode.Takecareyourself.:P9.ok!nowucanbuildourchannel!!!Notice:beforebuildingurchannel,uhavetoturnoffyourQuest3Dfirst.Afterbuildingurchannels,ucanopenthequest3dandseeurchannelhowtheywork!See?!why?itisallaboutDLL!Ifuseebugsinurchannels,anduwanttomodifyurcode!Pleaseturnoffyourquest3Dagain.andrebuildurchanneldll.Thenturnonurquest3D!10.Openthequest3d2.5A(becauseurchanneluse2.5A‘sincludeandlibrary,theyarefor2.5Achannel)Ifyouuse,forexample,3.0SDKtobuildurchannelsdll,andusequest3d2.5Aeditor.Youmightseenochannelexitedinthechannellist!Thatisbecauseuusewrongversion!!!Alwayscheckurversionproblemwhenhavingproblems.!Andthechannelexample:Theresult:goodluck!!!
本文标题:createquest3dchannel
链接地址:https://www.777doc.com/doc-838649 .html