Sign in to follow this  
Keraj

FAQ is broken

Recommended Posts

[quote name='Keeray' timestamp='1302946224' post='4799078']
Networking and Multiplayer FAQ is cut off from about 23rd question...
Not much more to say... see by yourself
[/quote]

Yup, I see it. Thanks for the note! Trained operators are looking for the backup tape as we speak.
Well, at least I hope that's what's going on -- I have no insight into the actual operations of the site ;-)

Share this post


Link to post
Share on other sites
To pack a floating point number of a known range into a fixed number of bits, do something like:
[code]unsigned int pack_float( float v, float minVal, float maxVal, int bits ) { assert( bits < 32 ); assert( v >= minVal && v < maxVal );[/code]

To unpack the value again, do something like:
[code]
float unpack_float( unsigned int val, float minVal, float maxVal, int bits ) { assert( bits < 32 ); assert( val < (1U<<bits) ); return val * (maxVal-minVal) / (1U<<bits) + minVal;}[/code]

[url="http://www.gamedev.net/topic/386362-is-this-too-inefficient-for-average-connections/page__p__3554643#entry3554643"]http://www.gamedev.n...43#entry3554643[/url]

[url="http://archive.gamedev.net/community/forums/showfaq.asp?forum_id=15"]http://archive.gamed...asp?forum_id=15[/url]

Maybe someone could add the 2nd link to the post?

Share this post


Link to post
Share on other sites
[quote name='hunter2' timestamp='1303325213' post='4800877']
To pack a floating point number of a known range into a fixed number of bits, do something like:
(...)
To unpack the value again, do something like:
(...)[/quote]I was not looking for that
I just said that all is cut off starting at 23rd question

[quote name='hunter2' timestamp='1303325213' post='4800877']
[url="http://archive.gamedev.net/community/forums/showfaq.asp?forum_id=15"]http://archive.gamed...asp?forum_id=15[/url]
Maybe someone could add the 2nd link to the post?
[/quote]To which post? mine?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this