Wallpaper Engine

Wallpaper Engine

Not enough ratings
My Simple RayTracer Test
   
Award
Favorite
Favorited
Unfavorite
Age Rating: Everyone
Genre: CGI
Resolution: Dynamic resolution
Category: Wallpaper
File Size
Posted
31.681 MB
26 Aug, 2022 @ 6:08pm
1 Change Note ( view )

Subscribe to download
My Simple RayTracer Test

Description
**FULL DISCLOSURE**
This wallpaper was uploaded as a means for aquiring the 'Press any key' achievement (Post an app wallpaper to the Workshop).

I recently went through the 'Ray Tracing in One Weekend' online documentation, by Peter Shirley. For those who wish to follow along themselves to learn about simple Ray Tracing, they can find his same lesson here[raytracing.github.io].
(NOTE: I have no affiliation with Peter Shirley or anybody involved with the course. I simply found the lesson, followed along, and wanted to share my results).

Then as a further exercise decided to try and convert the result into a standalone EXE for WallpaperEngine.

Currently the EXE works in 3 stages:
  1. Uses very basic ray tracing to calculate color values for each pixel in the image.
    Originally posted by RoboticZombie1:
    Unfortunately, ray tracing an image takes time; and as an effort to make waiting times bearable (roughly 01 minute) I limited the parameters pretty drastically ('resolution==400x225' and 'samples_per_pixel==8'). However, I have also included the source code if you wish to increase the parameters for a more smooth image.

  2. Converts the resulting data into a more universal image format, such as JPEG. The 'stb_image' c++ library was used to help with this conversion, and can be found here[github.com].

  3. Displays the resulting image to screen using the 'CImg' c++ library, found here[cimg.eu].