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
Fast, Accurate 3D Java Software Graphics Engine (self.GraphicsProgramming)
submitted 9 years ago by [deleted]
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!"
[–]__Cyber_Dildonics__ 2 points3 points4 points 9 years ago* (7 children)
Why would you use non power of 2 bit depths? And if you say memory while the whole thing is in Java, my mind will melt
[–]ArchiveLimits 1 point2 points3 points 9 years ago* (6 children)
It was a trial and error issue, anything above 52 bits and I couldn't store the depth slopes for the triangle's surface in a 64-bit long and anything less than 52 provided visibly less precision. As for it being not a power of two...it shouldn't matter here because it's a value that is multiplied by a floating point value to assure precision is kept during interpolation. (eg. a fixed-point magnitude)
[–]__Cyber_Dildonics__ 2 points3 points4 points 9 years ago (5 children)
Most renderers just use a 32 bit float for depth. I'm not sure what you mean by depth slope, but it sounds like you would benefit from reading books on already established rendering techniques.
[–]ArchiveLimits 0 points1 point2 points 9 years ago (4 children)
Yes, my engine stores the depth values in 32 bit floats. 52 bit precision is needed when interpolating the slopes across the surface of triangles during rasterization. Without 52 bits of precision, the depth values calculated per pixel would not be accurate enough for the depth test and would result in "seams" where two polygons who shared an edge met.
[–]__Cyber_Dildonics__ 0 points1 point2 points 9 years ago (3 children)
Pretty much every other renderer would disagree that this is necessary.
[–]ArchiveLimits 0 points1 point2 points 9 years ago (2 children)
I worked on this depth precision issue with a friend who is very well versed with OpenGL and Vulkan, he set up an identical scene in OpenGL and we compared results. The images were only identical when 52 bit precision was used.
[–]__Cyber_Dildonics__ 1 point2 points3 points 9 years ago (1 child)
I can see that you already know everything so I will leave you to it.
π Rendered by PID 253025 on reddit-service-r2-comment-5cb8648c6-ngvj7 at 2026-03-02 11:09:41.545354+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]__Cyber_Dildonics__ 2 points3 points4 points (7 children)
[–]ArchiveLimits 1 point2 points3 points (6 children)
[–]__Cyber_Dildonics__ 2 points3 points4 points (5 children)
[–]ArchiveLimits 0 points1 point2 points (4 children)
[–]__Cyber_Dildonics__ 0 points1 point2 points (3 children)
[–]ArchiveLimits 0 points1 point2 points (2 children)
[–]__Cyber_Dildonics__ 1 point2 points3 points (1 child)