View Single Post
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 04-04-2021 , 12:09   Re: How to reconcile the coordinates and scale of the radar map with ingame coordinat
Reply With Quote #9

Quote:
Originally Posted by randunel View Post
Bacardi, you're right! Thanks for helping me realise that each dds image pixel translates to "scale * pixels" coordinates ingame. This means that I don't need any other known points to calculate, given that each image pixel (e.g. point 1024x1024) translates to 1024*scale as ingame coordinates.

In case anyone finds this thread in a future search: just multiply the size of the image with the "scale" parametre to calculate the ingame coordinates shown by the radar map.

Demo with the result: https://gfycat.com/unimportantringedirrawaddydolphin

This problem is solved, thank you!
https://forums.alliedmods.net/showth...83#post2742983

For example, de_aztec_radar.vdc " This is on all standard maps, resolution (1024*1024)/10 = map coordinates.
How do I draw players on the map texture? This needs to be rendered in real time, and somehow drawn on the map texture.

Last edited by tonline_kms65; 04-04-2021 at 12:16.
tonline_kms65 is offline