Skip to content

Scrawk/Proland-To-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Proland-To-Unity

This is a partial port of Proland to Unity. Proland is quite a large and complicate program and I have trimmed this down quite a lot to just its core elements. The core terrain, atmosphere and ocean components have been ported.

A key part of Proland is its ability to render large planets using some special techniques to calculate the clip space positions in the vertex shaders to minimize precision issues. This means I have had to do a lot of low level handling of projection and view matrices. This has caused a lot of problems as Unity modifies these matrices behind the scenes to support some platforms and features.

Its made keeping this up to date with the latest version of Unity quite difficult and at the moment it will only work in version 5.5 of Unity. Its also not a good way to use Unity but it made porting this much easier. I might change this in the future to use Unity's default matrices. To add to the confusion Z is up in Proland while Y is up in Unity. Leaving Z as up made porting it much easier but again, its not the best way to use Unity.

The atmosphere is done using the same method in the previous Brunetons atmospheric scattering project (one of the Authors of Proland). This means the atmosphere uses precomputed tables that need to be generated. There are some provided but if you want to recreate them I have added a editor window. Go to Windows->Proland->Create Atmosphere Tables to do so.

This project is currently only working in Unity 5.5

Proland5

Proland4

Proland3

Proland2

Proland1

List of atmoshere projects

Brunetons-Improved-Atmospheric-Scattering
Brunetons-Atmospheric-Scatter
GPU-GEMS-Atmospheric-Scatter
Proland-To-Unity