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!!!

1 / 9
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功