XNA Creators Club Online
Page 1 of 1 (5 items)
Sort Posts: Previous Next

vertex problem

Last post 8/20/2009 11:52 PM by TordinBjorn. 4 replies.
  • 8/2/2009 3:35 PM

    vertex problem

    Hy.
    I have to draw a triangle with a directx10 shader but a vertex appear hidden.
    I post this page:

    http://www.greenhousealberoni.it/error.html

    for more information , a file of pix with the debug and the list of vertex that are imported from a collada model.
    The vertexes are correct , i test they.
    I'm reset cull mode to CULL_NONE.
    I have imoported all vertex from the model in the vertex buffer , i only used

    m_pDevice->DrawIndexed(3, 0, 0 );
    for draw only the first trriangle.
    but, i'm not understand why, the last vertex(vtx 2 and idx 0) is not visible.

    Thanks
  • 8/2/2009 7:23 PM In reply to

    Re: vertex problem

    Ps.
    I have more than one vertex for each coord x,y,z because each vertex can have different normals or text coord for each coord , then i can have:

    Vertex 1: x:10 y:5 z:0 U:0,2 V 0,4
    and
    Vertex 2: x:10 y:5 z:0 U:0,4 V 0,67

    in this case i have created two or more vertex with each coord.
    Is correct or completely  wrong?
    and is possible that another vertex with the same coord hide my vertex in the same position?

    thanks.
  • 8/2/2009 8:33 PM In reply to

    Re: vertex problem

    hi,
    did you consider the clockwise winding direction of the vertices during the creation? perhaps you see the triangle from behind und thus it's invisible for you...

    have a nice eve
    mfg
    Byron
  • 8/6/2009 11:21 PM In reply to

    Re: vertex problem

    what does the debug runtime output say?
    http://www.futuregpu.net ex-Aces Lead PM/ex DX SDK PM/ex D3D Evangelist now LRB Launch Native Title Wrangler
  • 8/20/2009 11:52 PM In reply to

    Re: vertex problem

    post your rendering code + the HLSL code pliz :)
    that helps alot ;)
    Whow, thats a big memory leak...
    It sure is! and we are sinking!

    kartflygaren675@hotmail.com
Page 1 of 1 (5 items) Previous Next