File Details
Screen to World Projection Library v1.1
- R
- Feb 25, 2011
- 11.55 KB
- 373
File Name
Screen_To_World_Projection.SC2Lib
Supported Versions
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).