Advertisement Jump to content


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


Using SetStreamSource() to render a lit cube

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

I''m still experimenting with DX8 and I was wondering if it was possible to render a lit cube (ie with normal data, using D3DFVF_NORMAL) using a different vertex buffer for the normals... ? I''m asking this because i would like to render my cube faces using triangle strip and only one call to DrawIndexedPrimitive(). I''ve heard that SetStreamSource() can be used to do this... but maybe i''m wrong... I would have one vertex buffer containing the position information of my 8 points, but i would need another vertex buffer with 24 elements, the normals of each of the 4 points of each faces of my cube... I don''t know if it''s possible...

Share this post

Link to post
Share on other sites
..Unfortunately the answer is no, it''s not currently possible to index the vertex components independently.Even with multiple vertex streams, all streams are indexed together...


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!