Re: DrawIndexedPrimitives doesn't draw all triangles



[Please do not mail me a copy of your followup]

gianluca.colucci@xxxxxxxxxx spake the secret code
<1163845883.717780.176460@xxxxxxxxxxxxxxxxxxxxxxxxxxx> thusly:

By using DrawIndexedPrimitives in order to display two triangles with a
common vertex, I get a wrong result (no error, just wrong result): I
get just one triangle displayed.

Check that all your vertices are specified in a consistent winding
order.

An easy way to check if this is the problem is to turn off face
culling. IIRC, set the CullMode property to None.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
.



Relevant Pages

  • Re: problem in texturing with direct3d mobile
    ... [Please do not mail me a copy of your followup] ... karthik.rangaswamy@xxxxxxxxx spake the secret code ... Unfortunately I dont understand any of this. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: compile error
    ... [Please do not mail me a copy of your followup] ... bob@xxxxxxxxxxxxxx spake the secret code ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: nmh 1.3 has been released
    ... [Please do not mail me a copy of your followup] ... Joel Reicher spake the secret code ...
    (comp.mail.mh)
  • Re: video memory pointer
    ... [Please do not mail me a copy of your followup] ... bob@xxxxxxxxxxxxxx spake the secret code ... memory in DirectX. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Transforming vertex normals
    ... [Please do not mail me a copy of your followup] ... Jon Harrop spake the secret code ...
    (microsoft.public.win32.programmer.directx.managed)