Thread: 3D Cursor

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2011
    Posts
    1
    Rep Power
    0

    3D Cursor


    Hi all,

    I'm wanting to implement a 3D cursor, primarily to allow pointing within a stereoscopic application, but I'm unsure about the most efficient/simplest method to achieve this.

    Logically I'd like to be able to re-position a quad each frame to sit centred around the current mouse cursor position but at a depth just infront of the closest object under the location covered by the quad.

    Is there a way to achieve this without using shaders, or would using shaders actually make this easier? I understand you cannot access the depthbuffer in DirectX directly, so I'd need to render the depth to a texture and sample it I guess, is this efficient enough to do per-frame?

    Can anybody suggest any implementation details which could help me achieve this or know of any reference material which I could read up on?

    Thanks, Sticky.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Posts
    2
    Rep Power
    0
    I understand you cannot access the depthbuffer in DirectX directly, so I'd need to render the depth to a texture and sample it I guess, is this efficient enough

IMN logo majestic logo threadwatch logo seochat tools logo