SkinnedVerts Asset

From COD Engine Research
Revision as of 20:47, 16 February 2014 by CraigChrist8239 (talk | contribs) (Created page with "__NOTOC__ Category:Assets Category:BO2 The skinnedverts asset is a new addition to Black Ops 2, as such there is not much known about it's purpose. It appears to be du...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The skinnedverts asset is a new addition to Black Ops 2, as such there is not much known about it's purpose. It appears to be dual GfxPackedVertex arrays. The specific points dumped into a 3D space do not appear to draw any shapes, which probably means they are buffers.

union GfxColor
{
  unsigned int packed;
  char array[4];
};

union PackedTexCoords
{
  unsigned int packed;
};

union PackedUnitVec
{
  unsigned int packed;
};

struct GfxPackedVertex
{
  float xyz[3];
  float binormalSign;
  GfxColor color;
  PackedTexCoords texCoord;
  PackedUnitVec normal;
  PackedUnitVec tangent;
};

struct SkinnedVerts
{
  const char * name;
  unsigned int vertCount;
  GfxPackedVertex * vertexArray1; //Count = vertCount
  GfxPackedVertex * vertexArray2; //Count = vertCount
};