![]() |
|
|||||||
| Addons A repository for Orbiter addons contributed by users. Developers & members may announce new releases here and discuss any Orbiter addon. |
![]() |
|
|
Thread Tools |
|
|
#16 |
|
Aperiodic traveller
![]() ![]() |
Quote:
Code:
case CS_FROZEN:
{
// Freezing not implemented yet, maybe just freeze the base
break;
}
|
|
|
|
|
|
#17 |
|
Crazy about real time sims
|
That piece of code is for freezing vehicles on Mars or any other planet when the focus is on some other planet like say the Moon. Thats because terrain generation is stopped for a planet thats not in focus. So I dont want to get wrong terrain data and try to apply it to a different planet etc etc.
Now the way I deal with time acceleration is this : say 10x acceleration, I do 10 times more physics iterations before sending the final results to Orbiter, so the eventual output is correct. For 100x, 100 times more physics iterations. Now I have capped this currently at 10 times since otherwise things may slow down a lot (it may not, haven't tried it yet) I cannot tell yet what adjustments I ll need to make for 100x + time accelerations. What I just tested right now was that as the time acceleration increases the collision mesh lags the DG by an increasing amount but this could be because I am not allowing Bullet to do higher that 10x iterations as of now. I can still nearly force the DG into the position that Bullet is giving me till 1000x acceleration. Beyond that I may need to use attachment points and remove the Orbiter engine's control completely. Then apply all thrusts through Bullet. But I haven't reached that stage yet. I am currently trying to figure out a general purpose collision mechanism for all default ships in Orbiter that's stable at 1x. If the DG is sitting then it stays sitting at 10000x. Bullet has support for continuous collision detection which needs to be turned on and may be a solution for high speed collisions. Haven't reached orbit yet, still working near the surface at normal speeds. Bullet wasn't designed for orbital speed collisions so may need to make some custom extensions there. We'll cross that bridge when we come to it. Probably sphere-sphere collision and loads of destruction should suffice . Even I can write such a routine.
Last edited by dumbo2007; 07-18-2012 at 06:27 PM. |
|
|
|
| Thanked by: |
|
|
#18 |
|
Aperiodic traveller
![]() ![]() |
So, basically you're still fighting the Orbiter physics engine?
What about freezing at landing? No reasonable amount of precision would make a vessel collide properly with proper terrain at 10000x or so - you'll have to freeze it somehow. 1x to 100x is rarely used in a space flight simulator. I would have considered this part of the problem a priority - if it can't be done, no point figuring out the rest. |
|
|
|
|
|
#19 |
|
Crazy about real time sims
|
Why would landing at 10000x be so important ? There is a lot of stuff that can be done in Orbiter that does not happen at 10000x.
|
|
|
|
|
|
#21 |
|
shoemaker without legs
![]() |
It seems to me the two of you are talking about two different problems. As far as I gather from dombo2007's post, he solved the freezing problem:
Quote:
dumbo2007 seems to think that you are talking about detecting the collision at high time acceleration, not about freezing vessels that already "collided", so to speak... Last edited by jedidia; 07-19-2012 at 09:08 AM. |
|
|
|
|
|
#22 |
|
Crazy about real time sims
|
Yeah thats right, if a vessel is landed then it will stay landed at high time accelerations. Bullet does not apply any forces on it or alter any state vectors that causes it to be shot into space.
For a vehicle moving across the terrain, I ignore time accelerations beyond 10x because bullet can handle upto 10x accelerations. Maybe more I haven't tried. Or I just increase the number of physics iterations. |
|
|
|
|
|
#23 |
|
Aperiodic traveller
![]() ![]() |
Quote:
The vessel is above the sphere, landed on the terrain, what makes it stay up? Attachment points? Extending touchdown points all the way to the surface? Something else? |
|
|
|
|
|
#24 |
|
Crazy about real time sims
|
Attachment points. I don't see any other way at the moment.
Last edited by dumbo2007; 07-19-2012 at 01:44 PM. |
|
|
|
|
|
#26 |
|
Beta Tester
![]() ![]() ![]() |
Hi Artlav,
Quote:
![]() Cheers Tschachim |
|
|
|
|
|
#27 |
|
Iron Hill Discovery Commander
![]() |
With regards to surface Physics, I was wondering if there is anything that addon devs could include in their vessel code to support Bullet-collisions or will that be generic? I dont mind putting in the extra time if it means I can help with getting Orbiter collision detection working
|
|
|
|
|
|
#28 |
|
Beta Tester
![]() ![]() |
Quote:
|
|
|
|
![]() |
|
| Thread Tools | |
|
|
|||||
| Quick Links | Need Help? |