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 »

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 33 times
Last edited by BrainDamage on 28 May 2013, 17:55, edited 7 times in total.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: hybrid overhead camera widget

Post by jK »

wow rotation really feels smooth :D

just wished alt feature would be inverted (by default scroll & only rot with alt)
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: hybrid overhead camera widget

Post by BrainDamage »

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
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: hybrid overhead camera widget

Post by jK »

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.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: hybrid overhead camera widget

Post by BrainDamage »

fixed the locking problem
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: hybrid overhead camera widget

Post by Floris »

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
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: hybrid overhead camera widget

Post by Forboding Angel »

In what ways is this better than COFC?
Post Reply

Return to “Lua Scripts”