Fast and Accurate Color Depth Conversion
Hantverk'n » Devlog
My voxel engine uses colors which are converted from 24-bit to 16-bit color (5-bit red, 6-bit green, 5-bit blue) to allow space for additional properties (alpha, emissive, specular, and voxel level ambient occlusion face adjaceny bits) in each 32-bit voxel. Initially I was using naive RGB channels bit shifting code for 24-bit to 16-bit color conversion. These color conversion equations are much better than what I was using:
Hantverk'n
Status | In development |
Author | Teknologicus |
Genre | Adventure |
Tags | Exploration, Open World, Voxel |
More posts
- Update: Hilbert Curve surface grooved stone block2 days ago
- Hilbert Curve surface grooved stone block2 days ago
- Overhaul of buffer use in voxel engine14 days ago
- Tetahexacontree 4x4x4 Occupancy Bitmasks Lookup Table27 days ago
- Voxel-level ambient occlusion optimization bits generation via compute shader67 days ago
- Image rotation via shearing72 days ago
- Rotation without rotating73 days ago
- Voxel volume mipmaps generation via compute shader74 days ago
- Dynamic global illumination methods86 days ago
Leave a comment
Log in with itch.io to leave a comment.