Re: Minimap creation
Posted: 03 Apr 2015, 21:04
@ aeonios:
Everything else is calculated from this (and map size, but this is read from the file automatically). Normal camera fov seems to be 45. Below around 10 shadows should be disabled (they tend to give artefacts).
In line 72-74 there is commented debug output code:
Might help to uncomment this (don't know why, but sometimes it ran than more stable for me with this output on).
@ gajop
Thanks a lot!
Will be a big help since I tend to learn better from examples.
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
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!

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
