Code Monkey home page Code Monkey logo

computergraphicsstudy's Introduction

ComputerGraphicsStudy

About Computer Graphics lecture&Graphics study

If you want to see our Term Project website, please enter TermProject file -> Map -> MainPage.html

Demo GIF

graphicsTermProject


Mini Metro TermProject

Gachon University 2023 Computer Graphics Term Project: Clone Mini Metro Game for WebGL with 2D&3D.

Summary

We have added camera movements, mesh movements, light source processing, etc. to implement mini-metro games in 3D for graphics lecture purposes rather than game strategies.

[Mini Metro Game] is metro strategy simulation game with 2D.

image

Reference: https://ko.wikipedia.org/wiki/%EB%AF%B8%EB%8B%88_%EB%A9%94%ED%8A%B8%EB%A1%9C

Developmet Environment

We development with vanilla javascript with Three.js library.

About InGame Feature

  1. First user enter our webPage, user can choose own's character.
  2. If user choose it and click start button, user can move their character using key input(w, a, s, d, shift).
  3. The sun and skybox move with time, the metro move their default route map and NPC are randomly generated and moved to subway stations.
  4. The sun is set, street lights are light up.
  5. Also user can create a new metro route map by connecting subway stations.

image

About Game Logic

  1. Character animate

We implemented character animation through animation systam(clip, mixer,action etc) provided by three.js.

Reference: https://threejs.org/docs/#api/en/animation/AnimationMixer

  1. NPCs move from start point to arrival point

NPCs are created in start building in randomly building list, and move nearest station.

And we implemented NPC's route map using Dijkstra's algorithm.

  1. The sun and skybox move with time We used the sin and cos functions to circle the light to implement day and night.

And not only light, but also skybox changes to express it realistically. This part utilized the open source shown in the webGL sample.

Reference: https://threejs.org/examples/webgl_shaders_sky.html

computergraphicsstudy's People

Contributors

pyeonseohee 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.