zhang.jian_bin Posted September 28, 2016 Share Posted September 28, 2016 Given a point in window coordinate(2D point, pixel point), I need to know the corresponding point in world coordinate, or viewing coordinate. This un-projection may results in different answers, typically the point on near plane of frustum would be acceptable. How can i do that? Link to comment
silent Posted September 28, 2016 Share Posted September 28, 2016 Hi Zhang, Please, check the intersections examples: https://developer.unigine.com/en/docs/2.3.1/code/uniginescript/usage/intersections/ How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
zhang.jian_bin Posted September 28, 2016 Author Share Posted September 28, 2016 Oh, yes, I found that function in camera class: getDirectionFromScreen. Link to comment
Recommended Posts