2025-07-18 15:38 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003291Spring engineLuapublic2012-10-06 20:51
Reporteruser744 
Assigned ToKloot 
PrioritynoneSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
Product Version91.0 
Target VersionFixed in Version91.0.1+git 
Summary0003291: Only "free style" camera allows to set FOV ingame, add it for all modes
Description"free style" camera mode is the only mode that has a .fov entry returned by Spring.GetCameraState()
Steps To ReproduceTry to change the FOV ("zoom") of camera like this:

local current_cam_state = Spring.GetCameraState()
current_cam_state.fov = some new value
Spring.SetCameraState(current_cam_state,0)

This works.
Here is a widget that allows to zoom in/out using the 8 and 2 keys on numpad (KP2 & KP8):

http://pastebin.com/GRc9cJPK

BUT it only works for the "free style" camera mode.
(CTRL + F5 to switch)
In the other modes, no .fov is returned by GetCameraState

The other cameras CAN have their fov changed, but only via editing springsettings.conf (OverheadFOV, FPSFOV etc)
Additional Informationhttp://www.dswp.de/old/wiki/lib/exe/fetch.php/tutorials:urban_terror:fov-and-gunsize.jpg
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0009245

Kloot (developer)

x
+Notes

-Issue History
Date Modified Username Field Change
2012-09-29 04:46 user744 New Issue
2012-10-06 20:51 Kloot Note Added: 0009245
2012-10-06 20:51 Kloot Status new => resolved
2012-10-06 20:51 Kloot Fixed in Version => 91.0.1+git
2012-10-06 20:51 Kloot Resolution open => fixed
2012-10-06 20:51 Kloot Assigned To => Kloot
+Issue History