During this course, you will be asked to complete 7 Homework assignments and 3 projects using Coin3D, 3D Graphics Developer Kit. Coin is an OpenGL based, retained mode 3D graphics rendering library. It is implemented in C++ and publicly available at http://www.coin3d.org/. In the rest of the document, we will provide you with stepbystep installation instructions for Microsoft Visual Studio 2008. Note that it is also possible to complete the assignments and projects with a different IDE (Integrated Development Environment) as long as your programs run correctly and adhere to standards. If you use a MacorLinuxmachine,IwouldsuggestyouusetheQtCreator.
InstallingMicrosoftVisualStudio2008onyourcomputer
If you have not already done so, install Microsoft Visual Studio 2008 (version 9) on your computers with the C++ option. To do this, you can drop by the CIT office, and they can installitforyou.IfyouwouldliketoinstalltheIDEyourselfpleasefollowthesesteps: 1. Runsetup 2. ProceeduntilyoureachtheOptionsPageduringsetupandselectCustom:
3. UncheckalloptionsexceptC++andpressInstall:
4. Youaredonewhenyouseethefollowingscreen:
InstallingCoin3Donyourcomputer
HavinginstalledtheVisualStudio,itistimetoinstallCoin3D,thegraphicslibrarywewilluse forMECH434/534.Thelatestversionispubliclyavailableinthewebsoyoucandownload andinstallitonyourownmachines. 1. Gotohttp://www.coin3d.org/lib/downloads 2. SelecttheoptionImDevelopingOpenSourceSoftware
c. AlsoaddthebinfoldertoyoursystempathbyeditingtheexistingPath Variable:
Dontworryabouttheerror,itonlyindicatesthatthedocumentationcould notbeinstalled,whichisnotamajorissue.
f. DothesamebuildoperationalsofortheReleaseconfigurationbyselecting DLL(Release)fromtheconfigurationpulldownlist.
g. CheckyourCoininstallationfolder.Itshouldnowcontainanewfoldernamed data.
Testingyourinstallation,settingupaprojectandcompiling yourfirstprogram
1. RunVisualStudioandselectFileNewProjectfromthemenu. 2. Selectprojectpropertiesinthedialogboxbyexecutingthefollowingsteps:
a. b. c. d. e.
f. Youwillseeaconfirmationscreen.ClickonApplicationSettingsbefore hittingNext.
g. CheckEmptyprojectandhitFinish.
5. SelectconfigurationprofileasRelease
b. CreateanewplatformbyselectingActivesolutionconfigurationasRelease andselecting<New>inActivesolutionplatformdropdownmenus.
c. Createanewplatformbychoosingx64inNewPlatformandbyselectingCopy settingfromWin32.ClickOKandcloseConfigurationManager.
c. InConfigurationProperties|C++|Preprocessor,addCOIN_DLL;SOWIN_DLL toPreprocessorDefinitions:
d. InConfigurationProperties|Linker|General,add$(COINDIR)/libto AdditionalLibraryDirectories:
e. InConfigurationProperties|Linker|Input,setAdditionalDependenciesas coin3.libsowin1.libsimage1.lib: