Click here to Skip to main content
15,905,682 members
Articles / Programming Languages / C#

16bit Normal Vectors Compression using Spherical Coordinate

Rate me:
Please Sign up or sign in to vote.
5.00/5 (13 votes)
7 Sep 2023CPOL3 min read 15.4K   230   20  
A simple method for encoding and decoding 3D unit vectors to a 16bit value using C#
Normals are unit vectors that are used widely for realtime 3D rendering but consist of 3 float (96bit) and often, there is no need to use high precision.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions