Jump to content
Sign in to follow this  
drunken officer

RenderTarget Problems, cant change the zoom factor

Recommended Posts

Hello.

I've a problem with my car mirrors (Rendertargets)

Outside of the vehicle, all targets are black. When i'm in, i can see the mirror, but it looks like a big zoomfactor. I changed the FOV value, but nothing happends.

So what i did:

Resolution LOD and ViewCargo LOD:

LeftMirror named as rendertarget0, mapped with #(argb,256,512,1)r2t(rendertarget0,1.0)

rightMirrior named as renderatarget 1, mapped with #(argb,256,512,1)r2t(rendertarget1,1.0)

middleMirrior named as rendertarget2. mapped with #(argb,256,512,1)r2t(rendertarget2,1.0)

no RVMAT on it.

In my memory LOD, i create at the centre of each mirror a point. Copy and paste them an set them a bit way.

The points at the mirror i named them

Pip0_pos (left mirror), PIP1_POS (right mirror), PIP2_POS (middel mirror)

the other ones i named PIP0_dir, PIP1_dir, and PIP_dir

Config:

class RenderTargets /// class for all Picture-in-Picture
	{
		class LeftMirror
		{
			//renderTarget = "rendertarget0"; /// what texture is going to be used, it should be mapped in model like #(argb,256,512,1)r2t(rendertarget0,1.0)
			renderTarget = "rendertarget0";
			class CameraView1
			{
				pointPosition		= "PIP0_pos"; 	/// memory point of PiP origin
				pointDirection		= "PIP0_dir"; 	/// memory point of PiP direction
				renderQuality 		= 2;			/// what quality should the PiP be
				renderVisionMode 	= 0;			/// zero means standard vision
				fov 				= 1.2;			/// what is the angle of the PiP field of view
			}; 			
		};

		class RightMirror
		{

			renderTarget = "rendertarget1";
			class CameraView1
			{
				pointPosition		= "PIP1_pos"; 	
				pointDirection		= "PIP1_dir"; 	
				renderQuality 		= 2;			
				 renderVisionMode 	= 0;			
				 fov 				= 0.7;			
			}; 			
		};

		class MiddleMirror
		{

			renderTarget = "rendertarget2";
			class CameraView1
			{
				pointPosition		= "PIP2_pos"; 	
				pointDirection		= "PIP2_dir"; 	
				renderQuality 		= 2;			
				renderVisionMode 	= 0;			
				fov 				= 0.7;			
			}; 			
		};
};

What did i wrong, that i cant change the zoom and why is it outside the vehicle black?

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  

×