o3de开源项目

我要开发同款
匿名用户2021年11月26日
51阅读
开发技术C/C++
所属分类游戏/娱乐、游戏模拟器/工具/引擎
授权协议View license

作品详情

O3DE(Open3DEngine)

O3DE(Open3DEngine)isanopen-source,real-time,multi-platform3DenginethatenablesdevelopersandcontentcreatorstobuildAAAgames,cinema-quality3Dworlds,andhigh-fidelitysimulationswithoutanyfeesorcommercialobligations.

Contribute

ForinformationaboutcontributingtoOpen3DEngine,visithttps://o3de.org/docs/contributing/.

DownloadandInstall

ThisrepositoryusesGitLFSforstoringlargebinaryfiles.

VerifyyouhaveGitLFSinstalledbyrunningthefollowingcommandtoprinttheversionnumber.

gitlfs--version

IfGitLFSisnotinstalled,downloadandruntheinstallerfrom:https://git-lfs.github.com/.

InstallGitLFShooksgitlfsinstallClonetherepositorygitclonehttps://github.com/o3de/o3de.gitBuildingtheEngineBuildrequirementsandredistributables

Forthelatestdetailsandsystemrequirements,refertoSystemRequirementsinthedocumentation.

WindowsVisualStudio201916.9.2minimum(Alleditionssupported,includingCommunity): https://visualstudio.microsoft.com/downloads/CheckSystemRequirementsforothersupportedversions.Installthefollowingworkloads:GameDevelopmentwithC++MSVCv142-VS2019C++x64/x86C++2019redistributableupdateCMake3.20.5minimum: https://cmake.org/download/OptionalWwiseaudioSDKForthelatestversionrequirementsandsetupinstructions,refertotheWwiseAudioEngineGemreferenceinthedocumentation.Quickstartenginesetup

Tosetupaproject-centricsourceengine,completethefollowingsteps.Forotherbuildoptions,refertoSettingupO3DEfromGitHubinthedocumentation.

Createawritablefoldertocachedownloadablethird-partypackages.YoucanalsousethistostoreotherredistributableSDKs.

Installthefollowingredistributables:

VisualStudioandVC++redistributablecanbeinstalledtoanylocation.CMakecanbeinstalledtoanylocation,aslongasit'savailableinthesystempath.

Configuretheenginesourceintoasolutionusingthiscommandline,replacing<yourbuildpath>,<yoursourcepath>,and<3rdPartypackagepath>withthepathsyou'vecreated:

cmake-B<yourbuildpath>-S<yoursourcepath>-G"VisualStudio16"-DLY_3RDPARTY_PATH=<3rdPartypackagepath>

Example:

cmake-BC:\o3de\build\windows_vs2019-SC:\o3de-G"VisualStudio16"-DLY_3RDPARTY_PATH=C:\o3de-packages

Note:Donotusetrailingslashesforthe<3rdPartypackagepath>.

Alternatively,youcandothisthroughtheCMakeGUI:

Startcmake-gui.exe.Selectthelocalpathoftherepounder"Whereisthesourcecode".Selectapathwheretobuildbinariesunder"Wheretobuildthebinaries".ClickAddEntryandaddacacheentryforthe<3rdPartypackagepath>folderyoucreated,usingthefollowingvalues:Name:LY_3RDPARTY_PATHType:STRINGValue:<3rdPartypackagepath>ClickConfigure.Waitforthekeyvaluestopopulate.Updateoraddanyadditionalfieldsthatareneededforyourproject.ClickGenerate.

Registertheenginewiththiscommand:

scripts\o3de.batregister--this-engine

Theconfigurationofthesolutioniscomplete.Youarenowreadytocreateaprojectandbuildtheengine.

Formoredetailsonthestepsabove,refertoSettingupO3DEfromGitHubinthedocumentation.

Settingupnewprojectsandbuildingtheengine

FromtheO3DErepofolder,setupanewprojectusingtheo3decreate-projectcommand.

scripts\o3de.batcreate-project--project-path<yournewprojectpath>

Configureasolutionforyourproject.

cmake-B<yourprojectbuildpath>-S<yournewprojectsourcepath>-G"VisualStudio16"-DLY_3RDPARTY_PATH=<3rdPartycachepath>

Example:

cmake-BC:\my-project\build\windows_vs2019-SC:\my-project-G"VisualStudio16"-DLY_3RDPARTY_PATH=C:\o3de-packages

Note:Donotusetrailingslashesforthe<3rdPartycachepath>.

Buildtheproject,AssetProcessor,andEditortobinariesbyrunningthiscommandinsideyourproject:

cmake--build<yourprojectbuildpath>--target<NewProjectName>.GameLauncherEditor--configprofile--/m

Note:Yourprojectnameusedinthebuildtargetisthesameasthedirectorynameofyourproject.

Thiswillcompileaftersometimeandbinarieswillbeavailableintheprojectbuildpathyou'vespecified,underbin/profile.

Foracompletetutorialonprojectconfiguration,seeCreatingProjectsUsingtheCommandLineInterfaceinthedocumentation.

License

FortermspleaseseetheLICENSE*.TXTfilesattherootofthisdistribution.

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论