TargetPositionCamera.GetRayFromCamera() sometimes returns Direction = NaN
#4
(10-19-2021, 10:13 AM)abenedik Wrote: May I ask you what were the values of NearPlane and FarPlane that you used?

By default DXEngine automatically calculates the NearPlane and FarPlane values from the size of the 3D scene so that they are optimally set (making them as close as possible to increase depth resolution). This is controlled by DXScene.OptimizeNearAndFarCameraPlanes property. So usually it is best to leave that property on true value.

Hi abenedik,

I was using arbitrary values: 0.1 and 1000000. I reduced these down to 0.1 and 10000 and I'm getting much better results.

Thanks
  


Messages In This Thread
RE: TargetPositionCamera.GetRayFromCamera() sometimes returns Direction = NaN - by siik - 10-19-2021, 10:56 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)