Skip to content

Simulating realistic 2D light behavior using C++ and SFML, where a point light source—controlled by the mouse—illuminates the environment. Obstacles cast dynamic shadows, and multiple sprites react to light exposure for enhanced visual realism.

Notifications You must be signed in to change notification settings

Bishesh-Khanal/ImageTracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageTracing

Experience realistic light behavior in a 2D environment where a point source of light—controlled by the mouse cursor—illuminates the surroundings. Obstacles in the environment cast shadows, dynamically blocking light and creating an interplay of illuminated and dark areas. Additionally, a sprite is placed on the window, with portions of it changing based on visibility from the light source, enhancing the visual realism. Built using C++ and SFML, this program offers an immersive demonstration of how light interacts with opaque objects and dynamically affects its surroundings in a 2D world.

About

Simulating realistic 2D light behavior using C++ and SFML, where a point light source—controlled by the mouse—illuminates the environment. Obstacles cast dynamic shadows, and multiple sprites react to light exposure for enhanced visual realism.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published