microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++
https://walbourn.github.io/directxtk/
MIT License
2.57k stars 511 forks source link

getting the vertices and the indices #35

Closed AndreAhmed closed 8 years ago

AndreAhmed commented 8 years ago

Hi chuck,

is it possible to access the vertices and the indices of a directxtk sdkmesh model ?

AndreAhmed commented 8 years ago

when its possible to load skinning modal files ?

walbourn commented 8 years ago

The implementation of Model puts the VB/IB data into DEFAULT pool buffers, so they are not accessible by the CPU. This is the most efficient method. If you want to do face-level picking, then you really need to keep another copy of the data in CPU memory. Note built-in support for this is covered by this issue.

Both SDKMESH and CMO models with skinning are loaded using the SkinnedEffect. There's not currently support for loading and playing back animations, which is covered by this issue.