Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualeppo

Posted 20 June 2012 - 05:24 AM

If you're going to draw the same object 1800 times, you should use instancing.

You can still use the old 9_3 style 'stream instancing', but D3D10 introduced the super-useful, more generalized InstanceID semantic. Basically, you use this as an index into a texture buffer/constant buffer/etc. to fetch a per-instance transformation matrix.

Look up the Instancing10 and Skinning10 samples in the DXSDK.

#1eppo

Posted 20 June 2012 - 05:21 AM

If you're going to draw the same object 1800 times, you should use instancing.

You can still use the old 9_3 style 'stream instancing', but D3D10 introduced the super-useful InstanceID semantic. Basically, you use this as an index into a texture buffer/constant buffer/etc. to fetch a per-instance transformation matrix.

Look up the Instancing10 and Skinning10 samples in the DXSDK.

PARTNERS