Please help support this free site and future BRL projects!

Login or Signup

value of float fields in b3d format = 1065353216

Miscellaneous Forums/Content Creation Tools/value of float fields in b3d format = 1065353216

Chaduke(Posted 1+ years ago) #1
I'm studying a b3d file in a hex editor and following along with the b3d specification.

I'm noticing that in places where the field is a float value, like texture scale for instance, instead of seeing 1 or 0 there I see 00 00 80 3F or 1065353216 in decimal.

Can someone explain this? Thanks.

TomToad(Posted 1+ years ago) #2
This explains it

Chaduke(Posted 1+ years ago) #3
Ahh ok. 1 bit for sign, 8 bits for exponent and 23 bits for fraction. Makes sense now.