GithubHelp home page GithubHelp logo

wangkepfe / opengl-terrain-realtimerendering Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 2.0 249.27 MB

OpenGL rendering engine for terrain simulation

C++ 84.27% CMake 0.11% C 11.37% Objective-C 1.60% Makefile 0.06% GLSL 2.59%
opengl terrain-rendering real-time-rendering

opengl-terrain-realtimerendering's Introduction

OpenGL-Terrain-RealTimeRendering

OpenGL rendering engine for terrain simulation

Video Demo & Screen Shot

IMAGE ALT TEXT HERE

alt text alt text

External Dependencies

  1. GLEW
  2. SDL

Scene Components

1. sky dome

2. clouds

  • shape/color changing with day time
  • tried terrain-like clouds
  • noise-generated texture clouds in use

3. terrain land

  • procedural generated
  • with geomipmap (terrain is subdivided into chunks, not the best implementation. To be improved)
  • multi textures, diffrent by height and noise map

4. lake

  • two frame buffer objects, one for refraction, one for reflection
  • used both depth test and stencil test
  • used texture noise
  • bug: weird edge looking

5. plants

  • a huge number of plants by instanced rendering
  • particle system(to do)

Render Techniques

1. Depth/Stencil Testing

2. Alpha Blending

3. Frame Buffers

4. Instancing

5. Anti Aliasing

  • MSAA, multi-sampled anti-aliasing

6. Normal mapping

7. Gamma Correction

8. HDR(high dynamic range) (to do)

9. Shadow mapping (in progress, debugging)

8. Bloom effect (to do)

11. SSAO(screen-space ambient occlusion) (to do)

12. PBR(physical based rendering) (to do)

opengl-terrain-realtimerendering's People

Contributors

wangkepfe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mortal2000

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.