[Plugin] Sky

Utilities designed primarily for the xbox version of Halo 2.
Post Reply
CtrlAltDestroy




Designer

Posts: 1509
Joined: Sat Nov 06, 2004 5:14 am
Location: hi2u

[Plugin] Sky

Post by CtrlAltDestroy »

I just took an existing sky plugin and defined pretty much the rest of the unknowns & added some stuff.

Code: Select all

<plugin class="sky " author="Iron_Forge" version="0.9" headersize="172">
  <revision author="CtrlAltDestroy" version="0.9">Added some stuff, found most of the unknowns and revised some errors. Nearing completion...</revision>
  <revision author="MT" version="0.71">Added some values found by Turk</revision>
  <revision author="MT" version="0.7">Found Many Unknowns, and finished Fog reflexives...</revision>
  <revision author="XxSilencedDeathxX" version="0.2">Added fog values, thanks to Capta1n_Insan1ty</revision>
  <revision author="Iron_Forge" version="0.1">Added basic layout of plugin...</revision>
  <tag name="Render Model" offset="0" visible="true" />
  <id name="Render Model" offset="4" visible="true" />
  <tag name="Animation Graph" offset="8" visible="true" />
  <id name="Animation Graph" offset="12" visible="true" />
  <bitmask32 name="Flags" offset="16" visible="true">
    <option name="Fixed in World Space" value="0" visible="true" />
    <option name="Depreciated" value="1" visible="true" />
    <option name="Sky Casts Light from Below" value="2" visible="true" />
    <option name="Disable Sky in Lightmaps" value="3" visible="true" />
    <option name="Fog Only Affects Containing Cluster" value="4" visible="true" />
    <option name="Use Clear Color" value="5" visible="true" />
  </bitmask32>
  <float name="Render Model Scale" offset="20" visible="true" />
  <float name="Movement Scale" offset="24" visible="true" />
  <struct name="Cube Map" offset="28" visible="true" size="12" label="">
    <tag name="Cube Map Reference" offset="0" visible="true" />
    <id name="Cube Map Reference" offset="4" visible="true" />
    <float name="Power Scale" offset="8" visible="true" />
  </struct>
  <float name="Indoor Ambient Color - R" offset="36" visible="true" />
  <float name="Indoor Ambient Color - G" offset="40" visible="true" />
  <float name="Indoor Ambient Color - B" offset="44" visible="true" />
  <unused offset="48" size="4" />
  <float name="Outdoor Ambient Color - R" offset="52" visible="true" />
  <float name="Outdoor Ambient Color - G" offset="56" visible="true" />
  <float name="Outdoor Ambient Color - B" offset="60" visible="true" />
  <unused offset="64" size="4" />
  <float name="Fog Spread Distance [World Units]" offset="68" visible="true" />
  <struct name="Atmospheric Fog" offset="72" visible="true" size="24" label="">
    <float name="Color - R" offset="0" visible="true" />
    <float name="Color - G" offset="4" visible="true" />
    <float name="Color - B" offset="8" visible="true" />
    <float name="Maximum Density [0,1]" offset="12" visible="true" />
    <float name="Start Distance [World Units]" offset="16" visible="true" />
    <float name="Opaque Distance [World Units]" offset="20" visible="true" />
  </struct>
  <struct name="Secondary Fog" offset="80" visible="true" size="24" label="">
    <float name="Color - R" offset="0" visible="true" />
    <float name="Color - G" offset="4" visible="true" />
    <float name="Color - B" offset="8" visible="true" />
    <float name="Maximum Density [0,1]" offset="12" visible="true" />
    <float name="Start Distance [World Units]" offset="16" visible="true" />
    <float name="Opaque Distance [World Units]" offset="20" visible="true" />
  </struct>
  <struct name="Sky Fog" offset="88" visible="true" size="16" label="">
    <float name="Color - R" offset="0" visible="true" />
    <float name="Color - G" offset="4" visible="true" />
    <float name="Color - B" offset="8" visible="true" />
    <float name="Density [0,1]" offset="12" visible="true" />
  </struct>
  <struct name="Patchy Fog" offset="96" visible="true" size="80" label="Unsure about the floats in this section...">
    <float name="Color - R" offset="0" visible="true" />
    <float name="Color - G" offset="4" visible="true" />
    <float name="Color - B" offset="8" visible="true" />
    <float name="Unknown" offset="12" visible="false" />
    <float name="Unknown" offset="16" visible="false" />
    <float name="Unknown" offset="20" visible="false" />
    <float name="Density - From [0,1]" offset="24" visible="true" />
    <float name="Density - To [0,1]" offset="28" visible="true" />
    <float name="Distance - From [World Units]" offset="32" visible="true" />
    <float name="Distance - To [World Units]" offset="36" visible="true" />
    <unused offset="40" size="32" />
    <tag name="Patchy Fog" offset="72" visible="true" />
    <id name="Patchy Fog" offset="76" visible="true" />
  </struct>
  <float name="Bloom Override Amount [0,1]" offset="104" visible="true" />
  <float name="Bloom Override Threshold [0,1]" offset="108" visible="true" />
  <float name="Bloom Override Brightness [0,1]" offset="112" visible="true" />
  <float name="Bloom Override Gamma Power" offset="116" visible="true" />
  <struct name="Lights" offset="120" visible="true" size="52" label="">
    <float name="Direction Vector - I" offset="0" visible="true" />
    <float name="Direction Vector - J" offset="4" visible="true" />
    <float name="Direction Vector - K" offset="8" visible="true" />
    <float name="Direction - Y [Radians]" offset="12" visible="true" />
    <float name="Direction - P [Radians]" offset="16" visible="true" />
    <tag name="Lens Flare" offset="20" visible="true" />
    <id name="Lens Flare" offset="24" visible="true" />
    <unused offset="28" size="16" />
    <struct name="Radiosity" offset="44" visible="true" size="40" label="">
      <bitmask32 name="Flags" offset="0" visible="true">
        <option name="Affects Interiors" value="0" visible="true" />
        <option name="Affects Exteriors" value="1" visible="true" />
        <option name="Direct Illumination in Lightmaps" value="2" visible="true" />
        <option name="Inirect Illumination in Lightmaps" value="3" visible="true" />
      </bitmask32>
      <float name="Color - R" offset="4" visible="true" />
      <float name="Color - G" offset="8" visible="true" />
      <float name="Color - B" offset="12" visible="true" />
      <float name="Power [0,+inf]" offset="16" visible="true" />
      <float name="Test Distance [World Units]" offset="20" visible="true" />
      <unused offset="24" size="12" />
      <float name="Diameter [Radians]" offset="36" visible="true" />
    </struct>
  </struct>
  <float name="Global Sky Rotation" offset="128" visible="true" />
  <struct name="Shader Functions" offset="132" visible="true" size="22" label="">
    <string32 name="Global Function Name" offset="0" visible="true" />
  </struct>
  <struct name="Animations" offset="154" visible="true" size="6" label="">
    <short name="Animation Index" offset="0" visible="true" />
    <float name="Period [Seconds]" offset="4" visible="true" />
  </struct>
  <float name="Clear Color - R" offset="160" visible="True" />
  <float name="Clear Color - G" offset="164" visible="True" />
  <float name="Clear Color - B" offset="168" visible="True" />
</plugin>
Nothing special really, I just use it to find fog and lens flare rotational values.

Hope you guys can find some use for it...
User avatar
StalkingGrunt911




Recreator Connoisseur Acolyte Coroner
Sigma Pyre

Posts: 3618
Joined: Wed May 24, 2006 12:30 pm
Location: Florida!
Contact:

Post by StalkingGrunt911 »

Nice job L33T well CAD. :)
Fleabag77




Commentator

Posts: 544
Joined: Sun Dec 31, 2006 5:12 am

Post by Fleabag77 »

Submit it to here.

Good job.
Post Reply