tag:blogger.com,1999:blog-5246987755651065286.post8242250090869354150..comments2024-02-22T16:15:42.388-08:00Comments on cbloom rants: Topics in Quantization for Gamescbloomhttp://www.blogger.com/profile/10714564834899413045noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5246987755651065286.post-78692920680379075012021-03-18T08:35:00.894-07:002021-03-18T08:35:00.894-07:00I've worked on a couple things recently that p...I've worked on a couple things recently that people don't usually think of as "quantization" but really should.<br /><br />When I say "thinking of as quantization" what I'm getting at is, think about the bucket of values that map to one index, think about where the boundaries of that bucket are, and think about how an index dequantizes to some value in that bucket.<br /><br />Recent examples are :<br /><br />RGBE HDR conversion<br /><br />U8 SRGB to float linear light conversion<br /><br />numeric string to double (strtod)<br /><br /><br />One common theme is that people test round tripping and say "it's good" but that only tests that the dequantized value in the center of the bucket maps correctly. (famously MSVC CRT had this problem with doubles - they could round trip fine but their strtod did not have the quantization bucket boundaries in the right place).<br />cbloomhttps://www.blogger.com/profile/10714564834899413045noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-57788521327994120182021-01-05T09:37:52.334-08:002021-01-05T09:37:52.334-08:00Marc? Yeah you can email me questions any time.Marc? Yeah you can email me questions any time.cbloomhttps://www.blogger.com/profile/10714564834899413045noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-82778155296313163162021-01-05T09:22:55.204-08:002021-01-05T09:22:55.204-08:00Oh nice! Im just getting into quantization for ne...Oh nice! Im just getting into quantization for networking purposes so this is a great read. <br /><br />Ill probably have some specific questions later if you wouldnt mind. <br /><br />I miss that magical time.MHhttps://www.blogger.com/profile/15700875611169531647noreply@blogger.com