Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Multiple vertex streams based on single vertex buffer

This topic is 5324 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I am doing MD2 character animation in DX9 loading all key frames in a single VB. To animate between key frames, I use a vertex shader based on the vertex blending technique demonstrated in the DolphinVS SDK sample. The big difference is that I define two vertex streams based on the same VB with distinct stream offsets. ( dolphin uses three different VBs and three streams ) It works fine on R9800, GF3, FX5900 and GF4MX. Questions: 1- Is it "legit" to use the same VB for multiple streams ? The docs do not mention this particular case. 2- Are stream offsets commonly implemented in current hardware ? 3- If the next rendered object do not use the second stream, I need to NULLify the second stream before calling any DrawPrimitive method. Correct ? 4- What if the streams overlap in the common VB ? Crash ? ( there''s no need for that in character animation but I am thinking that might be useful for something else ) 5- Any other issues I should know about or be aware of when using multiple streams ? Known issues or bugs ? Thanks. Laurent - http://www.lafaqmfc.com/ My little game: http://www.lafaqmfc.com/home/play_starshooter.htm

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!