Tag Info

New answers tagged


You need to, as comments indicated, project a ray from the camera's world location and using the unprojection of your camera look vector. For multi-object selection, you will basically use two of these rays to generate a pyramid shape and do object collision detection against that. One corner would be the initial ray when the user first clicks, the opposite ...


I found that I needed to tighten the near and far values and ensure that the unproject function's near/far plane input matches the projection matrix that is also fed into the unproject function. Remember, the projection matrix which helped form your 'viewProj' variable also contains near and far plane values. For me, this resolved the exact symptoms you ...

Top 50 recent answers are included