The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 6 of 6

Thread: Weird Managed DirectX Error

  1. #1
    Registered User

    Weird Managed DirectX Error

    As you can see in the image below, the mesh I've rendered using DirectX only draws half of the triangles. I can't figure out why, and the error isn't affected by Cullmode.

    Has anyone had errors like this in the past?

  2. #2
    mine can't even render 9.0c
    what video card is that? may be driver issues, or try updating your direct x installation

  3. #3
    It could be a few things:
    • You might have a winding issue with your polygons - make sure that they're all wound the same way (the best way to test if this is the issue is to turn off backface culling and see if it works).
    • Your mesh definition might contain all the points, but the triangles aren't being read in properly (eg. you might be reading the points but not reusing the points for every second triangle?)
    • Those triangles might not be in the mesh definition at all - if you're using a custom exporter/importer or something then it might be skipping information. Double check to see if the triangles are coming in properly.

    may be driver issues, or try updating your direct x installation
    Possibly, but I really do doubt it My vote is with the code, not DirectX.

    Al6200, try looking into the above issues and let us know how you go.


  4. #4
    Registered User
    what card are you using? did your card support direct9c if not get the latest version of your driver for your video card.

  5. #5
    Registered User
    I turned out to be my code. Apparently I only defined half of the indices... I'd suppose I had assumed while writing it that defining 6 indices for a square was too much.

  6. #6
    The key here is to remember that even if you're drawing a square, you are still drawing them as triangles, and each triangle needs 3 vertices.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012