Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

ToyRTX

> DevOps
Open source

CPU & GPU RTX based on OpenGL

397 stars0 likes1 views
WebsiteGitHub

About

CPU & GPU RTX based on OpenGL

1. 简介

这是我对 光线追踪 的练习,内容基于

  • Ray Tracing in One Weekend
  • Ray Tracing the Next Week
  • Ray Tracing the Rest of Your Life (暂时不写)

作者的源码网址

https://github.com/petershirley/raytracinginoneweekend

https://github.com/petershirley/raytracingthenextweek

https://github.com/petershirley/raytracingtherestofyourlife

对内容进行了大量的修改,优化,新增

详细内容参考 notes 和 源码

图形接口使用的是 OpenGL

近日正在着手 GPU的实现方案

2. 代码框架

…

2. 使用方法

2.1 环境

  • Visual Studio 2017+
  • Windows10
  • Git
  • CMake(版本2.8以上)

2.2 下载代码

bash
git clone https://github.com/Ubpa/RayTracingToy

2.3 编译

  1. 建立工程
bash
# 在 cmd 中运行如下命令
mkdir build
cd build
cmake .. -A Win32
  1. 打开 /build/RayTracingToy.sln
  2. 在解决方案中的CMakePredefinedTargets中,右键INSTALL,点击生成

2.4 配置

在运行exe前,可以对 config.out 进行修改来配置,在调试时在 config.in 进行修改来配置

3. 出图

01_06_Scene

02_the_Next_Week_07_Volume

02_the_Next_Week_08_All

Glass Cube

04_03_GPU_Skybox_Model

04_04_GPU_Loop

Issues· 1 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++cppopenglraytracing

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理