Jump to content
  • Advertisement
Sign in to follow this  
ThunderSoul

Polygon-type renders in DirectX

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

Hello all... I mentioned yesterday that I just started with DirectX, and today is my 2nd day. :) Every tutorial I found used simple triangles to render polygons, so the question is, I'm looking for the technique on using quads and triangle strips, for example to render a sphere (quads preferably to easierly apply a texture and better looks in wire-frame mode). How would I go about doing so? How would I use DrawTrianglePatch and DrawRectangularPatch? Thank you...

Share this post


Link to post
Share on other sites
Advertisement
I recommend reading through the tutorials in the SDK. There is one that shows you how to render a texture cylinder.

Dave

Share this post


Link to post
Share on other sites
Direct3D and GPU's in general operate on the triangle level. My understanding of OpenGL's capability to render quad's is just an abstraction of two coplanar triangles - the GPU doesn't actually see the quad...

The patch functions you mention are access to the 'higher order surface' functionality in the API. You probably don't want to put too much emphasis on them as hardware support is very limited (although probably making a comeback with the G80/R600 generation). You can still manually tesselate via D3DX but you lose much of the advantage of using them in the first place.

hth
Jack

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!