Giter Club home page Giter Club logo

glwater's Introduction

Render Side render

Project

An OpenGL renderer for rippling water.

This project builds off of the LearnOpenGL series and ThinMatrix's tutorial on rendering water in OpenGL. It serves as my introduction to OpenGL.

Features include:

  • 3D Model, texture, and normal-map loading with assimp
  • Interactive view of scene that can be controlled with WASD keys and cursor
  • API for placing, scaling, and rotating objects
  • Point lights and directional lights
  • Skyboxes
  • Watery surfaces with reflection, refraction, ripples via dudv maps, the Fresnel effect, and transparency in shallow regions of water.

I developed this project on an x86 Mac, so the build system will probably favor people who are using those machines.

Build

Clone repository: git clone --recurse-submodule https://github.com/rshiv2/glWater

This project uses assimp to load 3D models.

To compile assimp: cd external/assimp cmake CMakeLists.txt && make -j{<number of cores}

On linux, you can get the number of cores with nproc, on Mac, you can get it with sysctl -n hw.ncpu.

Todos

  • Object picking and placing. It's currently really tedious to design scenes. My process was to nudge an object, compile, see the results, then repeat.
  • Fix weird artifacts that occur at interface of water and terrain.
  • Introduce bloom and deferred shading. I want to add lots more light sources, and make them look a bit more realistic.
  • Speed up model loading. I need to profile this part of the code in order to be sure, but my guess is that assimp is taking a long time to load in 3D models.

glwater's People

Contributors

rshiv2 avatar

Watchers

 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.