Coder Social home page Coder Social logo

stanfortonski / ocean-opengl Goto Github PK

View Code? Open in Web Editor NEW
37.0 3.0 6.0 19.14 MB

Simple ocean/sea/water simulation | C++ OpenGL 4.1

Home Page: https://www.youtube.com/watch?v=H5PJNWV3I7M

License: MIT License

CMake 3.87% GLSL 20.83% C++ 75.30%
graphics graphics-programming graphics-3d graphics-rendering water ocean-opengl opengl tesselation 3d 3d-models

ocean-opengl's Introduction

Ocean-OpenGL

Simple Ocean OpenGL 4.1 C++

Ocean surface

YouTube video: https://www.youtube.com/watch?v=H5PJNWV3I7M

How it works?

This example do not calculate physics but do only simple interpolations between normalmaps, heightmaps. Tessellation allow us to divide plane and apply the heightmaps. Fragment allow us to calculate light so material color. For this project I used 14 normalmaps, 14 heightmaps and one texture with color.

Input/Control:

  R - start rotate camera
  T - stop rotate camera
  ESC - exit

Libraries:

Requirements:

  • Graphics card that support OpenGL in version 4.1

ocean-opengl's People

Contributors

stanfortonski 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  avatar

Watchers

 avatar  avatar  avatar

ocean-opengl's Issues

Alternative to Cmake

CMake is too complex and never works: simple Makefile + pkg-config is better. Anyway direct line to compile with success for me on Linux is:

g++ --std=c++11 -Wall -Wextra src/*.cpp `pkg-config --cflags --libs glm glew --static glfw3` -lGLEW -lglfw

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.