UserDef Terrain Types
"Buchanan, Stuart" <[email protected]> Mon, 29 Aug 2005 09:58:00 +0100 (BST)
| Newsgroups | gmane.games.flightgear.terragear.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi All, I've finally managed to solve all my problems getting my scenery to build correctly. Many thanks for all the patient answers. I've been adding custom terrain on top of vmap0 using TGUserDef, which is more useful for my purposes than using FGSD as I want to be able to regenerate scenery from scratch. However, the scenery ordering in Lib/Polygon/names.cxx can cause a problem. This handles the precedence of scenery when an intersection occurs, something that happens a lot when using TGUserDef on top of existing scenery. The current ordering is something like this: -Airport -Marsh -Roads -Urban -Town -Crops -Forest -Ocean So, if you add a Road using TGUserDef it will appear instead of any underlying terrain, but if you try to add some sort of Forest where there is currently a Town, it won't appear because the Town has higher precedence. I've solved this problem on my own system by adding a series of User* terrains to names.[ch]xx as follows: -Airport -UserMarsh -Marsh -UserRoads -Roads -UserUrban -UserTown -UserCrops -UserForest -UserOcean -Urban -Town -Crops -Forest -Ocean This ensures that custome terrain is displayed in preference to vmap0, while allowing the existing roads to show through. Obviously I had to add the new User* terrains to materials.xml as well. Do people feel this is a good solution to the issue? If so, I'd like to get the fix into the TerraGear and FlightGear source. How do I do this - email the changes to Curtis? -Stuart ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com _______________________________________________ Terragear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/terragear-devel 2f585eeea02e2c79d7b1d8c4963bae2d