Author Topic: cockpit shaking anomoly  (Read 4516 times)

0 Members and 1 Guest are viewing this topic.

Offline origin

  • 27
cockpit shaking anomoly
I have a user made ship that I have put a cockpit in, based on some great input from the board. :)  The problem is that when the mission first starts everything looks just fine but when I autopilot (with a cutscene and all that jazz) to a new waypoint the cockpit shakes, sort of like when the after burner is activated.  It continues to shake during the whole mission until I autopilot back to the starting point and then it stops! 

Has anyone seen this type of affect or know why this would happen?  I have run in the debug and get no errors.  I have the cockpit integral to the ship and am using the show ship flag.

Thanks

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: cockpit shaking anomoly
Please make a test mission that shows the effect using only retail assets (or, if that's impossible, a minimum of new assets), and post it at the SCP Mantis. A coder will be around to check it.
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 origin

  • 27
Re: cockpit shaking anomoly
Thanks for the reply!  I should have thought to do that - I can put a retail model in to the mission and see if the problem is the mission structure or model.  I will first try that and depending on the outcome I will see what I need to submit mantis.

Thanks again.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: cockpit shaking anomoly
I know this problem, it happens when player's ship is away from the mission's center (0,0,0) point.
It has to do with a way FS handles coordinates.

 

Offline origin

  • 27
Re: cockpit shaking anomoly
I know this problem, it happens when player's ship is away from the mission's center (0,0,0) point.
It has to do with a way FS handles coordinates.

Interesting (in a bad way) I will have to see what the maximum distance is I can be from the origin and still avoid the shaky stuff.   I am sure there is a creative way around this... hmmmm

 

Offline origin

  • 27
Re: cockpit shaking anomoly
The maximum distance you can go from the origin without the shaking becoming obvious is about 7500 meters - that is going to make some of my missions very difficult since I want to have asteroid fields for instance and I do not want them in sight of the starting point.  Well maybe I should go without cockpits for now :(

 
Re: cockpit shaking anomoly
Is this due to float point accurancy limitations?
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Woolie Wool

  • 211
  • Fire main batteries
Re: cockpit shaking anomoly
Have you tried Antipodes 6? I haven't noticed that problem in the new Antipodes build.
16:46   Quanto   ****, a mosquito somehow managed to bite the side of my palm
16:46   Quanto   it itches like hell
16:46   Woolie   !8ball does Quanto have malaria
16:46   BotenAnna   Woolie: The outlook is good.
16:47   Quanto   D:

"did they use anesthetic when they removed your sense of humor or did you have to weep and struggle like a tiny baby"
--General Battuta

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: cockpit shaking anomoly
Is this due to float point accurancy limitations?
Exactly, unfortunately this means it may not be easy to fix.

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: cockpit shaking anomoly
Is this due to float point accurancy limitations?

Is this due to float point accurancy limitations?
Exactly, unfortunately this means it may not be easy to fix.

How do you know this?
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 Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: cockpit shaking anomoly
I've talked about this on #SCP before and had once reported the same problem.

 

Offline origin

  • 27
Re: cockpit shaking anomoly
Have you tried Antipodes 6? I haven't noticed that problem in the new Antipodes build.

Thanks for the tip Woolie.  Indeed the cockpit is rock steady in that build, at any distance from the origin, as far as I can tell.

edited to add I have seen some problems with shaking again - but I don't have time right now to investigate so I am putting my previous exhuberance on hold for the time being.

edited a final time:  Yes the shaking still happens with antipode build - darn...
« Last Edit: October 09, 2010, 01:21:18 pm by origin »

 
Re: cockpit shaking anomoly
Is this due to float point accurancy limitations?

Is this due to float point accurancy limitations?
Exactly, unfortunately this means it may not be easy to fix.

How do you know this?


In Max, there's a setting for System Units which includes "Resulting Accuracy"  Since I know float point isn't always an exact number due to their nature I put one and one together and got 2.0000000001  :lol:
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: cockpit shaking anomoly
Does anybody know if the same thing happens to External Cockpit POF?

 

Offline origin

  • 27
Re: cockpit shaking anomoly
Does anybody know if the same thing happens to External Cockpit POF?

From my research into the problem the answer is yes.  Anytime the show ship flag is marked it seems the shaking occurs.

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: cockpit shaking anomoly
Err, show ship and the External Cockpit POF are quite different. External Cockpit POF is a model that is rendered separately from the ship model and is rendered at a constant coordinate in view space. Because the coordinates will always be constant, there shouldn't be any problems with that method. That's opposed to the world space method of show ship which would likely having the shaking problems due to floating point issues.

 

Offline origin

  • 27
Re: cockpit shaking anomoly
Err, show ship and the External Cockpit POF are quite different. External Cockpit POF is a model that is rendered separately from the ship model and is rendered at a constant coordinate in view space. Because the coordinates will always be constant, there shouldn't be any problems with that method. That's opposed to the world space method of show ship which would likely having the shaking problems due to floating point issues.

You are right of course that you do not have to (and should not) use the show ship flag when using the cockpit POF, however, unfortunately it still shakes if far from the origin.

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: cockpit shaking anomoly
This issue exists regardless of the use of show ship option. When far enough from the 0,0,0 you can see the shaking in external views. Shaking does not appear if you do not stray from a course that is parallel to the main axis in the game. And also it occasionally ends if you stop moving and turning. However moving and/or turning (orientation change) causes the shaking to reappear.

I have some ideas for the actual cause of the issue but nothing solid yet.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline origin

  • 27
Re: cockpit shaking anomoly
Thanks for looking into it :)

Edited to add, I did post this issue at mantis
« Last Edit: October 15, 2010, 08:05:34 pm by origin »

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: cockpit shaking anomoly
Yes the issue is now known... But best 'quickfix' for the problem appears to be limiting missions to happen within much smaller mission area than what is currently done. Any actual code fixes for the issue that i have in mind seem rather complicated and will take time to get done
Do not meddle in the affairs of coders for they are soggy and hard to light