FOV is set in line 23:aeonios wrote:Hm, BA produced slightly better results, but the camera was zoomed all the way in. It also ended up taking 10 screenshots, only one of them sort-of decent. How do you control the fov and such? I haven't been able to find any settings for it.
Code: Select all
local fov = 11.25 -- fov angle in degree
In line 72-74 there is commented debug output code:
Code: Select all
--for index,value in pairs(Spring.GetCameraState()) do
-- Spring.Echo("Camera State camStateLocal[\"" ..index .."\"]=" .. value)
--end
@ gajop
Thanks a lot! Will be a big help since I tend to learn better from examples.
Efficiency won't be a big problem / major goal at the beginning, since it's only used once to create the image and doesn't run in a real game.gajop wrote:It's also inefficient
Currently in chapter 6 of the book while framebuffer comes in chapter 10. RL, working on half finished maps and actually playing every now and then does not help to speed up my progress