LF: Doom: help ! bin files....


[Prev][Next][Index][Thread]

LF: Doom: help ! bin files....



Well: i have just finished coding 1/3 of a doomlike game: i would like to
test it but i need huge tables for tan, sine, cosine: 
1)  tan table: tan(x) * 128 where x is from 0 to 1.568 ( in radians ) by step
of 0.007
each entry is a word lenght, there are 225 entries 
2)  y_step :  tan(x)*64 where x is from 0 to 1.568 ( 0.007 increment ) 
3)  x_step :  64/tan(x)  where x is from 0 to 1.568 ( 0.007 increment ) 
4)  inv_cos:  128/cos(x) where x is from 0 to 1.568 ( 0.007 increment ) 
5)   inv_sin:   128/sin(x) where x is from 0 to 1.568 ( 0.007 increment ) 

i need badly 1) and 4) : i have no idea as to how build these bin files: i
know some people here have done some ( jimmy for his torus demo at least ) .
So could someone explain me how to do these or do them for me ? I would be
gratefull for all help ! ( it is difficult to imagine myself buiding these
tables by hand) 


Follow-Ups: