* Added some structs for detail materials Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Added some template functions for looking up materials. Added lookups for all the relevant detail material fields in StandardPBR. Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Added some structs for detail materials Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Added some template functions for looking up materials. Added lookups for all the relevant detail material fields in StandardPBR. Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Added support for generating a detail material texture with IDs populated from surface weights. Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Updated TerrainAreaMaterailRequestBus to have separate calls for region vs materials instead of the awkward out parameter Update MaterialPropertyDescriptor so that you can retrieve enum names by ID Several bug fixes / updates to the terrain feature processor dealing with detail materials. Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Updating detail material texture based on offsets. Not quite working yet but close. Added visualization for detail material in shader (currently on, will be turned off before final commit) Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Small bugfixes * Fix compile error in non-unity builds * Fixed backwards x/y loops causing the wrong pixels to update * Fixed selection of surface type with multiple surface weights Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Adding seam to detail texture debug display. Offseting edges by a half-pixel to avoid bleed. Disabling debugging detail textures by default. Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Missing file from last commit for detail material change. Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Cleanups Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * bug fix Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Bug fix in the terrain fp for TerrainAreaMaterialRequestBus returning incomplete materials on GetSurfaceMaterialMappings Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Some PR updates. Exposing detail material id debugging through a cvar. Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Various updates from review. Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * PR updates dealing with debug texture boundary line. Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Hiding some fields from the terrain material Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * Fixing type in generic lambda for linux / android Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> Co-authored-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> |
4 years ago | |
|---|---|---|
| .github/ISSUE_TEMPLATE | 4 years ago | |
| Assets | 4 years ago | |
| AutomatedTesting | 4 years ago | |
| Code | 4 years ago | |
| Gems | 4 years ago | |
| Registry | 4 years ago | |
| Templates | 4 years ago | |
| Tools | 4 years ago | |
| cmake | 4 years ago | |
| python | 4 years ago | |
| scripts | 4 years ago | |
| .clang-format | 5 years ago | |
| .editorconfig | 5 years ago | |
| .gitattributes | 5 years ago | |
| .gitignore | 4 years ago | |
| .lfsconfig | 5 years ago | |
| CMakeLists.txt | 4 years ago | |
| CODE_OF_CONDUCT.md | 5 years ago | |
| CONTRIBUTING.md | 5 years ago | |
| Doxyfile_ScriptBinds | 5 years ago | |
| LICENSE.txt | 5 years ago | |
| LICENSE_APACHE2.TXT | 5 years ago | |
| LICENSE_MIT.TXT | 5 years ago | |
| README.md | 4 years ago | |
| SerializeContextAnalysis.bat | 5 years ago | |
| SliceBuilderSettings.json | 5 years ago | |
| aztest_bootstrap.json | 5 years ago | |
| editor.cfg | 4 years ago | |
| engine.json | 4 years ago | |
| pytest.ini | 4 years ago | |
| system_android_android.cfg | 4 years ago | |
| system_ios_ios.cfg | 4 years ago | |
| system_linux_pc.cfg | 4 years ago | |
| system_mac_mac.cfg | 4 years ago | |
| system_windows_pc.cfg | 4 years ago | |
README.md
O3DE (Open 3D Engine)
O3DE (Open 3D Engine) is an open-source, real-time, multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
Contribute
For information about contributing to Open 3D Engine, visit https://o3de.org/docs/contributing/.
Download and Install
This repository uses Git LFS for storing large binary files.
Verify you have Git LFS installed by running the following command to print the version number.
git lfs --version
If Git LFS is not installed, download and run the installer from: https://git-lfs.github.com/.
Install Git LFS hooks
git lfs install
Clone the repository
git clone https://github.com/o3de/o3de.git
Building the Engine
Build requirements and redistributables
For the latest details and system requirements, refer to System Requirements in the documentation.
Windows
- Visual Studio 2019 16.9.2 minimum (All editions supported, including Community): https://visualstudio.microsoft.com/downloads/
- Check System Requirements for other supported versions.
- Install the following workloads:
- Game Development with C++
- MSVC v142 - VS 2019 C++ x64/x86
- C++ 2019 redistributable update
- CMake 3.20.5 minimum: https://cmake.org/download/
Optional
- Wwise audio SDK
- For the latest version requirements and setup instructions, refer to the Wwise Audio Engine Gem reference in the documentation.
Quick start engine setup
To set up a project-centric source engine, complete the following steps. For other build options, refer to Setting up O3DE from GitHub in the documentation.
-
Create a writable folder to cache downloadable third-party packages. You can also use this to store other redistributable SDKs.
-
Install the following redistributables:
- Visual Studio and VC++ redistributable can be installed to any location.
- CMake can be installed to any location, as long as it's available in the system path.
-
Configure the engine source into a solution using this command line, replacing
<your build path>,<your source path>, and<3rdParty package path>with the paths you've created:cmake -B <your build path> -S <your source path> -G "Visual Studio 16" -DLY_3RDPARTY_PATH=<3rdParty package path>Example:
cmake -B C:\o3de\build\windows_vs2019 -S C:\o3de -G "Visual Studio 16" -DLY_3RDPARTY_PATH=C:\o3de-packagesNote: Do not use trailing slashes for the <3rdParty package path>.
-
Alternatively, you can do this through the CMake GUI:
- Start
cmake-gui.exe. - Select the local path of the repo under "Where is the source code".
- Select a path where to build binaries under "Where to build the binaries".
- Click Add Entry and add a cache entry for the <3rdParty package path> folder you created, using the following values:
- Name: LY_3RDPARTY_PATH
- Type: STRING
- Value:
<3rdParty package path>
- Click Configure.
- Wait for the key values to populate. Update or add any additional fields that are needed for your project.
- Click Generate.
- Start
-
Register the engine with this command:
scripts\o3de.bat register --this-engine -
The configuration of the solution is complete. You are now ready to create a project and build the engine.
For more details on the steps above, refer to Setting up O3DE from GitHub in the documentation.
Setting up new projects and building the engine
-
From the O3DE repo folder, set up a new project using the
o3de create-projectcommand.scripts\o3de.bat create-project --project-path <your new project path> -
Configure a solution for your project.
cmake -B <your project build path> -S <your new project source path> -G "Visual Studio 16" -DLY_3RDPARTY_PATH=<3rdParty cache path>Example:
cmake -B C:\my-project\build\windows_vs2019 -S C:\my-project -G "Visual Studio 16" -DLY_3RDPARTY_PATH=C:\o3de-packagesNote: Do not use trailing slashes for the <3rdParty cache path>.
-
Build the project, Asset Processor, and Editor to binaries by running this command inside your project:
cmake --build <your project build path> --target <New Project Name>.GameLauncher Editor --config profile -- /mNote: Your project name used in the build target is the same as the directory name of your project.
This will compile after some time and binaries will be available in the project build path you've specified, under bin/profile.
For a complete tutorial on project configuration, see Creating Projects Using the Command Line Interface in the documentation.
License
For terms please see the LICENSE*.TXT files at the root of this distribution.