Fixed camera position

Fixed camera position

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

TaShadan
Posts: 51
Joined: 28 Oct 2013, 14:00

Fixed camera position

Post by TaShadan »

Is it possible to have a fixed camera position (no zooming in and out) similar to OTA?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Fixed camera position

Post by Silentwings »

Afaik yes, you could intercept the commands the user gives and re-interpret them as you see fit i.e. discard all cam scroll in/out commands and block changing of cam mode. I think it won't be pretty though.

Why do you want to do this? 3d is cool!
TaShadan
Posts: 51
Joined: 28 Oct 2013, 14:00

Re: Fixed camera position

Post by TaShadan »

Iam a fan of oldschool rts and i dislike the zoom and icon wars similar to Supcom. I prefer the old OTA way. But if its not possible no problem.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Fixed camera position

Post by Silentwings »

You could unbind page up/down and buy a cheap mouse without a scroll wheel ;) Then it would seem like it it really was old times...
TaShadan
Posts: 51
Joined: 28 Oct 2013, 14:00

Re: Fixed camera position

Post by TaShadan »

rofl. no thx. I guess i have to play the old TA on gameranger again. Thx for the reply.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Fixed camera position

Post by smoth »

You can do it I have in the past
TaShadan
Posts: 51
Joined: 28 Oct 2013, 14:00

Re: Fixed camera position

Post by TaShadan »

Is it easy to modify?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Fixed camera position

Post by smoth »

It is. But I have it as part of a gadget
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Fixed camera position

Post by AF »

If you don't like zoom, why don't you just.. not use it? You can also change the distance at which units turn into radar blips, set it so high that it's unreachable
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Fixed camera position

Post by CarRepairer »

AF wrote:If you don't like zoom, why don't you just.. not use it? You can also change the distance at which units turn into radar blips, set it so high that it's unreachable
Board index » Content Development » Game Development <--

He wants to prevent OTHERS from using it.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Fixed camera position

Post by AF »

He hasn't said that, he's simply stated he dislikes strategic zoom and icon wars.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Fixed camera position

Post by Google_Frog »

When he says that in this subforum I think he means that he wants to block it for everyone.

It sounds like this could be done pretty easily. Lua has full control over the camera as far as I know and if there are problems it sounds reasonable that they would be fixed in the engine. But as a basic implementation you could unbind the controls with a gadget and force the camera back to the correct height if they try to circumvent it.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Fixed camera position

Post by Forboding Angel »

AF wrote:If you don't like zoom, why don't you just.. not use it? You can also change the distance at which units turn into radar blips, set it so high that it's unreachable
He's doing it for his own game, which is it's own project, and is intended to be played top down and at a set zoom level.

If you have trouble understanding this relatively simple concept, you might consider looking at SC and SC2. Two of the most played RTS games on the planet. Both have fixed cameras.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Fixed camera position

Post by smoth »

Image

I have had a gadget for this for like 5 years now. Can we stop the arguing.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Fixed camera position

Post by knorke »

so post it then?

/edit
see attachment
thanks to editors of http://springrts.com/wiki/Lua_camState :)
/edit2
says date = "Mar 2011, 2011", due to copypaste fail, was made now
Attachments
tp_retro_noZoomCam.lua
widget into luaui\widgets\
slight bug: when trying to zoom with mousewheel, camera scrolls a bit
(520 Bytes) Downloaded 29 times
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Fixed camera position

Post by smoth »

I thought I had the svn around here somewhere?

ODD

I don't think he wanted the code just to know if it could be done, that is why I didn't post the svn.

I'll put some links to my svn in my wiki profile.
*done* now I don't want to hear about how you lot cannot remember my svn.
luckywaldo7
Posts: 1398
Joined: 17 Sep 2008, 04:36

Re: Fixed camera position

Post by luckywaldo7 »

knorke wrote:so post it then?

/edit
see attachment
thanks to editors of http://springrts.com/wiki/Lua_camState :)
/edit2
says date = "Mar 2011, 2011", due to copypaste fail, was made now
+1 for making it a widget.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Fixed camera position

Post by smoth »

luckywaldo7 wrote:
knorke wrote:so post it then?

/edit
see attachment
thanks to editors of http://springrts.com/wiki/Lua_camState :)
/edit2
says date = "Mar 2011, 2011", due to copypaste fail, was made now
+1 for making it a widget.
-1 if you are going to have it as part of the game, there could be an unfair advantage/gamebreaking/visual breaking etc of unlocking the camera. that is why I have the camera stuff as a gadget.

try the halloween thing, you will find it is a bit more than just the cam lock to the gadget.
luckywaldo7
Posts: 1398
Joined: 17 Sep 2008, 04:36

Re: Fixed camera position

Post by luckywaldo7 »

'Part of the game' makes sense if there is something like shields being rendered in 2D, where zooming will mutilate the shield bitmap when it gets scaled on your screen. For anything normal/'vanilla' in spring with no crazy customizations, there shouldn't be any problem.

So of course the original starcraft was all 2D bitmaps, and zooming would have made no sense. For SC2 however, there is really no good reason it should not have better camera zoom.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Fixed camera position

Post by smoth »

at a higher zoom the amount rendered on screen is increased, this can mean that many people will not be able to handle rendering such a big battle going on. Thus people with better computers have a clear advantage.

Playing a game at a specified zoom level may be because of the decision to keep the art within a certain detail level and when you zoom out it becomes difficult to make out key shapes and elements of the art.

You can argue that it is bad design but to date, the only game that did zoom out well was ruse. Even then that was closer to a true strategy game than the hybrid that we have used since dune. I am not going to get into any sort of lengthy game development discussion but I FEEL if the game dev wants to lock your zoom level he should be able to. It is his design he has thought about it more than you have I am sure.
Post Reply

Return to “Game Development”