Converting World Coordinates to Screen Coordinates
-
Password for the archive: libertycity
-
drive.google.comDownloadPassword for the archive: libertycity
This script is an example of the implementation of displaying on-screen objects (texture sprite, text, rectangles, etc.) with reference to the 3D coordinates of the game world.
Its purpose is to explain to those who wish the principles of converting world 3D coordinates into on-screen 2D coordinates,
as well as the principle of obtaining the size of an on-screen object, which depends on the distance between the player and the coordinates to which the drawing of the object is attached.
In this example, the coordinates are taken just above the "$" pickup truck on Grove Street.
The script does not carry a semantic load in the game, it is needed to develop new scripts using the transformation of world 3D coordinates into on-screen 2D coordinates.
An example of a possible use:
- when writing a script for shopping in a store to display the quantity/price of an item right above that item
- displaying the name of the interior above the marker
Этот скрипт является примером реализации отображения наэкранных объектов (спрайт текстур, текста, прямоугольников и т.д.) с привязкой к 3D координатам игрового мира.
Его предназначение в том, чтобы объяснить желающим принципы преобразования мировых 3D координат в наэкранные 2D координаты,
а также принцип получения размера наэкранного объекта, который зависит от расстояния между игроком и координатами, к которым привязана отрисовка объекта.
В данном примере взяты координаты чуть выше пикапа "$" на Гроув стрит.
Скрипт не несёт смысловой нагрузки в игре, он нужен для разработки новых скриптов с применением преобразования мировых 3D координат в наэкранные 2D координаты.
Пример возможного использования:
- при написании скрипта для покупок в магазине для отображения количества/цены товара прямо над этим товаром
- отображение названия интерьера над маркером
- создание своеобразного указателя на что-либо
Recommended files

Converting a skin to Gta Sa

Things To Do In San Andreas

American Soldier World War II

Loading screens in the style of GTA Vice City

Samp IRC Messenger + Mp3 Player Online


Smart ForTwo

Robo Fallout 3

Stalker in gta sa

STARGATE Horizon Of The Universe (1.5)

Farmer John Deere

Police Radio Mod v 0.1

Creating a Skin

Chainsaw from Fallout: New Vegas

Ghost Island Full Beta
