Jump to content
Sign in to follow this  
Woodstock21

intro cam FLIR?

Recommended Posts

I was looking thru the BIS wiki and stuff, but i didn't find anything. So i was just wondering if with the new IR look, if it is possible to use that as a cam effect for intro movies/cutscenes, much like how the NVG's are used currently

I did try CamuseIR true, and CamUSEFLIR true,and CamUseTWS all with no joy, so im assuming that it cannot be done, but hey who am i LOL, anyone else have any ideas?

Share this post


Link to post
Share on other sites

from the comref:

bool setCamUseTi mode index

Dont have an example for you now, but if you dePBO the zargabad.pbo and check out the intro.sqf script there, you will find how Gaia used the FLIR for the main menu bombing scene thingy.

Share this post


Link to post
Share on other sites

Wonderful Idea, i have done so and here is what i found and pretty much works

the the Description.ext addin

class RscText
{
type = 0;
IDC = -1;
style = 0x00 + 16 + 0x200 + 256;
LineSpacing = 1.000000;
h = 0.040000;
ColorBackground[] = {1,1,1,0.2};
ColorText[] = {0.1,0.1,0.1,1};
font = "BitStream";
SizeEx = 0.030000;
shadow = 0;
text = "";
};
#define thickness 0.002
#define color {1,1,1,1}

//==================================================================
//                  		TITLES
//==================================================================
class RscTitles
{
class RscDisplayUAV
{
	idd = -1;
	duration = 100000;
	fadein = 0;
	movingEnable = 0;
	enableSimulation = 0;
	enableDisplay = 0;
	class controls
	{
/*
		class BackgroundFilter: RscText
		{
			x = safezoneX;
			y = safezoneY;
			w = safezoneW;
			h = safezoneH;
			colorBackground[] = {1.0/2,0.9,0.4,0.1};
		};
*/
		//--- Grid
		class GV1: RscText
		{
			x = safezoneX + safezoneW * 0.1;
			y = safezoneY;
			w = 0.001 * safezoneH;
			h = safezoneH;
			colorBackground[] = {0,0,0,0.15};
		};
		//class GV2: GV1	{x = safezoneX + safezoneW * 0.2;};
		class GV3: GV1	{x = safezoneX + safezoneW * 0.3;};
		//class GV4: GV1	{x = safezoneX + safezoneW * 0.4;};
		class GV5: GV1	{x = safezoneX + safezoneW * 0.5;};
		//class GV6: GV1	{x = safezoneX + safezoneW * 0.6;};
		class GV7: GV1	{x = safezoneX + safezoneW * 0.7;};
		//class GV8: GV1	{x = safezoneX + safezoneW * 0.8;};
		class GV9: GV1	{x = safezoneX + safezoneW * 0.9;};


		class GH1: GV1
		{
			x = safezoneX;
			y = safezoneY + safezoneH * 0.1;
			w = safezoneW;
			h = 0.001 * safezoneH;
		};
		//class GH2: GH1	{y = safezoneY + safezoneH * 0.2;};
		class GH3: GH1	{y = safezoneY + safezoneH * 0.3;};
		//class GH4: GH1	{y = safezoneY + safezoneH * 0.4;};
		class GH5: GH1	{y = safezoneY + safezoneH * 0.5;};
		//class GH6: GH1	{y = safezoneY + safezoneH * 0.6;};
		class GH7: GH1	{y = safezoneY + safezoneH * 0.7;};
		//class GH8: GH1	{y = safezoneY + safezoneH * 0.8;};
		class GH9: GH1	{y = safezoneY + safezoneH * 0.9;};


