Skip to content

Rejszon/Rollercoaster-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎢 Rollercoaster Simulator – OpenGL C++

A 3D rollercoaster simulator built in C++ using OpenGL 4.6, GLFW, GLEW, and GLM.
The wagon follows a predefined track with smooth interpolation, textured train, track, frame, and plane models, and basic lighting via shaders.


Features

  • Wagon moves automatically along a 3D track
  • Two camera modes: follow wagon or free observer
  • Textured objects: train, track, frame, plane
  • Lighting with two point light sources
  • Shader-based rendering (vertex + fragment)
  • Wagon speed interpolation for smooth movement

Controls

Key Action
C Toggle observer/follow camera mode
UP Arrow Move camera closer (observer mode)
DOWN Arrow Move camera farther (observer mode)

Technologies

  • C++ 17/20
  • OpenGL 4.6
  • GLFW, GLEW, GLM
  • LodePNG for PNG textures
  • Custom shader system (ShaderProgram)

Setup & Build

  1. Clone the repo:
git clone https://github.com/yourusername/rollercoaster-simulator.git

Open in Visual Studio (solution file included: Rollercoaster Simulator.sln)

Make sure to set x64 or Win32 depending on your system

Add include paths for GLFW, GLEW, and GLM

Link libraries: glew32.lib, glfw3.lib, glfw3dll.lib

Build and run the solution

Place textures (czerwony_metal.png, metal.png, plane.png, zolty_metal.png) in the executable working directory

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages