Is it possible to disable the meta in the widget so that when you "push middle mouse button" it would in fact be the only time the hybrid camera is used?Regret wrote:Ask BrainDamage, he modified his version to do exactly that afaik.
Hybrid Overhead Camera (v4)
Moderator: Moderators
Re: Hybrid Overhead Camera (v4)
Re: Hybrid Overhead Camera (v4)
You mean being able to see through the terrain? Well, not only does it look screwy, but its sort of useless: You cant issue orders from down there.Regret wrote: I kinda like being able to see everything.
I sometimes switch to FPS camera to look around at the skybox or watch an incoming nuke. It would be nice to be able to do that without the camera going underground.
Anyway still a huge improvement, the camera is really great. Ill talk to braindamage.
Another bug though: If you click the mouse wheel then scroll it and release at the same time ('flick' it), the camera will sometimes spin wildly and continuously until you press MMB again. This is much easier to replicate if 'center_cursor_on_J_movement = false' since it only happens when the mouse isnt in the centre of the screen, but it still happens sometimes in any case.
Is there any way to unbind middle mouse button from the crosshair thing entirely? That'd some the problem. Cant find it in uikeys.
One more:
Spin the camera 180 around the y axis (so 'north' is 'south' and the sea on DSD would be at the top of the screen). Zoom right out. Now move the mouse around until you get the tooltip that tells you the elevation etc. Its where you would expect it to be if the camera were oriented normally. Worse, this is the area thats registered and land you can zoom in on: you can go waaaaaaaay off the map by zooming into this area. A minor nuisance but weird anyway.
Re: Hybrid Overhead Camera (v4)
Spring bug. Whine to devs about it, I already reported it.Saktoth wrote:Another bug though: If you click the mouse wheel then scroll it and release at the same time ('flick' it), the camera will sometimes spin wildly and continuously until you press MMB again. This is much easier to replicate if 'center_cursor_on_J_movement = false' since it only happens when the mouse isnt in the centre of the screen, but it still happens sometimes in any case.
Is there any way to unbind middle mouse button from the crosshair thing entirely? That'd some the problem. Cant find it in uikeys.
Are you using smooth scroll widget by any chance?Saktoth wrote:Spin the camera 180 around the y axis (so 'north' is 'south' and the sea on DSD would be at the top of the screen). Zoom right out. Now move the mouse around until you get the tooltip that tells you the elevation etc. Its where you would expect it to be if the camera were oriented normally. Worse, this is the area thats registered and land you can zoom in on: you can go waaaaaaaay off the map by zooming into this area. A minor nuisance but weird anyway.
-
- Posts: 1398
- Joined: 17 Sep 2008, 04:36
Re: Hybrid Overhead Camera (v4)
It also allows for com upskirt shots.Saktoth wrote:You mean being able to see through the terrain? Well, not only does it look screwy, but its sort of useless: You cant issue orders from down there.Regret wrote: I kinda like being able to see everything.

