Skip to content

arianasadeghi/3D-Train-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Train Simulator & Rail System

A 3D graphics simulation developed in C++ using OpenGL. This project focuses on the graphics pipeline, procedural geometry generation, and camera movement along complex paths.

Key Features

  • Custom Shaders (GLSL): Implemented Vertex and Fragment shaders to handle 3D transformations and color processing.
  • Procedural 3D Modeling: Dynamically generated 3D primitives (locomotives, wagons, and environment) using vertex manipulation.
  • Rail System Logic: Created a modular track system including Normal, Bridge, and Tunnel segments with collision/boundary logic.
  • Path Following Algorithms: Advanced mathematical modeling for smooth movement and rotation of the train car system along 3D coordinates.

Technologies

  • Language: C++
  • Graphics API: OpenGL
  • Shading Language: GLSL

How to Run

This repository contains the source logic (header and implementation files) for the project.

To run this locally:

  1. You need a C++ development environment with OpenGL, GLFW, and GLAD installed.
  2. These files are designed to be integrated into a standard OpenGL Framework (similar to the UPB Graphics Framework).
  3. Integration: Copy the .cpp and .h files into your project's source directory and ensure the shaders (.glsl) are correctly linked in the resource path.

About

3D simulation of a train system using C++, OpenGL, and custom GLSL shaders.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors