Coder Social home page Coder Social logo

godot-ocean-demo's Introduction

Godot-Ocean-Demo

Warning! This project is no longer maintained.

An ocean demo in Godot 3.0. I am very proud of this demo and I want to thank you for trying it out.

How to customize the ocean

The ocean demo uses what's known as Gerstner waves. A constant collection of them is used to create that wavy feel of the waters. It also uses a lil bit of noise to really sell the effect. Both of these features are customizable with almost self-explanatory parameters.

Main wave parameters

-Amplitude defines how high your waves will be.

-Wavelength defines how long your waves will be.

-Steepness defines how 'choppy' your waves will be. Don't set this too high or else your waves will start self-intersecting.

-Wind Direction controls the direction the overall waves would go.

-Wind Align also determines each wave's individual direction. A value of one means they all go in the exact same direction. A value of zero means waves go in completely random directions.

-Speed controls how fast the waves propagates.

-Seed determines the final parameters of each wave. Find the seed that you like the best.

Noise parameters

-Noise Enabled. Yeah. Whether to use noise at all.

-Noise Amp controls how high the noise looks.

-Noise Freq controls the smoothness/granularity of the noise. Higher values make it smoother and less granular.

-Noise Speed controls how fast the waves propagate.

First Person Control

When running the project(sorry if it's slow to load. I'm looking into that.) You can fly around. Look at your ocean from every angle. And you can do so like this.

-Use your mouse to look around.

-W key go forward.

-S key go backward.

-A key go left.

-D key go right.

-Q key toggle between fly and edit mode. You cant play with the ocean parameters and fly at the same time.

Credits

The flying code is from Jeremy Bullock's youtube tutorial series on first person control.

godot-ocean-demo's People

Contributors

sisilicon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

godot-ocean-demo's Issues

Geometry turns black at certain angles

screenshot_20180604_185219
This is showing an issue I'm having with this shader. Any part of the mesh that is at or below a certain angle turns black. The camera angles affects this. Looking straight down at the water, this issue is not apparent.

My system specifications are:
O.S.: Ubuntu 16.04, with Kernel 4.13.
CPU: AMD Ryzen 7 1700
GPU: Radeon RX 570, with the driver included in the Kernel.
Memory: 16GB

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.