Giter VIP home page Giter VIP logo

brunetons-ocean's Introduction

Brunetons-Ocean

This is a ocean Ive ported to Unity and is based Eric Brunetons ocean renderer.

The focus of the project is the BRDF lighting model which looks very nice and is coupled with his previous work on atmospheric scattering.

You can find some settings on the ocean game object in the scene. You can change the wind speed, wave decay factor, wave amplitude, and the Fourier transform size. These settings are only used on start up however and will have no effect during run time. If you want to change them during run time you will need to regenerate the wave spectrum. Its only done on start up in this project. If your looking for what setting will make the waves bigger its the wind speed.

See home page for more information and unity package download.

Brunetons Ocean

In Erics project he did use a projected grid for the ocean mesh but the implementation was not really robust enough to be practical. I have used a different implementation based on this paper. I have left it as simple as possible so it will work but you may see the grid pull away from the screen if the waves are to large.

Below is a image of the projected grid. You can see the mesh is projected from the camera and its shape matches the camera frustum.

Projected Grid

brunetons-ocean's People

Contributors

scrawk avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.