Free Camera - Page 2

Free Camera

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

User avatar
TwiNHeaD
Posts: 7
Joined: 19 Jan 2009, 07:05

Re: Free Camera

Post by TwiNHeaD »

Definitely, the only viable camera mode for excellent gameplay.
I see only one problem - axes movements cannot be controlled simultaneously. So rotation axes' movements too in addendum. For "free camera" such constraints seem discrepant.
50% close to perfect Euklidos Geometry Camera Mode which has no known bugs or drawbacks for over 2000 yrs. I beg on my knees for being a programmer sometimes. Heil trepan, though!

BTW, I didn't find CameraControl lua widget all over the internet.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Re: Free Camera

Post by trepan »

My old SmoothScroll widget provided an example of how
you can use FreeCamera + Lua to control the camera
however you please. It looks like that widget is still in
svn/git (camera_smooth.lua).

P.S. The one caveat being that Spring does not support
'roll' (from yaw/pitch/roll), at least not while I was dev'ing it.
User avatar
TwiNHeaD
Posts: 7
Joined: 19 Jan 2009, 07:05

Re: Free Camera

Post by TwiNHeaD »

trepan wrote:My old SmoothScroll widget provided an example of how you can use FreeCamera + Lua to control the camera
however you please. It looks like that widget is still in
svn/git (camera_smooth.lua).
Soryy, dude, I'm quite newbie to Spring and the stuff, don't know the infrastructure of project (i.e. what Lua is/does and the similar) :oops: . As the cosmopolitian control freak the only thing I know exactly is that "FreeCamera" mode in version Spring 0.78.2.1 (weird hieroglyphic stuff omitted) is the closest to god camera mode ever existed on this crappy planet, (Descent not scored). I played many games or, better to say, inquired how controls organized there inside and never seem such potential, no flatter, dude. In fact, in universe there must exist only one superset "camera mode" that includes all controls for other "camera modes" behavior. I don't see obstacles why Spring could not be sticked into this all-in-one conception instead of using self-contradicting and redundant little ones, multiplying like rabbits. Unfortunately, I am not the dev myself to write down the needed script stuff immediately, as I see it in math, so I decided to write it down here, not in Notepad++ :? .
trepan wrote:(from yaw/pitch/roll)
Well let's better discuss FOV, X,Y,Z movement, axes rotation, acceleration rates and all mathstuff for any of these functions of input for clearance.
trepan wrote:A new camera mode has been added to SVN, free camera. Its primary control interface is the keyboard, and it really isn't intended to be used for gameplay (although it may be if the controls get improved, especially with respect to minimap view setting)...
I can defiantly disagree with you, Author, on such position :-) . It CAN and MUST be used, cause it's part of the gameplay itself.
I'd kindly like to point it out later, after deeper digging into control layout, if you indulge to find a keen ear.

On practical terms, I have not found camera_smooth.lua in my local Spring folders or Internet either. I have SmoothScroll on my list ingame widgets menu but it has nothing to do with FreeCamera mode. I would be very glad if someone helped me to grab a full control camera for later critique and fruitfull discussion.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Free Camera

Post by imbaczek »

smoothscroll widget is indeed camera_smooth_move.lua. check its insides for hints how to control camera state.
User avatar
TwiNHeaD
Posts: 7
Joined: 19 Jan 2009, 07:05

Re: Free Camera

Post by TwiNHeaD »

imbaczek wrote:smoothscroll widget is indeed camera_smooth_move.lua. check its insides for hints how to control camera state.
Well, repositioning the question: can "Free Style Camera" parameters can be controlled within this file? Namely, these controls are of interest:
imbaczek wrote:The main controls are the arrow keys, with the following modifiers:

ALT: side scrolling
CTRL: up/down tilting
SHIFT: up/down scrolling
META: speedup
Though, it seems we speak different language :| .
Post Reply

Return to “Engine”