Displaying a wire frame

hog

Senior Contributor
Joined
Mar 17, 2003
Messages
984
Location
UK
I can now create an object and load an object into DX9. What I can't 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:)
 
wouldn't 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 I've learned from the SDK;

Visual Basic:
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 can't see how to do it?
 
Whooooooo hold da phone:)

Visual Basic:
m_obj3DDevice.RenderState.FillMode = FillMode.WireFrame

:)
 
Back
Top