Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.3 KB

File metadata and controls

37 lines (31 loc) · 1.3 KB

CIS 566 Project 1: Noisy Planets

Info

Result

Terrain Generation

  • Main func: float terrain_generate(vec3 p) in vertex shader, calculate continent noise, ridged fractal noise, and mask for mountain.
  • 3D Simplex noise based FBM generated terrain with ocean & land. Noise parameters are all adjustable in dat.gui
  • Mountain generated using ridged noise(with gain), parameters in Noise Control - Ridge.
  • 3D Simplex noise based Mountain Mask to maintain ocean while having mountains.
  • SmoothStep blending ocean & land

Surface Reflection & Shading

  • Ray-trace based ocean color
  • Blinn-Phong + lambert shading
  • Load Textrue on terrain (press Set Text then Load Scene)
  • Cos-wave palette specular color
  • Bias-based color blending different types of terrain(ocean,shores,land,mountain)

Controls

  • All noise parameters are controllable
  • Ocean parameters
  • Sun position
  • Load texture(press Set Text then Load Scene)

Screenshots

Citation