diff options
author | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-09 15:52:10 +0000 |
---|---|---|
committer | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-09 15:52:10 +0000 |
commit | c8b58a46e4f97791f81500006e464a94d68c8c12 (patch) | |
tree | 8991b7d38e19d9808ef273049a57c7338f4122d2 /o3d/serializer | |
parent | 1b91f510fdda3d6e764e0476df5a82c64ae2975e (diff) | |
download | chromium_src-c8b58a46e4f97791f81500006e464a94d68c8c12.zip chromium_src-c8b58a46e4f97791f81500006e464a94d68c8c12.tar.gz chromium_src-c8b58a46e4f97791f81500006e464a94d68c8c12.tar.bz2 |
This CL makes the collada importer handle skinned data
better.
Specifically, it takes the original VertexBuffer and
splits it. One VertexBuffer contains the parts fields
that get skinned. (POSITION, NORMAL, etc...) The other
VertexBuffer contains the fields that don't get Skinned.
(COLOR, TEXCOORD, etc...)
That way instancing you can share the non-skinned
VertexBuffer.
The next step is to not serialize the skinned
VertexBuffer's contents.
Review URL: http://codereview.chromium.org/118156
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/serializer')
-rw-r--r-- | o3d/serializer/cross/serializer_binary.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/o3d/serializer/cross/serializer_binary.cc b/o3d/serializer/cross/serializer_binary.cc index 1af3e2c..9b7f523 100644 --- a/o3d/serializer/cross/serializer_binary.cc +++ b/o3d/serializer/cross/serializer_binary.cc @@ -144,10 +144,10 @@ void SerializeBuffer(const Buffer &buffer, MemoryBuffer<uint8> *output) { } else if (field.IsA(UByteNField::GetApparentClass())) { const UByteNField &byte_field = static_cast<const UByteNField&>(field); uint8 *byte_destination = reinterpret_cast<uint8*>(destination); - byte_field.GetAsBytes(0, - byte_destination, - field.num_components(), - num_elements); + byte_field.GetAsUByteNs(0, + byte_destination, + field.num_components(), + num_elements); // Write out the bytes stream.Write(byte_destination, nitems); } |