OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: nominesine on 07 Jul 2009, 23:33:49
-
Has anyone figured out what command to use, in order to display images on the video screen found in ArmA2. I have dePbo'ed the campaign mission where I've seen it done, to no avail. I also suspected that a simple setTexture command would be enough, but failed to display any images in game. Maybe ArmA2 requires a new format for this. Does anyone know how the video screen works?
EDIT: I'm such an idiot. I just missed a back slash \ in the file path. setObjectTexture works perfectly with the video projector wall found under objects. It accepts the same paa-files that were used in Operation Flashpoint. TexView2 works perfectly for converting any image into a working in-game image.
-
There appears to be some problems with this in MP, and its not a locality issue, they simply don't like loading the JPG files over the network? :dunno:
-
setObjectTexture is local and has to run on every client.
-
To clarify... setObjectTexture can only load .paa-files to be seen in game. It cannot handle .jpg, though it will not result in any error messages if you try.
:no:
What I meant in my post above was that the aged warhorse known as texView2 (an image file converter) can still convert normal jpg's into working .paa files. Tested and working
:yes:
-
Not true.
I had this executed on clients only (not broadcasted, was run on init.sqf). Why it wasn't working may have been a host problem.
JPEG file formats do work with setObjectTexture, I had them coming up perfect and made a sky marquee with an alphabet folder of images. :good:
It just wouldn't work in multi - player, and it was local script that was launching correctly (it created the projectors locally) and they were seen, just not the texture change (by certain users, I confirmed one user seeing them, but did not work on rejoin...).
-
This obviously needs more testing. Anyway: Mine is working in MP. The textures are set in init.sqm and thus runs on all clients. I use .paa files. When I run the same script with .jpg files nothing shows (.jpg version only tested in editor).
EDIT: Removed [Solved] tag from subject
EDIT2: Can it be a lag problem in MP? It takes time to upload image files so that the texture can be applied to the surface, and .jpg's are considerably larger than .paa-files (more than twice the size at 72 dpi resolution). Just a thought.
-
My textures were also set in init.sqf, and appeared fine, perhaps this could be a GPU related matter? If it is only showing up on mine, then it could be for good reason why it may not have shown for others.
:dunno:
-
I just tested once again in a MP environment, to make sure everything works. It does :D
The objects are displayed on the video projector wall, and can be seen in game by all players. Serverside as well as remote clients. I intend to release the mission for Beta test within a week or so (one trigger needs finetuning).
Meanwhile you can look at some of the screen in the uTube promo video (http://www.youtube.com/watch?v=92avzAqKR-I) I recorded while testing the mission. The projected .paa-files are visible behind the breifing officer. Most of the these shots were taken during a MP game with Laggy, before I edited them to use them in the video.
I'll try to swap the .paa-texture for .jpgs during next weeks testing. Will se how the game handles them. Now I'm off to work...
;)
-
JPG are said to load way slower due the compression they have
and the engine needing to convert them on the flow.
-
Thanks for the confirmation kju. I suspected as much:
It takes time to upload image files so that the texture can be applied to the surface, and .jpg's are considerably larger than .paa-files (more than twice the size at 72 dpi resolution). Just a thought.