Skip to content

INIT-REF/aarch64-arm-assembly-raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aarch64/arm assembly raytracer

A raytracer in aarch64 assembly, following the tutorials by Peter Shirley, Trevor David Black and Steve Hollasch.

At the moment the first book of the series is done, and the result looks like this (using an output size of 800x450, 400 samples per pixel and a maximum depth of 50):

render

To adjust the image dimensions and rendering setting, you can edit the relevant parts in the .rodata section of main.s. The scene itself is setup in world.inc.

I am just starting out with ARM assembly, so I can't give any guarantees that the code will work as is on your device. But it compiles and runs fine on my Pi 5 (using Pi OS Trixie) by running the following lines:

make
./aarch64ray

If you have ImageMagick installed, you can easily convert the resulting PPM image to PNG by running

magick image.ppm image.png

About

A raytracer written in aarch64 assembly, following "Raytracing in One Weekend"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors