Page 1 of 2

camera angle

Posted: Sun Nov 23, 2008 8:32 am
by kettlechip
The fact that the character is on the edge of the camera is kind of annoying, I keep having to change the camera angle so i can see what is ahead of me. and during boss battles this is especially tough because I'm fighting and half the time I don't even know where the boss is.
Suggestions, center the camera on the player more. OR
make the camera follow the players back much faster, (a couple steps and the camera is behind you, as opposed to right now where you have to walk 1/4 across a map)

Posted: Sun Nov 23, 2008 9:18 am
by Shade
Welcome to the forums.

I for one didn't experience any problems with the camera... Which version of Egoboo are you using? Did you zoom out fully (hold down the [-]-key on the numpad for about one to two seconds)? If you already zoomed out fully, you should actually see enough to keep bosses, enemies etc. in view even if you're not facing them directly.
The newest version (which is not released yet, but going to be released very soon I hope) always starts with maximum zoom-out without you pressing anything btw.

Posted: Sun Nov 23, 2008 10:42 am
by Zefz
Hopefully the new camera will solve your problems :) Egoboo 2.6.8 is according to my plans going to be released TODAY! So check out the forums for the new release update this evening!

Posted: Sun Nov 23, 2008 2:47 pm
by penguinflyer2222
Yay!!
Also, welcome and have a lightbulb. :idea:
I don't have problems with the camera either, zooming really helps.

Posted: Sun Nov 23, 2008 8:06 pm
by Agent of Dread
Welcome back Kettlechip!
I don't know what the problem is with the camera, but maybe that's because I reach it really easily to turn it.

Posted: Sun Nov 23, 2008 11:40 pm
by kettlechip
hmm maybe it will be ok if i just set the angle turney buttons closer. (I just beat the sand palace today) the scorpion boss was difficut to see using my gonne, so I stand by it! (and I was zoomed out to)

-edit- nevermind guys I'm diggin the new camera 2.6.8

Posted: Fri Jan 02, 2009 2:57 pm
by SimoneB
I don't feel very comfortable with the camera too.
I hacked a little at the source code and came up with a slight modification that, imho, is a good enhancement (but not a complete solution).
It's also very simple: I just increased the camera's maximum distance, and moved a little the character to the center. This way you can have a better 360° feeling of what's around you, even when you're walking straight towards the camera (which was its biggest fault, imho).
I think it still lacks something because it's very slowly turning, especially when you're walking towards it (I would expect the opposite to happen), and also because your direction changes as the camera moves, but oh well.

what I did is just change the last 6 lines in camera.h to those:

Code: Select all

#define MINZOOM                         800         // Camera distance
#define MAXZOOM                         700         //
#define MINZADD                         800         // Camera height
#define MAXZADD                         2500  //1000        //
#define MINUPDOWN                       (0.24f*PI)    // Camera updown angle
#define MAXUPDOWN                       (0.10f*PI)//(0.15f*PI) // (0.18f*PI)
example, before and after
ImageImage

Posted: Fri Jan 02, 2009 3:03 pm
by Cimeries
That actually looks better to me. Maybe we should allow this kind of modification from the options menu.

Posted: Sat Jan 03, 2009 12:34 am
by Zefz
I tried something similar before, but people complained and I reverted it. Maybe your tweaks are better than mine ;)

Posted: Sat Jan 03, 2009 12:40 am
by PurpleSquerkle
I like Chainsaw's idea of making it optional.
Maybe just a single toggling switch; "Camera style" A or B, or something like that.

At any rate, that does look quite a bit better in that screenshot. I assume you can still zoom in as much, though; right?

Posted: Sat Jan 03, 2009 12:44 am
by penguinflyer2222
I think it should be optional.

Posted: Sat Jan 03, 2009 12:44 am
by bgbirdsey
The idea is that the camera is supposed to restrict you to a rogue-like playing experience.

With a little source-code tweaking the camera can be made to do whatever we want. A question is what kind of camera do you all want to have?

Posted: Sat Jan 03, 2009 12:45 am
by PurpleSquerkle
His modification is not all that major, though; it basically just improves what we already have.
I like the way we do it now, but I do think it could be improved, and this may have done the trick.

Posted: Sat Jan 03, 2009 12:47 am
by Zefz
The camera mustn't zoom out too much allowing the player to see parts of the map he shouldn't. But it should also neither hinder the player from playing the game properly because of weird and illogical angles and movements.

Posted: Sat Jan 03, 2009 12:48 am
by PurpleSquerkle
Yeah, it shouldn't zoom out too much, I agree.
But I do think it could zoom out a bit more, and that it could also zoom in a bit more.