hybrid overhead camera widget

hybrid overhead camera widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

hybrid overhead camera widget

Post by BrainDamage » 23 May 2013, 14:45

this is a retake on hybrid overhead camera, with muuuch better code and more functionality, while I am aware stuff like complete control camera exists, I wanted something simpler, currently supports:

zoom to mouse cursor
instant zoom in/out with alt
camera reset with alt & ctrl & backscroll
3d rotation
optional unbound to map view
configurable speeds for errything
holding ctrl brings out alternate functions, so if by default mid mouse pans the view, it'll make it rotate and viceversa
can make mid mouse button, edge move, keyboard arrows either pan or rotate by default

activate with ctrl f5 ingame ( free camera ), and make sure you don't use other camera widgets like smooth scroll
Attachments
camera_hybridoverhead2.lua
(13.35 KiB) Downloaded 30 times
Last edited by BrainDamage on 28 May 2013, 17:55, edited 7 times in total.
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: hybrid overhead camera widget

Post by jK » 25 May 2013, 21:16

wow rotation really feels smooth :D

just wished alt feature would be inverted (by default scroll & only rot with alt)
0 x

User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: hybrid overhead camera widget

Post by BrainDamage » 27 May 2013, 14:55

jK wrote:just wished alt feature would be inverted (by default scroll & only rot with alt)
i think you mean with ctrl, but yes, you can do it with:
/set HybridOverheadMidClickRotates 1
and reloading the widget

i also updated the widget fixing a bug in map edge clamping
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: hybrid overhead camera widget

Post by jK » 27 May 2013, 19:45

another problem:
When you rotate camera and terrain occludes the rotation center pos, the rotation takes the collision point as new rot center. It should save the rot center pos on start instead.
0 x

User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: hybrid overhead camera widget

Post by BrainDamage » 28 May 2013, 17:54

fixed the locking problem
0 x

User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

Re: hybrid overhead camera widget

Post by Floris » 28 May 2013, 18:02

when you tilt the camera... the edge detection limits your vision in one direction more than another.


It seems to work right but it just feels quircky
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14598
Joined: 17 Nov 2005, 02:43

Re: hybrid overhead camera widget

Post by Forboding Angel » 03 Jun 2013, 06:58

In what ways is this better than COFC?
0 x

Post Reply

Return to “Lua Scripts”