omarkawach / COVID-game-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COVID Game

Some CSV files are too large to upload on github, if you need to run this project please email Dr. Vinu Subashini Rajus at vinu.rajus@carleton.ca

Description

An interactive learning environment based on real-world models for indoor COVID spread

Videos

Background and Gameplay Demo

Game Mode Selection

Getting Started

Clone the repository
Get dependencies

npm install

npm i -S fast-csv

npm install csv-split-stream

Make a Forge Account

Autodesk Forge

Use Forge Credentials to Run the Application

See launch.json in the .vscode folder. Enter your client ID and secret there.

Convert Simulation Results to CSV

Place your state.txt file into the scripts folder, then cd into the scripts folder and run the following command in terminal:

cat state.txt | python state-txt-to-csv.py

This will output state_change.csv

Create Folder(s) for Simulation Data
  1. Create an data folder inside the public folder
  2. Create an output folder inside data folder
    • This is where the split CSVs will be stored.
  3. Rename your state_change.csv based on whether the data is MaskOn or MaskOff.
    • For example, state_change_On.csv if you have data for MaskOn.
  4. Place renamed csv in the output folder

Plans for the Future

Virtual Reality!

Important Links

COVID-BIM V2

Cadmium simulator

CO2 model

Indoor Virus Spread model

BIM-to-DEVS

Resources

Graphics reference for shaders - Explains types of qualifiers (uniform, varying, etc.)

gl_FragCoord - Might help with camera view of sprites / icons

Data Types (OpenGL) - Scalars and vectors

3D Markup with icons and info-Card - Discusses spritesheets and clickable geometries

Using PointCloud in Forge Viewer - Uses three.js (r71)

Fast-CSV - CSV Parser and Formatter

csv-split-stream - Split a CSV read stream into multiple write streams

File stream - Node.js stream readable

About


Languages

Language:JavaScript 83.7%Language:HTML 8.1%Language:CSS 5.9%Language:Python 2.3%