Camera control

Camera control

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Camera control

Post by Das Bruce »

smoth wrote:I cannot control that in spring.
I consider this a bug.
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: smoth's junk.

Post by Funkencool »

Wouldn't that be controllable through lua if someone was so inclined? personally I love the freedom of camera control, and dislike (for the most part) games that take it away
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: smoth's junk.

Post by smoth »

Funkencool wrote:Wouldn't that be controllable through lua if someone was so inclined? personally I love the freedom of camera control, and dislike (for the most part) games that take it away
They can just get around it. I don't want to lock the camera too much but I would like some control of it's zoom level and location
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: smoth's junk.

Post by Das Bruce »

Funkencool wrote:personally I love the freedom of camera control, and dislike (for the most part) games that take it away
I agree that a lot of games are way too restrictive in terms of zoom ranges and viewing angles but I feel it's important to be able to pick the way you want the camera to work for your game.

The player sees your game entirely through the camera (bear with me), the way it behaves gives a structure for how the game is experienced. Limiting the zoom and even increased granularity in the zoom allows more creative control over the art. Currently you can smoothly zoom from the millielmo to all of the world which means game devs have to make their units look good and be informative at a wide variety or ranges. If you, for example, limited the zoom to smooth between close and medium then a jump to full zoomed out you would be able to give a clearer distinction between the macro and micro elements of the game.

This is all very depended on the gameplay you're trying to elicit but I think the current camera free for all is to the detriment of games.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Camera control

Post by knorke »

Das Bruce wrote:
smoth wrote:I cannot control that in spring.
I consider this a bug.
that=?

edit: oh.
I would like some control of it's zoom level and location
zoom level: atm only via settings file (not changeable ingame)
location: lua
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Camera control

Post by FLOZi »

Thought there was a great deal of lua control over camera given that there's a 'complete camera control' widget, couldn't limits be put in to such a thing?

Still I guess specific callins/outs for controlling zoom etc would be helpful
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: smoth's junk.

Post by Funkencool »

Das Bruce wrote:
Funkencool wrote:personally I love the freedom of camera control, and dislike (for the most part) games that take it away
I agree that a lot of games are way too restrictive in terms of zoom ranges and viewing angles but I feel it's important to be able to pick the way you want the camera to work for your game.

The player sees your game entirely through the camera (bear with me), the way it behaves gives a structure for how the game is experienced. Limiting the zoom and even increased granularity in the zoom allows more creative control over the art. Currently you can smoothly zoom from the millielmo to all of the world which means game devs have to make their units look good and be informative at a wide variety or ranges. If you, for example, limited the zoom to smooth between close and medium then a jump to full zoomed out you would be able to give a clearer distinction between the macro and micro elements of the game.

This is all very depended on the gameplay you're trying to elicit but I think the current camera free for all is to the detriment of games.
Yea I do completely agree its an artistic part of the game and like smoth said I'm sure it would be easy enough to override, and I'm sure whoever does should be well aware of the consequences, e.g. units not looking as good outside of said range.
I think it would actually be pretty neat to see a little a time go into the camera, be that game/lua side or engine side (no idea if that's necessary). It would help it stand out in the crowd a little, for instance the total war series, which was awesome enough to be ported to spring but doesn't fit well for most spring games imo.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Camera control

Post by smoth »

FLOZi wrote:Thought there was a great deal of lua control over camera given that there's a 'complete camera control' widget, couldn't limits be put in to such a thing?

Still I guess specific callins/outs for controlling zoom etc would be helpful
The problem is a lua solution can be easily overridden.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Camera control

Post by knorke »

not if the lua is big enough
disable f11 menu/make your own
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Camera control

Post by smoth »

maybe my information is dated but I seem to recall a lot of hub-bub about how we cannot really lock down lua and how it is easily circumvented while still maintaining sync.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Camera control

Post by Das Bruce »

smoth wrote:The problem is a lua solution can be easily overridden.
Why is that such a big problem?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Camera control

Post by FLOZi »

Surely it can be an unsynced gadget?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Camera control

Post by smoth »

Das Bruce wrote:
smoth wrote:The problem is a lua solution can be easily overridden.
Why is that such a big problem?
one player can see more than others..
FLOZi wrote:Surely it can be an unsynced gadget?
Doesn't zerver want us to minimalize our usage of unsynced render stuff?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Camera control

Post by FLOZi »

Moving the camera != drawing.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Camera control

Post by zwzsg »

Enforce your camera limit with a gadget, and assume the user won't fight your Lua with his Lua. It's a perfectly reasonable assumption imo.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Camera control

Post by knorke »

knorke wrote:zoom level: atm only via settings file (not changeable ingame)
ops, I was wrong.
While looking at specrun widget I noticed Spring.SetCameraStaet can have a .fov, at least for the "free camera" mode. (The other modes probally too but only tested that one)
Added changing fov via two keys and tada, zoomable camera.
Post Reply

Return to “Game Development”