Re: 64 bit avail
Frederic Bouvier <[email protected]> Fri, 29 Jul 2005 09:55:55 +0200
| Newsgroups | gmane.games.flightgear.terragear.devel |
|---|---|
| Message-ID | <[email protected]> |
Jason Cox wrote: > Update on 64Bit scenery generation > I now produce scenery but not airports. Can anyone help with how > airports are geneated as they only show up as a white area with towers, > windsockes ... showing. It appears that I can not start from these as > they have no triangles in them ( its using a type long some where ) > > I can fly over them if i start from an airport location that hasn't been > generated. > > I have changed 'long's to int in simagear and terragear to get this far. > once I find them all and fully test someone might help with how to make > a patch. > > So in short, How are airports generated ? Airports are generated the same way tiles are generated : lists of points, triangles, triangles strips and triangle fans are built and assembled in collections and SGBinObject::write_bin is called. They differs with tiles in the kind of primary object used to model the surface : tiles only have triangle fans, airports have points, triangles and triangle strip ( and fgsd only generate triangles ). int, like long, is not safe for this kind of problem. You should use int16, uint32 and the like, and be sure they are not converted when they are written to files or read from the file at load time. -Fred _______________________________________________ Terragear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/terragear-devel 2f585eeea02e2c79d7b1d8c4963bae2d