[Media] Day 4 of learning rust - made a ray tracer and rendered solar system with it

202 points white-9igga 74 comments
[Media] Day 4 of learning rust - made a ray tracer and rendered solar system with it

my artwork with rust, how does this look guys

next up, ill be learning different textures, and reflection, refraction etc.

turns out ray tracing isnt tough, just a bunch of vector calculations. had fun.

im mainly a webdev and python dev, thought to explore low level programming.

Day1- learnt basic syntax, ownership, pointers, data structures, etc

Day2- made basic programs like calculator, base64 encoder, fletcher32 checksum, etc.

Day3- made huffman compression algorithm in rust.

Day4- MADE THIS, a ray tracer

also, i did not use any external crate for this, all logic is made by me.

EDIT: https://gist.github.com/DikshitRJ/a96845396397c2c4d2fb76561a7b8d5c heres the source code. to all the folks saying it is vibecoded, oh no it isnt. i spent 8 hours making this. fixing rust errors, figuring out why a sphere is out of the viewport, etc. why in the world would i vibecode a raytracer, a beginner project?

why do folks think everything on the internet is vibecoded? to those saying that learning rust syntax in 1 day is not possible, well im not a beginner dev, ive been coding since quite a while and have shipped and scaled full stack web projects. learning a new language isnt much of a challenge if you spend time and you already know how to code.

im quite disappointed. i just wanted to share some cool stuff i made while learning, and ended up getting bashed for no reason.