Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


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 kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012