Skip to main content
gamedev.net
🔒 Locked

Drawing Wireframes

Started by JimH 1 reply 650+ views
Original Post
JimH
JimH
I have a landscape that I normally draw as fans with textures. Now I’d like to draw the landscape as a wireframe. But I don’t see right off how to draw just the outlines of fans or triangles using the fan and triangle primitives. I could use the line primitive, but that would require different and larger vertex buffers. Is there any way to draw it as a wireframe using the fan primitive and the index/vertex buffer I already have? I noticed that the SDK has a D3D sample, progressive mesh, that switches a tiger model from textured to wireframe. But I haven’t yet figured out where in that program the difference is. And I have yet found anything in the SDK docs to help me. Thanks
d000hg
d000hg
Change the renderstate D3DRS_FILLMODE to D3DFILL_WIREFRAME. This makes d3d draw the triangles in wireframe mode.



Read about my game, project #1
NEW (31st July): There is a new demo, demo #2 at my site. Please try it out.


John 3:16
JimH
JimH
Thanks for the quick answer! I thought it might be something simple.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.