8000 GitHub - YJJfish/Interstellar: Course Project of Computer Graphics (浙江大学计算机图形学课程作业)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

YJJfish/Interstellar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interstellar

Course Project of Computer Graphics (浙江大学计算机图形学课程大作业)

Introduction

This is a 3D game based on OpenGL, where the user can control a space ship to travel in the universe to view the scenery of stars, planets and other celestial bodies, and interact with the space stations.

Models and textures are from Stellaris. Download

Control the space ship:

  • W: accelerate
  • S: decelerate
  • A: turn left
  • D: turn right
  • Space: file missiles

Methods

  • Normal Mapping

    image-20221202231954215

    Results:


    Barren planet with (left) and without (right) normal mapping


    Arid planet with (left) and without (right) normal mapping

    6599
    Oceanic planet with (left) and without (right) normal mapping


    Sentry Array with (left) and without (right) normal mapping

  • Specular Mapping

    Different locations in the texture have different reflective properties and lighting conditions.

    image-20221202232146012

    Results:

    image-20221202234118502image-20221202234150218
  • Particles

    We use particles to render stars more vividly:

  • Light Attenuation

    Objects farther from stars will appear darker.

  • Terrain Generation Algorithm based on Perlin Noise

    We use tiles to model the geometry of the terrain.

    image-20221202235109746

    Then we developed an algorithm based on Perlin noise to generate random terrain.

    Results:

    image-20221202235529301
  • Collision Detection

    We use AABB method for collision detection.

    image-20221202235705109

Screenshot

Screenshot1

image-20221203000113101

image-20221203000318462

About

Course Project of Computer Graphics (浙江大学计算机图形学课程作业)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0