Re: Hybrid Overhead Camera (v4)
Nope. It seems to be caused by the relocation of the mouse which happens when you get the crosshair, and the widget taking this as mouse movement and flipping out.Are you using smooth scroll widget by any chance?
Re: Hybrid Overhead Camera (v4)
something is wrong with the zoom, the thing's position in the screen you're pointing change when zooming
and is there a way to reset the view ? (maybe it could snap to the default view when around the default values)
edit: btw this camera mode is pretty good and intuitive
and is there a way to reset the view ? (maybe it could snap to the default view when around the default values)
edit: btw this camera mode is pretty good and intuitive
Re: Hybrid Overhead Camera (v4)
I edited this part to enable the TAB key as the pan toggle.
Remember to
//bind Any+tab toggleoverview
or
unbind Any+tab toggleoverview
Its delicious.
Edit: using tab has the advantage pan does not "stick" like it does with mmb (spring bug).
Code: Select all
function widget:KeyPress(key,isRepeat)
if (track) then
if (key == 27) then --ESC
track = false
return true
end
end
if (key == 273) then --uparrow
edgemoveup = true
elseif (key == 274) then --downarrow
edgemovedown = true
elseif (key == 275) then --rightarrow
edgemoveright = true
elseif (key == 276) then --leftarrow
edgemoveleft = true
elseif (key == 9) then --TAB
track = true
end
end
function widget:KeyRelease(key)
if (key == 273) then --uparrow
edgemoveup = nil
elseif (key == 274) then --downarrow
edgemovedown = nil
elseif (key == 275) then --rightarrow
edgemoveright = nil
elseif (key == 276) then --leftarrow
edgemoveleft = nil
end
if (key == 9) then --TAB
track = false
end
end
//bind Any+tab toggleoverview
or
unbind Any+tab toggleoverview
Its delicious.
Edit: using tab has the advantage pan does not "stick" like it does with mmb (spring bug).
Last edited by mongus on 18 Nov 2009, 17:37, edited 1 time in total.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Hybrid Overhead Camera (v4)
I modified it to use ctrl+middle-drag. That way I can still use middle-drag for smoothscroll and spacebar is free.Saktoth wrote:Its a shame that space has to be used to tilt the camera though. What are the other options?
Still waiting for Regret to fix the zoom.
Re: Hybrid Overhead Camera (v4)
CarRepairer wrote:Still waiting for Regret to fix the zoom.
Re: Hybrid Overhead Camera (v4)
Does your modification still have the issues with middle drag stated above?CarRepairer wrote:I modified it to use ctrl+middle-drag. That way I can still use middle-drag for smoothscroll and spacebar is free.Saktoth wrote:Its a shame that space has to be used to tilt the camera though. What are the other options?
Still waiting for Regret to fix the zoom.
Re: Hybrid Overhead Camera (v4)
did you fix the zoom and add a way to reset the view ?
Re: Hybrid Overhead Camera (v4)
Ah the beauty of imperfection.Satirik wrote:did you fix the zoom and add a way to reset the view ?

- BrainDamage
- Lobby Developer
- Posts: 1164
- Joined: 25 Sep 2006, 13:56
Re: Hybrid Overhead Camera (v4)
this is my own version, cba to write changelog, cba to fix further stuff, i've did all the changes for myself, but it also does some of the stuff that people requested here 

- Attachments
-
- camera_hybridoverhead.lua
- (12.89 KiB) Downloaded 169 times
Re: Hybrid Overhead Camera (v4)
I tried out the vanilla version and Brain Damage's version, both have their strengths and weaknesses. BD's doesn't screw up along map edges (this may be associated with large terrain differences) but also behaves oddly with its zoom-to-cursor setting.
I'm in the process of making a bastard child halfbreed of these two, with some of my own changes, but I came across something I'm not sure how to fix. Certain things seem to get past the input filter that your widget uses... like... for example if I scroll the mouse wheel while also pushing down on it, the control somewhat reverts to the standard behavior. This can be fixed by pushing the middle mouse button usually.
Either of you guys know a permanent way of fixing this? It happens on both of your most recent versions without any of my modifications, it's not something I've done wrong. I'm reasonably certain it's not a widget conflict since only a handful of the ones I use have any effect beyond GUI enhancements.
I'm in the process of making a bastard child halfbreed of these two, with some of my own changes, but I came across something I'm not sure how to fix. Certain things seem to get past the input filter that your widget uses... like... for example if I scroll the mouse wheel while also pushing down on it, the control somewhat reverts to the standard behavior. This can be fixed by pushing the middle mouse button usually.
Either of you guys know a permanent way of fixing this? It happens on both of your most recent versions without any of my modifications, it's not something I've done wrong. I'm reasonably certain it's not a widget conflict since only a handful of the ones I use have any effect beyond GUI enhancements.
Re: Hybrid Overhead Camera (v4)
Spring engine bug.Caydr wrote:for example if I scroll the mouse wheel while also pushing down on it, the control somewhat reverts to the standard behavior. This can be fixed by pushing the middle mouse button usually.
Re: Hybrid Overhead Camera (v4)
No workaround possible?
Re: Hybrid Overhead Camera (v4)
If I knew about one then you wouldn't encounter it in the first place.Caydr wrote:No workaround possible?