Up
  • Mods and files
    • All files
    • Exclusives
    • Author files
    • Best files of the week
    • Upload file
  • News
  • Cheats
  • Articles
  • Guides
  • EN
New comments
GTA 6 GTA 5 GTA San Andreas GTA 4 GTA Vice City GTA 3 Red Dead Redemption 2 Red Dead Redemption Other games Mod Development Miscellaneous
  • Mods and files
  • GTA San Andreas
  • Mods
  • Lua scripts
  • Converting World Coordinates to Screen Coordinates

Converting World Coordinates to Screen Coordinates

  • Converting World Coordinates to Screen Coordinates / GTA San Andreas
GTA San Andreas / Mods / Lua scripts
Author:
Vladimir_P
More details
Uploaded:
Vladimir_P Subscribe You are subscribed
Size:
2.59 Kb
Uploaded:
16 June 2017
Downloads:
259
Total downloads: 259
Unique downloads: 84
10 / 10
13 people rated the file
KINGMUFASO
ПавелЧерненко
Павел Черненко
Guest
stalsharik
GideonAW3
Suetset Boy
Vladimir_P
Chel555
LamaZic
Алексей Пучков
Izyadesign
TheInsaneKiller
No one has rated the file yet.
Download Download in Telegram Download in Discord
To favorites In favorites
  • 1497621245_xyz_draw_on_screen.zip
    Virus check from Virustotal: the file is safe (view report)
    Download (0.00 MB)
  • drive.google.com
    Download

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

The file name and description have been translated. Show original (RU)Show translation (EN)
Преобразование мировых координат в экранные

Этот скрипт является примером реализации отображения наэкранных объектов (спрайт текстур, текста, прямоугольников и т.д.) с привязкой к 3D координатам игрового мира.

Его предназначение в том, чтобы объяснить желающим принципы преобразования мировых 3D координат в наэкранные 2D координаты,

а также принцип получения размера наэкранного объекта, который зависит от расстояния между игроком и координатами, к которым привязана отрисовка объекта.

В данном примере взяты координаты чуть выше пикапа "$" на Гроув стрит.

Скрипт не несёт смысловой нагрузки в игре, он нужен для разработки новых скриптов с применением преобразования мировых 3D координат в наэкранные 2D координаты.

Пример возможного использования:

- при написании скрипта для покупок в магазине для отображения количества/цены товара прямо над этим товаром

- отображение названия интерьера над маркером

- создание своеобразного указателя на что-либо

Comments 2
© 2008- LibertyCity
Creator and developer: Evgenii Sokolov
Copying materials without the permission of the administration or the respective owners is strictly prohibited.
Contact us
Mobile version Desktop version
Mods and files News and articles Cheats and guides Users
Click here for advanced file search