News: Enjoy our Christmas offer 30% off on our latest package Tower Defense Level Kit http://u3d.as/m7h

  • May 25, 2018, 01:27:52 AM

Login with username, password and session length

Author Topic: Gesture.PickedObject on modified frustum  (Read 401 times)

Offline ikazrima

  • Newbie
  • *
  • Posts: 1
Gesture.PickedObject on modified frustum
« on: May 04, 2017, 03:29:00 PM »
Hi there,

I'm using a modified frustum (oblique perspective), now the raycast for gesture.pickedObject is off and wouldn't hit an object on screen.  Any fix for that?


Offline Nicolas

  • Administrator
  • Hero Member
  • *****
  • Posts: 792
Re: Gesture.PickedObject on modified frustum
« Reply #1 on: May 09, 2017, 10:11:28 AM »
Hi,

EasyTouch uses Unity's API to cast from camera to te scene and to compute the 3D position to screen 2D.  So I have to write complete routines that take into account your matrix to do what Unity is already doing. To be honnest , it is not on the program....
https://forum.unity3d.com/threads/generating-rays-from-cameras-with-custom-projection-matrices.326614/


Why don't you use an orthographic camera fo this result ?
« Last Edit: May 09, 2017, 10:16:45 AM by Nicolas »