Search results

  1. S

    Local horizon coordinate system

    Well, I figured them how to rotate camera view when I studied matrix rotations on Wikipedia and LearnOpenGL website I decided to try simple Z-axis and Y-axis rotation to rotate camera view (vessel frame). // rotation matrices for right-handed rule template <typename T> inline glm::dmat3...
  2. S

    Local horizon coordinate system

    Ok, I saw other L2H matrix in Vessel.cpp to convert local planet coords to local horizon. // rotation from planet local coords to local horizon L2H.Set (-slng, 0, clng, clat*clng, slat, clat*slng, -slat*clng, clat, -slat*slng); go.R.Set ( clng*slat...
  3. S

    Local horizon coordinate system

    Ok, now got it. Orbiter code does not have enough comments to trying to understand. \begin{matrix} \overrightarrow z &= \text{thrust vector} \\ \overrightarrow y &= \text{top} \\ \overrightarrow x &= \text{right wing}\\ \end{matrix} How about right-handed coordinate system for 3x3 matrix...
  4. S

    Local horizon coordinate system

    Well I tried that but displayed land left side instead of bottom side at (0, 0) coordinate. I tried reordering that doc explained about. // Set rotation matrix for local horizon frame // for right-handed rule (OpenGL) double clat = cos(go.lat), slat = sin(go.lat); double clng...
  5. S

    Local horizon coordinate system

    Ok, I tried < code ... /code > and it worked for me. Thanks!! I found typo in my code and corrected it by changed to clng from slng. It causes line drawing instead of picture during rendering. I will try that and see if it works. // Set rotation matrix for local horizon frame...
  6. S

    Local horizon coordinate system

    I was looking for local horizon reference frame in long time. I now found a paper about local horizon coordinates. Local Horizon Coordinates I now noticed that formula is very similar like local 2 horizon formula in Camera.cpp but uses right-handed rule instead. In orbiter code: |...
  7. S

    Building OpenOrbiter Documentation

    I have the same problem when I am trying to build documents on Visual Studio Code (on Linux). I installed full Tex-Live package. I am learning how to build documents from doxygen files, etc.
  8. S

    Linux playground

    Yeah. That is right. We have to use left-handed perspective to keep everything unchanged.
  9. S

    Linux playground

    Yes, that is right.
  10. S

    Linux playground

    I reviewed entire orbiter and OpenGL client source codes. I now learned that Orbiter uses left-handed rule for math because its original Direct3D interface uses left-handed rule as default. Physics uses right-handed rule. I googled some and now learned about left-hand and right-hand...
  11. S

    Linux playground

    One suggestion: There is Ajaja's SPICE for Orbiter module on GitHub so that this Orbiter can have full solar system with Pluto, etc. I got SPICE toolkit from NAIF website and you can compile SPICE into a shared library as spice.so. Ajaja's module can link spice.so for function calls like...
  12. S

    Celbody modules with no source code

    I have SPICE toolkit. I downloaded 176 GB stuffs from NAIF website through wget. Ajaja provides SPICE interface module on GitHub so that you need SPICE toolkit to compile. I recommend making documents for developers how to get SPICE toolkit and build them into spice.dll or spice.so. I...
  13. S

    Better Ephemerides, Rotation Models, and a Solution to X64 Builds

    Yeah. Astronauts will scream "Huston, we see planet teleport to other place!". I recommend larger ones for long space exploration. Thanks for providing Ajaja's Spice module on GitHub. I cloned it. I reviewed that and recommended making document about how to get SPICE toolkit from NAIF...
  14. S

    Linux playground

    Your video is not available. Update: Never mind. I have to go YouTube and was now able watch video.
  15. S

    Linux playground

    Yeah. Of course, we could see Orbiter on iOS and Android platforms soon. They need to compatible with OpenGL ES.
  16. S

    Linux playground

    So impressive! It does not work on MSYS2 so that I have to use WSL2 or stand-alone Ubuntu.
  17. S

    Wandering Earth

    Very interesting! Thanks for replies.
  18. S

    Wandering Earth

    I watched "Wandering Earth" on Netflix and "Wandering Earth 2" at cinema. Very interesting!! Scientists built giant thrusters on earth and move earth out of solar system for Alpha Centauri system before our sun is dying (expanding into giant). It looks impossible to me. Is that possible to...
  19. S

    Problem Cannot Download SSU v4.2

    Yeah. I have the same problem with SourceForge but now found SSV on GitHub and cloned it. They should not remove that but should mark them as public archive so that future developer can fork that and continue.
  20. S

    Linux playground

    OK, I got it and will look into zip file package. Yes, Martin did that. That is same code (sigma equations) from VSOP87 package. I recongized that additional code is used with Calculus formula. R = f(sum) = cos(term) for position V = f'(sum) = -sin(term) for velocity That is in...
Back
Top