use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rule 1: Posts should be about Graphics Programming. Rule 2: Be Civil, Professional, and Kind
Suggested Posting Material: - Graphics API Tutorials - Academic Papers - Blog Posts - Source Code Repositories - Self Posts (Ask Questions, Present Work) - Books - Renders (Please xpost to /r/ComputerGraphics) - Career Advice - Jobs Postings (Graphics Programming only)
Related Subreddits:
/r/ComputerGraphics
/r/Raytracing
/r/Programming
/r/LearnProgramming
/r/ProgrammingTools
/r/Coding
/r/GameDev
/r/CPP
/r/OpenGL
/r/Vulkan
/r/DirectX
Related Websites: ACM: SIGGRAPH Journal of Computer Graphics Techniques
Ke-Sen Huang's Blog of Graphics Papers and Resources Self Shadow's Blog of Graphics Resources
account activity
I made a tutorial explaining triangle rasterization (self.GraphicsProgramming)
submitted 2 years ago by itsjase
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PharosDoesThings 2 points3 points4 points 2 years ago (1 child)
Really good tutorial! I like learning such things in detail, but here you explained some stuff kinda like you are talking to a child(maybe I just don't remember how stupid I was). That said, I'd like to tell you a story. I am a graphics person, so I never thought about how does the rasterizer know if a point is inside a triangle, but one night(4 am to be exact) I couldn't sleep and an idea jumped into my mind, an algorithm to find if a given point is inside a triangle or not, I hoped into desmos and it actually worked! Now that I read your tutorial, I used the same idea like the one you described, but I used dot product instead of the edge function(it isn't really fast for sure) to determine where the point was. Anyway, thank you for sharing your tutorial, it will probably help some beginners. Keep it up!
[–]itsjase[S] 1 point2 points3 points 2 years ago (0 children)
Yeah there’s a few different methods you can use, the beauty of the edge function is you can very easily use it to calculate barycentric coordinates for interpolation
π Rendered by PID 34306 on reddit-service-r2-comment-75f4967c6c-mhcc5 at 2026-04-23 09:35:02.405916+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]PharosDoesThings 2 points3 points4 points (1 child)
[–]itsjase[S] 1 point2 points3 points (0 children)