FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
2D Raytracing
How-ToTools

2D Raytracing

via Dev.toNo_Arms_studio1mo ago

< First thing I would like to say is that thank you all, I have hade a massive influx of followers and I thank you all for it. But anyway time to get to my approach of raytracing in scratch. First I would like to talk about what is a raytracer. A raytracer is a computer code that send out rays into an environment and let them bounce to see how light would act in that environment. This fundamental code makes all sorts of things such as cg in big budget Hollywood movies to just little side projects for indie devs. The way that I made my version of a raytracing engine is first to find the math for the rays. There are 2 inputs, the amount of rays and the FOV. The raycaster sprite turns half of the FOV and repeats the amount of rays turning the opposite direction the FOV divided by amount of rays. each of those iterations make a new ray. My engine is a 2d raytracer meaning that it has a 2d texture that it bounces it's light in. The way that each ray works is that when it is initialized it m

Continue reading on Dev.to

Opens in a new tab

Read Full Article
24 views

Related Articles

I didn't have to drill these renter-friendly smart lights into my wall - and I love them for it
How-To

I didn't have to drill these renter-friendly smart lights into my wall - and I love them for it

ZDNet • 4d ago

How to Create and Use Checkboxes in Figma
How-To

How to Create and Use Checkboxes in Figma

FreeCodeCamp • 4d ago

The DSA Illusion: Why Most Data Structures Don’t Actually Exist
How-To

The DSA Illusion: Why Most Data Structures Don’t Actually Exist

Medium Programming • 4d ago

This modular crafting machine can create custom shirts, phone cases, and molds
How-To

This modular crafting machine can create custom shirts, phone cases, and molds

The Verge • 4d ago

I built an expense tracker because every other one wanted my bank login
How-To

I built an expense tracker because every other one wanted my bank login

Dev.to • 4d ago

Discover More Articles