* * * Форумы на Наша-Life THREAD * * * -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- THREAD : vgui_movie_display как? Started at 25-09-2017 18:43 by KekC (CS) Visit at https://bbs.cs-source.ru/showthread.php?threadid=58631 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [Post 1] Author : KekC (CS) Date : 25-09-2017 18:43 Title : vgui_movie_display как? Как сделать воспроизведение *.bik файла на карте, используя [b]vgui_movie_display[/b] ? [url]https://developer.valvesoftware.com/wiki/Vgui_movie_display[/url] Карта для CS:GO. Есть [b]func_button[/b] OUTPUT: OnPressed kino_monitor_master Enable [b]vgui_movie_display[/b] name kino_monitor_master movie media/kino loop yes panel width 64 panel height 32 Файл kino.bik в папке media. В консоле ошибок нет, но и видео нет. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [Post 2] Author : KekC (CS) Date : 27-09-2017 06:53 Может кто-нибудь скинуть файл из Portal 2: instances/transitions/arrival_departure_transition_ents.vmf с текстурами. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [Post 3] Author : Alf-Life II Date : 27-09-2017 17:42 [url]http://dropmefiles.com/AmN7c[/url] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [Post 4] Author : KekC (CS) Date : 28-09-2017 17:34 Спасибо, но не стало яснее. Может в ксго bik-видео не работает, проверить бы как-нибудь... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [Post 5] Author : Sten Date : 28-09-2017 19:34 а должно работать? есть работающие примеры? я это к тому, что в вики четко указано, что это портал 2 фича. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [Post 6] Author : KekC (CS) Date : 28-09-2017 19:40 В fgd-файле CS:GO есть vgui_movie_display. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [Post 7] Author : Alf-Life II Date : 28-09-2017 22:54 В fgd-файлах что угодно может быть, это не значит что оно должно работать. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [Post 8] Author : KekC (CS) Date : 29-09-2017 19:42 Еще это: [url]https://github.com/MarkHC/CSGO-SDK-Example/blob/master/CSGO-SDK/game/client/vgui_movie_display.cpp[/url] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [Post 9] Author : KekC (CS) Date : 01-10-2017 14:24 Может кто-нибудь глянуть приложенный исходник с bik-файлом... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- [Post 10] Author : KekC (CS) Date : 03-10-2017 16:37 Вот еще: [url]http://steamcommunity.com/sharedfiles/filedetails/?id=668023096[/url] [quote] Elevator Videos You might be wondering how to implement these. It's easy really: you just need to use the vgui_movie_display entity, and set it to play a video when triggered (using the Enable input via a trigger_once). You can select the video by setting the "Movie Filename" keyvalue (check the VDC Wiki for a list of video files to use). Portal 2 video files use the Bink Video (.bik) file format and custom .biks cannot be embedded into any map for the workshop. For the round elevator rooms where you're surrounded by these videos, you'll need several of these entities, each with different U (horizontal) and V (vertical) minima and maxima. Because each entity is going to have a different set of U and V values, they have to be named separately (yes, each individual one — no grouping). To begin with, you'll need to first use the SetUseCustomUVs input on each vgui_movie_display via a logic_auto. Then you'll need to use use the SetUMax and SetVMax inputs and some logic_relays for organization. The background for every elevator video is simply a worldbrush textured with something like elevator/elevator_screen (or the broken variants) on the front face. Next, for each screen, the entity goes in the bottom left corner and 0.25 units off of the brush (otherwise there's that weird-looking "Z-fighting" effect). Finally, for each of the vgui_movie_displays, set the width and height to the width and height of each of your panels (this, thankfully, can be done in one step if your panels are all the same size). Although the entity is positioned where it is, this does not quite reflect the UV scale it uses. U=0 is all the way left whereas U=1 is all the way right, and V=0 is at the top whereas V=1 is at the bottom. Keep this in mind when rescaling each of the vgui_movie_displays for your video display. This same UV scale can also be used to rescale overlays (but there we use the keyvalues instead of inputs). In some of Valve's elevator rooms, the U values to split from are multiples of 1/23. The V values to split from are even simpler: 0.0, 0.5, and 1.0. Valve ultimately decided to write a script — video_splitter.nut (viewable in Notepad) — to handle the video splitting because of its complexity, and also to be able to conveniently create various effects for video splitting. This does not mean, however, that you need to know how to write a script to make elevator videos work. It's typical to create a trigger_once where the player starts to leave the elevator room to turn off the videos and some lights. This same trigger also opens the door to either the test chamber or the antechamber containing the test chamber sign. [/quote] Может кто-нибудь скинуть vtf и vmt от elevator/elevator_screen -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The messages has been download from Форумы на Наша-Life at https://bbs.cs-source.ru at 11.11.2024 10:01:42