Screen to World Projection Library v1.1
Details
-
FilenameScreen_To_World_Projection.SC2Lib
-
Uploaded by
-
UploadedFeb 25, 2011
-
Size11.55 KB
-
Downloads366
-
MD522bd74b8806bda1173f1dfc67924dcf3
Changelog
Optimized Code, runs much faster.
Added an initialization function that must be run every time camera position/orientation changes (see example map).
UI to World only works properly on flat terrain
Bugs out at Yaw = 0
World to UI needs camera smoothing to be OFF to work properly on bumpy terrain
Both functions need to know Screen Resolution
Return value from World to UI is in units of resolution. Needs to be converted to UI units to work with dialogs. Can use either the provided resolution detection method or getResolution library (not tested).