Quote:
Originally Posted by GeorgeS
How did you decode the eq map files - they have syntax like
L 3.2725, 216.7370, 0.6260, -58.9923, 331.4005, 0.6260, 150, 100, 0
L -58.9923, 331.4005, 0.6260, -148.8005, 426.0498, 0.6260, 150, 100, 0
L -148.8005, 426.0498, 0.6260, -260.0621, 494.2486, 0.6260, 150, 100, 0
|
It looks like it's broken down in to the following:
Type (
Line,
Point, etc)
X Coordinate (looks to be inverted, so negatives are positive & vice versa)
Y Coordinate (looks to be inverted, so negatives are positive & vice versa)
Z Coordinate (doesn't look to be inverted)
Attribute 1
Attribute 2
Attribute 3
Attribute 4
Attribute 5
Attribute 6 (optional?)
It looks like Attributes 1-5 depend on what type of coordinate it is.
For example, on a Point, Attributes 1-3 look like they may be the color (yellow is 255, 255, 0 & black is 0, 0, 0, so it looks to be Red, Green, & Blue), Attribute 4 looks to be the size (2 for Medium), and Attribute 5 is the actual text for the Point. It doesn't look like there is a 6th attribute for Points.
On a Line, Attributes 1-3 look to be the ending X, Y, & Z coordinates (Z & Y being inverted like the first set) and Attributes 4-6 look to be the color of the line (RGB like the text colors).
On a somewhat side note, I found
this website while looking up some other stuff. It basically creates an image using the map files with what looks to be a CGI script. It's not downloadable, but it might give you some ideas.
Hope this helps
