Тема: Mini map
Показать сообщение отдельно
Старый 31.07.2009, 02:33   #8
NitE
злобный флудер
 
Регистрация: 10.07.2007
Сообщений: 2,585
Написано 789 полезных сообщений
(для 1,476 пользователей)
Ответ: Mini map

сам незнал как делать миникарту - теперь стало интересно. после минуты поиска нашел
Translating from 3D to 2D coordinates is simple.

CameraProject will project a 3D coordinate (entityx, entityy and entityz of each entity) into 2D coordinates.

Get the result using ProjectedX() and ProjectedY()
You may want to "feed" CameraProject an x and z in place of an x and y (swap them around or shuffle until happy) to return 'useful' ProjectedX() and ProjectedY() coords.

So, divide these results to fit a smaller rectangle, and offset to draw where you want in your minimap.
(Offline)
 
Ответить с цитированием
Сообщение было полезно следующим пользователям:
G.A.D (31.07.2009)