The floating-point tag has no wiki summary.
2
votes
1answer
392 views
Should I use float, double, or decimal for stats, position, etc?
The problem with float and double is that they are not exact. If you are to do something like store replays, the values would have to be exact.
The problems with decimal is that they are ...
5
votes
1answer
460 views
Floating Point Precision (fp:precise vs. fp:fast)
In C or C++, does the compiler option of floating point precision really make a difference in real world (small/indie) games?
From my observations, setting fp:fast is many times faster than ...
1
vote
2answers
239 views
Deterministic Multiplayer RTS game questions?
I am working on a cross-platform multiplayer RTS game where the different clients and a server(flash and C#), all need to stay deterministically synchronised.
To deal with Floatpoint inconsistencies, ...
3
votes
3answers
414 views
How can I view an R32G32B32 texture?
I have a texture with R32G32B32 floats. I create this texture in-program on D3D11, using DXGI_FORMAT_R32G32B32_FLOAT. Now I need to see the texture data for debug purposes, but it will not save to ...
0
votes
0answers
114 views
ray collision with rectangle and floating point accuracy
I'm trying to solve a problem with a ray bouncing on a box.
Actually it is a sphere but for simplicity the box dimensions are expanded by the sphere radius when doing the collision test making the ...
3
votes
2answers
548 views
Python float 32bit to half float 16bit
I'm trying to write a 3D model exporter addon for Blender in Python and need some help.
The spec of the 3D format uses some compression on the vertices, there is a vertex buffer that contains ...
-1
votes
2answers
249 views
Could a large number, such as 255.000255 be converted to it's RGB channels in a Shader language?
If I had a Vertex Shader constant holding one float value, like:
255.000255
Where: The first 3 numbers are actually red (255), next three are green (000), then the last three are blue (255).
... ...
4
votes
4answers
1k views
Conversion of a number from Single precision floating point representation to a Half precision floating point
Hope it is relevant here.
I have a code where I have to work on Half precision floating point representation
numbers. To achieve that I have created my own C++ class fp16 with all ...
30
votes
8answers
2k views
How are deterministic games possible in the face of floating-point non-determinism?
To make a game like an RTS networked, I've seen a number of answers here suggest to make the game completely deterministic; then you only have to transfer the users' actions to each other, and lag ...