Displaying a wire frame

hog

Well-known member
Joined
Mar 17, 2003
Messages
984
Location
UK
I can now create an object and load an object into DX9. What I cant seem to do is display an object as a wireframe? All I seem to be able to do is display it with a solid colour??

Any pointers please:)
 
wouldnt device.DrawPrimitives(PrimitiveType.LineList,.....) or device.DrawPrimitives(PrimitiveType.LineStrip,.......) do the trick instead of trianglelist / trianglestrip?
 
Yes but this type of code does not appear in the sample Ive learned from the SDK;

Code:
For i = 0 To m_matSphere.Length - 1

      Set the material for this subset
      m_obj3DDevice.Material = m_matSphere(i)

       Draw the mesh subset
       m_mshSphere.DrawSubset(i)

Next i

So cant see how to do it?
 
Whooooooo hold da phone:)

Code:
m_obj3DDevice.RenderState.FillMode = FillMode.WireFrame

:)
 
Back
Top