hog Posted January 2, 2004 Posted January 2, 2004 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:) Quote My website
Administrators PlausiblyDamp Posted January 2, 2004 Administrators Posted January 2, 2004 wouldn't device.DrawPrimitives(PrimitiveType.LineList,.....) or device.DrawPrimitives(PrimitiveType.LineStrip,.......) do the trick instead of trianglelist / trianglestrip? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
hog Posted January 2, 2004 Author Posted January 2, 2004 Yes but this type of code does not appear in the sample I've learned from the SDK; 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? Quote My website
hog Posted January 2, 2004 Author Posted January 2, 2004 Whooooooo hold da phone:) m_obj3DDevice.RenderState.FillMode = FillMode.WireFrame :) Quote My website
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.