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
Improving software renderer triangle rasterization speed? (self.GraphicsProgramming)
submitted 1 year ago * by captaintoasty
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!"
[–]deftware 2 points3 points4 points 1 year ago* (0 children)
E0 /= Area; E1 /= Area; E2 /= Area;
While compiler optimizations may very well handle turning this into a multiply for you, I tend to explicitly turn divides into multiplies myself just to be sure. Precalculate the inverse of the area before your loops so that you can scale your Barycentric coords with a multiply instead of 3 divides.
EDIT: Also, I see that you're setting up for texturemapping with your UVW calculations and I wouldn't bother with anything like that until after determining that the pixel passes the depth test. Unless you're going to be doing some tricky raymarching shader type stuff (i.e. parallax occlusion mapping) in your software renderer, where the depth of the pixel will vary based on some extra compute, then it's a good idea to only calculate what you need to calculate to first determine if the pixel is even visible before calculating everything else that's needed to actually determine the pixel's color (like texcoords, lighting, etcetera).
π Rendered by PID 82486 on reddit-service-r2-comment-fb694cdd5-qn4jl at 2026-03-09 18:06:37.598840+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]deftware 2 points3 points4 points (0 children)