Skip to main content
gamedev.net
🔒 Locked

MAXSCRIPT working weird

Started by Esap1 Apr 10, 2000 at 6:59 PM 5 replies 700+ views
Original Post
Esap1
Esap1
In the article "MAXSCRIPT 3.0 for Game Developement" at http://www.gamasutra.com/features/19991008/maxscript_02.htm they give you a MAXSCRIPT that exports to a RTG(Real Time Game) format. Well when I exported one of my models, several of the Vertices Y component were like this: 300.035-e005. When I load this as a float it sets it to 0. Does anyone know how to fix this or why this happens? Thanks a Lot in Advance
Esap1
Esap1
If your not understanding what Im saying, Im saying that sometimes in the Y component there is a "-e700", or "-e500" suffix on it. Then when I use fscanf(file,"%f",&var) on it, it doesnt load it right, it sets it to zero. Please someone just post even if you dont understand, just post something on this.
RotoMuffin
RotoMuffin
I don''t know how to change the way MAX exports floats, instead I just wrote routines to accept scientific notation in my input module. Not too difficult, it is just a simple ASCII file after all.
Esap1
Esap1
Well, its not Scientific notation, its just some messup!
narlymon
narlymon
Looks like Sci. notation to me. . . what is the vert. coord in Max?
Esap1
Esap1
AH Crap, now the exporter isnt exporting anything but the header. Man, well, if it was is scientific notation what would it be?(sorry for such a stupid question).

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.