niftools / nifxml

A repository for the nif.xml file, which contains the nif file format description.
http://www.niftools.org
GNU General Public License v3.0
37 stars 43 forks source link

added billboard mode BS_ROTATE_ABOUT_UP #23

Closed ttl269 closed 10 years ago

ttl269 commented 10 years ago

Added billboard mode called "BS_ROTATE_ABOUT_UP" - it has value 5. It is used in Skyrim and Fallout 3 nifs. Also works in Oblivion.

neomonkeus commented 10 years ago

Why is the option="9" removed, were there cases where this value was used. Also why BS_* when the rest have generic names.

ttl269 commented 10 years ago
  1. Billboard mode is stored in lowest 3 bits. So value 9 is same as value 1. I have found that Oblivion files uses values higher than 7 (found 8, 9, 12) but its "Preview Scene Graph" reports same billboard modes as it would used values 0, 1 or 4. Maybe that bit 3 have some function but it is not reported. Of course we can add duplicates for values 8-13 to nif.xml, so user will see the function of these values.
  2. "BS_" prefix for value 5 is because precisely this name is reported by "Preview Scene Graph" of Oblivion, Fallout and Skyrim. It seems that it is specific Bethesda billboard mode.
neomonkeus commented 10 years ago

Thanks for the explanation.