Archived

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

Multiple vertex streams based on single vertex buffer

This topic is 5015 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