Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
Sean Stolberg 27095063 for .net 2.0 api 4 年前
Assets disable camera destroy until Andre implements a better solution for our static scene test not have the camera always present 4 年前
Packages Potential camera and volume fixes 4 年前
ProjectSettings We need to run in .NET api compat level 1 (.NET 2.0) to avoid compilation issues with test packages. 4 年前
.gitattributes Large update, lots of visual differences, be careful updating to here 7 年前
.gitignore Tweaks to water shader and fixed lifetime issue for caustics material 5 年前
.gitmodules Removed WaterSystem submodule and embedded as local Package. 6 年前
LICENSE.md Update LICENSE 5 年前
README.md Updated readme 5 年前
TestRunnerOptions.json for .net 2.0 api 4 年前

README.md

Note:This repository uses GitLFS, to use this repo you need to pull via Git and make sure GitLFS is installed locally

Boat Attack

Demo Project using the Universal RP from Unity3D

Click for Youtube Video

This Unity project has been created to aid the testing and development of Universal RP. The project is a small vertical slice of a boat racing game, complete with race-able boats and island environment.

Feel free to post any issues, but know this is a 'as is' repo, it's meant more for discovery of how some of the Universal RP features work and a learning resource for some tricks.

Project Features:

  • Uses Universal RP from Unity
  • Mobile optimized, low poly, LODs, no compute
  • C# Jobs buoyancy system
  • Cinemachine camera setups
  • Shader Graph usage
  • Post-processing v3 with Volume blending
  • Addressables asset management package
  • Custom Universal RP rendering for planar reflections via SRP callbacks
  • Custom SciptableRenderPass usage for WaterFX and Caustics
  • Gerstner based water system in local package(WIP)
  • Much more..

Demo Footage

Usage

Getting the project

via Git:

  1. Make sure you have GitLFS installed, check here for details.
  2. Clone the repo as usual via cmd/terminal or in your favourite Git GUI software.
  3. Checkout the branch that matches the Unity verison you are using, eg release/2019.3

Downloadable zips:

  1. 2019.3 Project (Unity 2019.3f5)

Load the project:

Once you have the project files locally you can load the project, ideally in the Unity version that is noted in the ProjectSettings/ProjectVersion.txt for the best experience. Upon loading the project will display a small welcome screen with some buttons to load starting scenes.

Scenes worth noting:

  • scenes/main_menu.unity - Starting menu scene if you want to have a full play-through of the demo.
  • scenes/demo_island.unity - Setup to play in the editor and go straight into an AI based race.
  • scenes/_levels/level_Island.unity - The scene loaded when entering from the main menu.
  • scenes/Testing/***.unity - Assorted test scenes, these are in need of updating and come as is.

Build the project:

One thing to make sure you do before building is make sure to build the addressable assets, this can be done via the addressables window, for more information please checkout the addressables package documentation. Once the addressable assets are built you can continue to build a player as usual.

One thing to mention is not all controls and platforms have been tested, especially for the menu work. if you want to just see the project running on a device you can add the scenes/demo_island.unity scene to the build list and disable/remove the others.

Todo

As this project is on going there is a lot more left that needs to be worked on, so I repeat this is not a resource for production ready workflow ideas or systems and lots of it was put together very quickly.

Some of the things left to do:

  • Make water system more modular and improve UX
  • Improve boat AI
  • Add imposter rendering for vegetation
  • Cleanup menu system to switch between Demoing/Playing/Benchmarking
  • Implement Unity Physics
  • Optimize cross platform performance and stability
  • Continue code cleanup
  • Wiki explaining features/systems in more depth
  • Add more sizzle....

Sunny Island

Credits

Andre McGrail - Design, Programming, Modeling, Textures, SFX

Alex Best - Modeling, Textures

Stintah - Soundtrack

Special thanks to:

Felipe Lira - For Making Universal RP & LWRP

Tim Cooper - Assorted SRP code help

And thanks to many more who have helped with suggestions and feedback!

Notes

*Make sure you clone the repo as downloading the zip will not contain the GitLFS files(all textures/meshes etc)