Skip to content

Commit 0aaf329

Browse files
committed
factor out ray intersection engine
1 parent 876d9c8 commit 0aaf329

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+563
-380960
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ jobs:
2626
arch: x64
2727
- uses: julia-actions/cache@v2
2828
- name: Install pkgs dependencies
29-
run: julia --project=@. -e 'using Pkg; Pkg.test("Trace", coverage=true)'
30-
- uses: julia-actions/julia-runtest@v1
29+
run: julia --project=@. -e 'using Pkg; Pkg.test("RayCaster", coverage=true)'
30+
- uses: julia-actions/julia-runtest@v1

Project.toml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
1-
name = "Trace"
2-
uuid = "afc56b53-c9a9-482a-a956-d1d800e05558"
3-
authors = ["Anton Smirnov <[email protected]>"]
1+
name = "RayCaster"
2+
uuid = "afc56b53-c9a9-482a-a956-d1d800e05559"
3+
authors = ["Anton Smirnov <[email protected]>", "Simon Danisch <[email protected]"]
44
version = "0.1.0"
55

66
[deps]
77
Atomix = "a9b6321e-bd34-4604-b9c9-b65b8de01458"
8-
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
98
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"
10-
ImageCore = "a09fc81d-aa75-5fe9-8630-4744c3626534"
11-
ImageIO = "82e4d734-157c-48bb-816b-45c225c6df19"
129
KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
1310
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
14-
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
1511
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1612
RandomNumbers = "e6cf234a-135c-5ec9-84dd-332b85af5143"
1713
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
14+
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1815
StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a"
1916

2017
[compat]
21-
#Atomix = "0.1.0"
22-
FileIO = "1.16"
23-
GeometryBasics = "0.4, 0.5"
24-
ImageCore = "0.10"
25-
ImageIO = "0.6"
26-
#KernelAbstractions = "0.9.24"
27-
ProgressMeter = "1.10"
18+
GeometryBasics = "0.5"
2819
RandomNumbers = "1.6.0"
2920
StaticArrays = "1.9.7"
21+
Statistics = "1.11.1"
3022
StructArrays = "0.6.18"

README.md

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,3 @@
1-
# Trace.jl
2-
[![][docs-dev-img]][docs-dev-url]
1+
# RayCaster.jl
32

4-
Physically-based ray tracing on CPU
5-
6-
[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg
7-
[docs-dev-url]: https://pxl-th.github.io/Trace.jl/dev/
8-
9-
<img src="./docs/src/assets/shadows-sppm-1024x1024_mio.png">
10-
11-
Output from `/scenes/shadows.jl`.
12-
13-
## Install
14-
15-
```
16-
] add https://github.com/pxl-th/Trace.jl.git
17-
```
18-
19-
## Examples
20-
21-
All of the examples are available in `scenes/` directory.
22-
23-
Example of running caustic glass scene (note that it supports multithreading).
24-
25-
```bash
26-
julia -t 4 --project=. scenes/caustic_glass.jl
27-
```
28-
29-
### Caustic simulation
30-
31-
Caustic effect using Stochastic Progressive Photon Mapping on a glass block.
32-
33-
|Image|Video|
34-
|:-:|:-:|
35-
|<img src="https://github.com/user-attachments/assets/f7d8cd98-1dfa-4bb2-9bb4-3a48e3556f1a" width=400>|<img src="https://i.ytimg.com/vi_webp/87NlMA3Vwvs/maxresdefault.webp" width="720">|
36-
|100 iterations, ray depth 8|25 iterations per frame, ray depth 5. [YouTube](https://www.youtube.com/watch?v=87NlMA3Vwvs)|
3+
Performant ray intersection engine for CPU and GPU.

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
1010
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
1111
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
1212
Metal = "dde4c033-4e86-420c-a63e-0dd931031962"
13-
Trace = "afc56b53-c9a9-482a-a956-d1d800e05558"
13+
RayCaster = "afc56b53-c9a9-482a-a956-d1d800e05558"
1414

1515
[compat]
1616
Documenter = "1.5"

docs/code/basic-scene.jl

Lines changed: 0 additions & 104 deletions
This file was deleted.

docs/code/caustic_glass.jl

Lines changed: 0 additions & 38 deletions
This file was deleted.

docs/code/caustic_moving.jl

Lines changed: 0 additions & 105 deletions
This file was deleted.

docs/code/dragon.jl

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)