Difference between revisions of "Mapping/Fix/Nodraws"
< Mapping
Jump to navigation
Jump to search
m (fix minor typo) |
(No difference)
|
Latest revision as of 10:58, 19 October 2008
Each face of each brush has a SURF_NODRAW flag. If it is set, the renderer knows that it never has to be drawn. This makes rendering faster.
ufo2map -check nodraws base/maps/foo
ufo2map will set nodraws automatically in three ways.
- If the side is near (at revision 19664, within 10 degrees) pointing down, then it will not be shown. (note this currently causes a bug in FPV. FPV will be changed or removed in the future).
If the angle shown in blue is less than 10 degrees, then the side will be set to nodraw.
- The side is pressed flush against another side that is the same shape, or larger.
Here the dark brush has a side that will never be drawn.
- The side is pressed against a composite face.
The sides of the line of three brushes abut. These form a composite side, which prevents one of the sides of the dark brush from ever being rendered. Note that most terms in UFO:AI rendering are common with other Quake-derived engines, but I made up "composite side".