Author Topic: Head-bobbing camera in cockpit view  (Read 2445 times)

0 Members and 1 Guest are viewing this topic.

Offline prometh

  • 24
Head-bobbing camera in cockpit view
The camera currently shakes when the ship is hit, etc... but what about sharp movements? I think the head should kinda bob

The only thing I'm not totally sure of is whether this would even happen in 0 gravity.

But, putting in such a feature would be great for a possible future addition of planetary missions

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Head-bobbing camera in cockpit view
Use TrackIR. Provide your own head movement.

That being said, something like that could probably be scripted in.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline prometh

  • 24
Re: Head-bobbing camera in cockpit view
Sure, TrackIR is good... but if the ship's been hit, even TrackIR should be forced into an "inaccurate mode". No one's head can move perfectly when their chair is shaking :)

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Head-bobbing camera in cockpit view
it could probibly be done with scripting. kinda have the view camera slew slightly in response to changes in velocity, rotation rate, impacts. it essentially boils down to "shake the camera". another thing to add to my cockpit scripts.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
Re: Head-bobbing camera in cockpit view
Sure, TrackIR is good... but if the ship's been hit, even TrackIR should be forced into an "inaccurate mode". No one's head can move perfectly when their chair is shaking :)

Call Swifty then and see if he'll do something like that. :P
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Head-bobbing camera in cockpit view
i dont think it should be a track-ir effect only. trackir is just a stand in for other view controls. camera has its own orientation and position, which is multiplied and added, respectively, to the view orientation and position. to do "wiggle cam" you need to compute an orientation matrix and position to represent the wiggle, then multiply and add it to the modified camera orientation and position. to simulate g forces you would need to compute angular and linear accelerations multiplied by some control scaler (to diminish/enhance the effect to make it look right). if theres an inpact, we add a distortion to those values. then we build a matrix and position (seriously why doesnt freespace use 4x4 matrices yet) which is multiplied and added to the camera orientation and position.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Head-bobbing camera in cockpit view
I don't think he's saying it should be TrackIR but it would be in a similar area of code probably, and would also have to work with TrackIR.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Head-bobbing camera in cockpit view
im not sure if youd want to apply the effect before or after view modifications. but yea it would probibly go into that part of the code, if done in c.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN