View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0003291 | Spring engine | Lua | public | 2012-09-29 04:46 | 2012-10-06 20:51 | ||||
Reporter | user744 | ||||||||
Assigned To | Kloot | ||||||||
Priority | none | Severity | feature | Reproducibility | N/A | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 91.0 | ||||||||
Target Version | Fixed in Version | 91.0.1+git | |||||||
Summary | 0003291: 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 Reproduce | Try 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 Information | http://www.dswp.de/old/wiki/lib/exe/fetch.php/tutorials:urban_terror:fov-and-gunsize.jpg | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2012-09-29 04:46 |
|
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 |