Results 1 to 9 of 9

Thread: Getting Transformed Vertices In DirectX8

  1. #1

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Getting Transformed Vertices In DirectX8

    Using DirectX8, after creating a polygonal object, and transforming it's world coordinates and camera coordinates, how do I obtain the results of the vertices after all of that?

  2. #2

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Getting Transformed Vertices In DirectX8

    Do I use D3DDevice.GetTransform or D3DXVec3TransformCoord or something else?

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Getting Transformed Vertices In DirectX8

    NotMe should be around in a week or so. I think he was up on DX.

  4. #4

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Getting Transformed Vertices In DirectX8

    I found this though

    Transformed Vertex = Model Vertex * World Matrix * Camera Matrix

  5. #5
    Hyperactive Member
    Join Date
    Feb 2005
    Posts
    294

    Re: Getting Transformed Vertices In DirectX8

    D3DXVec3Project I think

  6. #6

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Getting Transformed Vertices In DirectX8

    No that I think converts World coordinates to Screen coordinates.

  7. #7
    Banned Psychopathetica's Avatar
    Join Date
    Jan 2005
    Posts
    31

    Re: Getting Transformed Vertices In DirectX8

    When I use D3DXVec3Unproject though, I'm getting Division by zero errors for some unknown reason, even though there is no division and no zeros.

  8. #8

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Getting Transformed Vertices In DirectX8

    *bump* maybe NoteMe might know

  9. #9

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Getting Transformed Vertices In DirectX8

    This one dude has code for object selection using the stencil buffer, which he claims is pixel perfect. Unfortunately I can't find where to download his example. All I see is code to do an object selection lasso

    http://gpwiki.org/index.php/Object_selection_lasso

Posting Permissions

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



Click Here to Expand Forum to Full Width