why noone points me that 6th and 7th parameters in Unproject() is not ZNear and ZFar, but Viewport.MinDepth and ViewPort.MaxDepth
Sorry, I'm not very good with SharpDX...
SO, could you please tell how correctly make ray a maximum length possible?
Why don't you just use Ray.GetPickRay: http://sharpdx.org/documentation/api/m-sharpdx-ray-getpickray?
Note also that from the description of Ray.Direction (http://sharpdx.org/documentation/api/f-sharpdx-ray-direction), it seems that Ray actually always holds a normalized (length 1) vector for the direction of the ray, so there's no such thing as a "maximum length" ray - SharpDX Rays always have length 1, and they are probably always treated as "infinite length" in calculations.