Jump to content


Photo

Changing the Camera and Zoom


  • Please log in to reply
1 reply to this topic

#1 Kelathin

Kelathin
  • VIP (Petroglyph)
  • 45 posts
  • Division:Petrolution
  • Job:Staff

Posted 09 March 2008 - 06:03 AM

Now some of us are messing around modding and even with the 22% zoom UaW patch 2 brought, some of us want more! More as in Supcom zoom Levels.

Now What are we looking for? It's called the TACTICALCAMERAS.XML
<TacticalCameras>

	<!-- ==================================================================== -->
	<!-- MOUSE AND KEYBOARD VERSION! GAME CONTROLLER VERSION IS JUST BELOW... -->
	<!-- ==================================================================== -->

	<TacticalCamera Name="Land_Mode">

		<Pitch_Default>45</Pitch_Default>
		<Pitch_Min>45</Pitch_Min> 			
		<Pitch_Max>45</Pitch_Max> 				
		<Pitch_Per_Mouse_Unit>-1.5</Pitch_Per_Mouse_Unit>
		<Pitch_Per_Zoom_Unit>-30.0</Pitch_Per_Zoom_Unit>
		<Pitch_When_Zoomed_In>50.0</Pitch_When_Zoomed_In>
		<Pitch_Zoom_Begin_Fraction>0.1</Pitch_Zoom_Begin_Fraction>
		
		<Yaw_Default>0.0</Yaw_Default>
		<Yaw_Min>-1000.0</Yaw_Min>
		<Yaw_Max>1000.0</Yaw_Max>
		<Yaw_Per_Mouse_Unit>1.5</Yaw_Per_Mouse_Unit>
		
		<Fov_Default>35.0</Fov_Default>
		<Fov_Max>35.0</Fov_Max>
		<Fov_Min>35.0</Fov_Min>
		<Fov_Smooth_Time>0.05</Fov_Smooth_Time>
		<Fov_Per_Mouse_Unit>0</Fov_Per_Mouse_Unit>

		<!-- Using splines overrides these values -->

		<Distance_Default>550.0</Distance_Default> 
		<Distance_Max>700.0</Distance_Max>   
		<Distance_Min>250.0</Distance_Min>
		<Distance_Smooth_Time>0.21</Distance_Smooth_Time>
		<Distance_Per_Mouse_Unit>100.0</Distance_Per_Mouse_Unit>  <!-- 70 -->
		
		<!-- Land mode uses a spline for the distance and pitch -->

		<!-- AI modified the cam zoom / pitch per user requests -->

		<Use_Splines>yes</Use_Splines>
		<Pitch_Spline> 0,20, 0.5,40, 1.0,45 </Pitch_Spline>
		<Distance_Spline> 0.0, 300.0, 0.5, 525.0, 1.0, 700.0 </Distance_Spline> 
   		<Spline_Steps>20</Spline_Steps>
		
		<!-- Smoothness of terrain height following -->
		<Location_Follows_Terrain> 1 </Location_Follows_Terrain>  
		<Location_Height_Up_Smooth_Time> 0.07 </Location_Height_Up_Smooth_Time>			<!-- Note: Also being used by Game Controller unit sub-selection (switching between flyers and ground) -->
		<Location_Height_Down_Smooth_Time> 0.07 </Location_Height_Down_Smooth_Time>	<!-- Note: Also being used by Game Controller unit sub-selection (switching between flyers and ground) -->
		<Min_Height_Above_Terrain>20.0</Min_Height_Above_Terrain>

		<Near_Clip> 10.0 </Near_Clip>
		<Far_Clip> 8000.0 </Far_Clip>	
		
		<Object_Fade_Begin>1800.0f</Object_Fade_Begin>
		<Object_Fade_End>2250.0f</Object_Fade_End>
		
		<Side_Bounds_Buffer>0.0f</Side_Bounds_Buffer>
		<Top_Bounds_Buffer>-100.0f</Top_Bounds_Buffer>
		<Bottom_Bounds_Buffer>0.0f</Bottom_Bounds_Buffer>

	</TacticalCamera>  <!-- "Land_Mode" -->
That's the default code for it. Remember to use the top one, that says pc and mouse, there is another section for xbox.


<Distance_Max>550.0</Distance_Max>
This is for the max zoom distance, when you want a greater zoom, this is the tag you're looking for.

You'll want to shut down the spline override.
<Use_Splines>yes</Use_Splines>
to
<Use_Splines>no</Use_Splines>

UaW saves system resources when you zoom high enough that buildings fade out. However if you want to avoid this, you should set the following values higher than your maximum zoom, or adjust base when you want your ground objects to fade.
<Object_Fade_Begin>1000.0f</Object_Fade_Begin>
<Object_Fade_End>1200.0f</Object_Fade_End>

Finally this tag is what controls how fast you zoom in. You may want to adjust based on your scale.
<Distance_Per_Mouse_Unit> 100.0 </Distance_Per_Mouse_Unit>

This is a fairly easy thing to do. Let's see what you guys come up with.

Edited by Kelathin, 09 March 2008 - 06:08 AM.


#2 lycan

lycan

    title available

  • Banned
  • 553 posts
  • Projects:HP Mod
  •  Im just a guy around these forums

Posted 09 March 2008 - 10:30 AM

i will defintley try this out :wink_new: thanks




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users