		//--- Cross
		class cross1A: RscText
		{
			x = 0.45-0.05*2/4;
			y = 0.5;
			w = 0.05*3/4;
			h = thickness;
			text = "";
			colorBackground[] = color;
		};
		class cross1B: cross1A
		{
			x = 0.55-0.05*1/4;
			y = 0.5;
			w = 0.05*3/4;
			h = thickness;
		};
		class cross2A: cross1A
		{
			x = 0.5;
			y = 0.4;
			w = thickness*3/4;
			h = 0.05;
		};
		class cross2B: cross1A
		{
			x = 0.5;
			y = 0.55;
			w = thickness*3/4;
			h = 0.05;
		};
	};
};
};

In your intro/scene.sqs file addin

titlecut ["","BLACK IN",5]
playMusic "EP1_Track01";
_camera = "camera" camcreate [94136.16,-30488.03,-32033.00]
_camera cameraeffect ["internal", "back"]
cutrsc ["RscDisplayUAV","plain"];

_ppColor = ppEffectCreate ["ColorCorrections", 1999];
_ppColor ppEffectEnable true;
_ppColor ppEffectAdjust [1, 1, 0, [1, 1, 1, 0], [1, 1, 1, 0.0], [0.2, 0.2, 0.2, 0]];
_ppColor ppEffectCommit 0;
if (random 1 > 0.4) then {true SetCamUseTi (floor random 2);/*(floor random 2)*2*/};
//--- User input
visionMode = 0;
(finddisplay 0) displayAddEventHandler ["keydown","
_key = _this select 1;
if (_key in (actionkeys 'nightvision')) then {
	visionMode = visionMode + 1;
	_vision = visionMode % 3;
	switch (_vision) do {
		case 0: {
			false SetCamUseTi 0;
		};
		case 1: {
			true SetCamUseTi 0;
		};
		case 2: {
			true SetCamUseTi 1;
		};
	};
};
"];

and there you have it FLIR cam effect, only thing that i couldn't get to work is on the vid for zargabad you can press "N" key and it changes the FLIR mode, and i cannot seem to get it to work for me. It would be nice or atleast if some scripter has the ability to figure out how to just change the modes because by default it shows the units as black and the ground white, instead of the other way around which i prefer to see/use. Now i tried to change the visionmode=0 to like 1 or 2 or 3 but it didn't change anything, and i really don't understand the scripting language, i get the point that under where it says user input it has all that stuff about pressing the N key to change the modes, but with that inplace it stil doesn't do anything when i preview the scene in the editor, or in MP or SP

Edited by Woodstock21

Share this post


Link to post
Share on other sites

your script should be saved as .sqf, and it is important to use the ; at the end of each command. User input will be ignored in intro scripts, so you would have to play the scene "in-mission".

titlecut ["","BLACK IN",5];

playMusic "EP1_Track01";

_camera = "camera" camcreate [94136.16,-30488.03,-32033.00];

_camera cameraeffect ["internal", "back"];

cutrsc ["RscDisplayUAV","plain"];

true SetCamUseTi 1;

_ppColor = ppEffectCreate ["ColorCorrections", 1999];

_ppColor ppEffectEnable true;

_ppColor ppEffectAdjust [1, 1, 0, [1, 1, 1, 0], [1, 1, 1, 0.0], [0.2, 0.2, 0.2, 0]];

_ppColor ppEffectCommit 0;

EDIT: and to mention:

true SetCamUseTi 1;

The 0 or 1 or 2 or 3 will switch between black hot, white hot, red/white, green/white. Play around with it some, im on vacation and im on my GF's laptop so i cant test at the moment.

Edited by Jelliz

Share this post


Link to post
Share on other sites

ya iwas playing them in the mission portion of the file, i will try out the setcam thingy and see what happens, i don't really want them to be able to toggle the settings, i just wanted the different apature to be set

EDIT -Tested it and well Ahh perfect thanks

0 = White Hot

1 = Black Hot

2 = Light Green Hot / Darker Green cold

3 = Black Hot / Darker Green cold

4 = Light Red Hot /Darker Red Cold

5 = Black Hot / Darker Red Cold

6 = White Hot . Darker Red Col

7 = Thermal (Shade of Red and Green, Bodys are white)

Edited by Woodstock21

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×