Skip to content

Please help: DX11(D3DX) matrix & clipping plane problems #1707

@xjkkoski

Description

@xjkkoski

Hi,

I'm trying to implement VR for my old driving game. I used "directx11 hellovr" (or such) as a base, and "converted" the matrix related code to D3DX (which my game use). But the camera is facing backwards in the HMD for one, so something is not quite right, unfortunately I don't understand much about matrix calculations. And then there seems to be some near/far clipping plane problem, I'm able to change the near/far values realtime, but can't come up any values to properly fix it.

Anyway, here is a video on how it looks, hopefully it will help to understand the problem.
I move my head around in the HMD, but it doesn't even look like the view is really properly turning as it should be. Plus all sorts of other problems. At 0:45 I briefly turn the VR off so you can see how the surroundings should really look like.

https://youtu.be/WzIY-lTL4Xw

I will add some related code in the next post. Let me know if you need something more.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions