A 2D graphics project created with OpenGL, featuring an interactive island scene with dynamic lighting, animated sharks, and various visual effects. This project was developed as part of a Computer Graphics course.
- Island - Textured terrain with sand textures
- Water - Animated water surface with adjustable transparency
- Sun & Moon - Dynamic day/night cycle with realistic movement
- Stars - 200 randomly positioned stars in the night sky
- Clouds - Multiple animated clouds with varying speeds and directions
- Sharks - Animated sharks swimming in the water with realistic movement
- Fire & Smoke - Interactive fire effects with smoke animation
- Sky - Background with textured environment
- Dynamic Day/Night Cycle - Time progression with sun and moon movement
- Water Ripple Effect - Click on water to create expanding ripple circles
- Shark Movement - Sharks swim to the clicked location on water
- Fire Interaction - Click on fire to trigger smoke effects
- Adjustable Time Speed - Control the speed of the day/night cycle using + and - keys
- Water Transparency - Toggle water transparency for better visibility with B key
- OpenGL 3.3 - Core profile rendering
- C++ - Programming language
- GLFW 3.3.8 - Window and input handling
- GLEW 2.2.0 - OpenGL extension loading
- GLM 0.9.9.800 - Mathematics library for graphics
- stb_image - Image loading for textures
- Visual Studio 2019/2022 - Development environment
- Windows 10 or later
- Visual Studio 2019 or later with C++ support
- Graphics card with OpenGL 3.3 support
-
Open the Solution
- Open
Sablon/Sablon.slnin Visual Studio
- Open
-
Restore NuGet Packages
- Right-click on the solution in Solution Explorer
- Select "Restore NuGet Packages"
- Wait for packages to download (GLFW, GLEW, GLM)
-
Build the Project
- Select configuration:
DebugorRelease - Select platform:
x64 - Build → Build Solution (or press
Ctrl+Shift+B)
- Select configuration:
-
Run the Application
- Press
F5to run in debug mode - Or navigate to
Sablon/x64/Debug/and runSablon.exe
- Press
Ensure that all resource files in the res/ folder are present and that the executable runs from the Sablon/ directory (where shader files are located).
- B - Toggle water transparency
- + - Increase time speed
- - - Decrease time speed
- Left Click on Fire - Trigger smoke effects
- Left Click on Water - Create expanding ripple effect at click location and all sharks will swim to the clicked location
- ESC - Exit application
Want to see this project in 3D? Check out the 3D version with enhanced features including first-person camera controls, 3D models, palm trees, airplane, and more dynamic effects:
👉 View 3D Graphics Project - Island Scene
Duško Pilipović
Project created for Computer Graphics course, 7th Semester.
This project is created for educational purposes.