Jump to content
  • Advertisement
Sign in to follow this  
Viridian

Practical Direct3D Programming

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

For the last year I've been writing a 3D game in Direct3D called Planitia. I have written an article detailing the things I've learned during that time in the hopes that it will help other budding Direct3D programmers have less trouble than I did. http://www.viridiangames.com/blog/?p=407 Please feel free to contact me if you wish to suggest any improvements. Thank you! [Edited by - Viridian on October 3, 2007 5:42:26 PM]

Share this post


Link to post
Share on other sites
Advertisement
Looks god. Though I do think that your water would do better as lava. It has that slow moving sensation and bulging feel[smile]

Share this post


Link to post
Share on other sites
Quote:
Original post by thallish
Looks god. Though I do think that your water would do better as lava. It has that slow moving sensation and bulging feel[smile]


Yeah, I know...I may go back and do that if I have time.

Share this post


Link to post
Share on other sites
Nice article and engine, thank you.

I have one question about your "(Not) Seeing the Unseen" Once you knew which triangls you were drawing did you then lock / fill your 8 vertexbuffers? Or did you have some way of drawing only partial buffers...if you did I would like to hear about that portion of your development.

I assume it is some sort of math to find out which triangle strips are drawn, but this could result in lots of draw calls which slows rendering down quite a bit.

-v

Share this post


Link to post
Share on other sites
@vs322: You don't need to lock/fill the vertexbuffers just to render a part of them. You just need to update the index buffers, so you end up rendering the tiles that need to be rendered. Although in some cases this might be slow if the indices vary alot.

Share this post


Link to post
Share on other sites
Oh, I guess I didn't make that explicitly clear, did I? Yes, the vertex buffers always hold all the current data, but the index buffers only contain the indices for whatever triangles pass the visibility tests; thus it is the index buffers that limit what triangles get drawn.

I'll update the article to make that clearer.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!