Author Topic: Camera follows unit feature  (Read 1119 times)

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Camera follows unit feature
« on: 24 September 2012, 18:10:18 »
I have added an expimental feature where you can have the camera follow a specific unit (as if you were the unit looking into the world). Select the unit and press f4 and move the unit. To turn it off unselect all units and press f4 again.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Camera follows unit feature
« Reply #1 on: 26 September 2012, 09:08:08 »
I improved this feature a bit and the camera moves are much more smooth now.
A question I still have is how do we want this feature to work ?
Should one be able to look around in a 180 degree range ( up down left right ), or should the Camera be bound to the units movement/direction only ( like it is now ).
Where should the camera been positioned? ( currently a bit above the units given height ) .
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Camera follows unit feature
« Reply #2 on: 27 September 2012, 09:24:27 »
This is very nice now with smooth movements. I do indeed miss the feature to be able to at least look left and right - top and bottom would be nice, too, so you can better point at what to attack or actually see whom you're fighting. That's also why I'd move the camera a bit below the units height, after all that's where most units have their eyes currently.
Speaking of which, has anyone tried this with airborne units, yet?
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

treba

  • Guest
Re: Camera follows unit feature
« Reply #3 on: 27 September 2012, 10:04:06 »
it's actually a quite cool feature for rpg scenarios. would be cool if you could force it via lua. i remember some nice wc3 maps that where made that way

MoLAoS

  • Ornithopter
  • *****
  • Posts: 433
    • View Profile
Re: Camera follows unit feature
« Reply #4 on: 27 September 2012, 10:29:35 »
Is there a patch for this? It doesn't seem like it would be unable to work on a GAE based source since it isn't related to the primary differences between engines.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Camera follows unit feature
« Reply #5 on: 27 September 2012, 11:02:33 »
Based on our commit log the relevant changes should be in revisions 3589, 3597, 3605, 3606, 3608.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

MoLAoS

  • Ornithopter
  • *****
  • Posts: 433
    • View Profile
Re: Camera follows unit feature
« Reply #6 on: 27 September 2012, 11:05:54 »
kk thanks. MG seems to get a lot of changes to support media and ease of use that I don't really have the knowledge to work on.

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Camera follows unit feature
« Reply #7 on: 29 September 2012, 22:49:43 »
I like the smooth variation though i agree with tomreyn that you should be able to to freely rotate camera. Especially how quickly units turn around it can be quite jarring.

What about letting player orbit the camera around  in this mode instead of just keeping the units orentation?
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

 

anything