Hello again
I'm midway through writing a conversion program that takes an Anim8or file and converts it to an Open GL list. Currently I'm having two problems,
1. I need tot vertexes to be stored as they are written in the text file. I really have no choice I have to convert the strings into floating values. The accuracy is terrible some of them have up to 3 tenths off. I've heard that bmax can't handle converting a string to float even if the float string is well within the length of a float.
Do I really need to iterate through values in the string and add the proper values to a base float?
Aka string ="35.678"
30.0
5.0
.600
.07
+ .008
--------------
35.678
My next question I save all vertexes to a two dimensional array. I don't know how big the global array has to be when i start the program. Only after the user selects and reads a file do I know how big to make the array. The array is three indicies wide (x,y,z) and I don't know height because the array point numbers vary.
I'm midway through writing a conversion program that takes an Anim8or file and converts it to an Open GL list. Currently I'm having two problems,
1. I need tot vertexes to be stored as they are written in the text file. I really have no choice I have to convert the strings into floating values. The accuracy is terrible some of them have up to 3 tenths off. I've heard that bmax can't handle converting a string to float even if the float string is well within the length of a float.
Do I really need to iterate through values in the string and add the proper values to a base float?
Aka string ="35.678"
30.0
5.0
.600
.07
+ .008
--------------
35.678
My next question I save all vertexes to a two dimensional array. I don't know how big the global array has to be when i start the program. Only after the user selects and reads a file do I know how big to make the array. The array is three indicies wide (x,y,z) and I don't know height because the array point numbers vary.