Commit Graph

6393 Commits (spacecruft)

Author SHA1 Message Date
Hleb Valoshka e20a07ae94 [cmake] Remove cotire completely 2021-06-24 17:59:04 +03:00
Hleb Valoshka 7b5adfffd3 [cmake] Remove workaround for static libintl
We need a more generic and simpler way to add additional dependencies
manually.
2021-06-24 17:59:04 +03:00
Hleb Valoshka d3cfa9f333 [cmake] Rename FindCspice to FindCSPICE 2021-06-24 17:59:04 +03:00
Hleb Valoshka 1c68ecdd8e [cmake] Update FindFFMPEG 2021-06-24 17:59:04 +03:00
Hleb Valoshka d394192999 Allow binary orbits without text source
Closes: #1088
2021-06-24 09:41:15 +03:00
Hleb Valoshka 03388d6d1d Add support for more JPL compatible ephemerides
Original patch was posted to https://celestia.space/forum/viewtopic.php?f=4&t=17282

====================================
Here comes the original description:
====================================
Before this update, the celestia code supports only JPL Big Endian
ephemerides DE406/DE405/DE200.

The big endian ephemeris DE406 comes in chunk of 300 years. If you
want to concatenate several pieces, using the software provided by JPL
(which does not handle endianess), you need a big endian platform. The
little endian DE406 comes in one piece of 6000 years, so you don't
even need to concatenate this one.

This commit adds the following:
- support for both endianess with autodetection of endianess
- support for all JPL DE ephemeris (from DE200) with autodetection of
record size.
- support for JPL DE compatible ephemeris such as the INPOP ephemeris
from Paris observatory (only the ephemeris files in the legacy JPL DE
compatible format and with timescale TDB, not the INPOP native format,
or the TCB files). http://www.imcce.fr/inpop/download10e.php

The method to autodetect ephemeris type, record size and endianess is
based on the CALCEPH software.
It would probably be better if possible to wrap around the CALCEPH
library (so that it would also support INPOP native format) but this
would be more work.

In addition to the ephemeris number and the start and end date, the
record size and endianess are also printed to the log (which you get
by pressing the tilde key).
If the ephemeris is an INPOP ephemeris, then the ephemeris number is
not printed to the log: it just says "INPOP".

It has been tested with:
- DE406 big endian
- DE406 little endian
- DE405 big endian
- DE423 little endian
- INPOP10A little endian
on Linux/x86_64.

However, no accurate regression testing has been performed. It has
only been tested visually that the planets orbits do not look wrong
and that the log is reporting the correct endianess, record size and
ephemeris name.
2021-06-16 15:38:51 +03:00
Hleb Valoshka d4c8cc8149 Star classes T5-Y should not have glow around them 2021-06-16 15:38:44 +03:00
Hleb Valoshka e1cec55218 Fix movie capture in GL ES environment 2021-06-16 14:15:32 +03:00
Hleb Valoshka bece12f6e4 Refactor Image class and image capture
* use GL_MESA_pack_invert to flip captured buffer
 * move enum PixelFormat to own file
 * use PixelFormat instead of GL formats in Image
 * provide captureImage() in CelestiaCore
 * use CelestiaCore methods to capture images in Qt UI
2021-06-16 14:15:32 +03:00
Levin Li c7018259a6 Remove alpha channel for DXT1 textures 2021-06-15 09:36:14 +08:00
Levin Li 5d1bcc2256 Remove make_unique compat 2021-06-13 15:50:22 +08:00
Levin Li fbc165c9d6 Drop C++11 and defaults to build with C++14 2021-06-13 15:50:22 +08:00
transifex-integration[bot] 42bb3103ed Translate /po/celestia.pot in bg
translation completed updated for the source file '/po/celestia.pot'
on the 'bg' language.
2021-06-12 18:55:05 +03:00
Hleb Valoshka 9ec482e24e Update installation instructions 2021-06-09 14:15:18 +03:00
Hleb Valoshka 5cba3df157 Position label in front of star drawn as mesh
Closes: #1041
2021-06-09 14:15:05 +03:00
Andrew Tribick 83a98802ee Add .vscode to .gitignore 2021-06-08 14:24:14 +08:00
Hleb Valoshka 098a383c78 Fix formatting in shader code 2021-06-07 23:10:04 +03:00
Hleb Valoshka 1c6219ed7a Don't calculate light half vector in vertex shader
1) It's already calculated in CelestiaGLProgram::initParameters()
2) This decreases number of varying floats by 3 per light, so for the case
listed in #593 we save 9 floats, so 8 are available.
2021-06-07 23:10:04 +03:00
Hleb Valoshka 51f8af2479 [win32] Add "select primary body" menu entry to win UI 2021-06-07 10:43:16 +03:00
Hleb Valoshka 45635522dc [win32] Add minor moons and dwarf planets into an object's context menu (Closes: #459) 2021-06-07 10:43:16 +03:00
Hleb Valoshka 0efba5944b [win32] Fix compilation without FFMPEG 2021-06-07 10:43:16 +03:00
Hleb Valoshka 378a431532 [qt] Use QFileDialog::getSaveFileName to select video file 2021-06-06 08:44:21 +03:00
Hleb Valoshka 076662df9f Fix warnings produced by MSVC 2021-06-06 08:44:21 +03:00
Hleb Valoshka 6e83aa9e04 Refactor movie capture to use FFMPEG only 2021-06-06 08:44:21 +03:00
Hleb Valoshka 8dab250f22 Use FFMpeg to capture video 2021-06-06 08:44:21 +03:00
Hleb Valoshka 5af65a58f3 [cmake] Remove cotire usage
* It doesn't work with cmake >= 3.12 and M$ VC++ (not a big issue)
* It doesn't work with extern "C" properly (blocks FFMPEG)
* It's unmaintained
2021-06-06 08:44:21 +03:00
Levin Li 04c6b40c50 Fix parsing URLs containing non ascii values 2021-06-05 15:57:06 +08:00
Hleb Valoshka c9f04184fa [tools] bump requests version to 2.25.1 to fix compatibility with urllib3 2021-06-03 11:33:20 +03:00
Hleb Valoshka 16a3f65ed0 try 2021-06-03 10:45:58 +03:00
Hleb Valoshka ecd99f948c [CI] Enable github actions for windows 2021-06-03 10:45:58 +03:00
Andrew Tribick 4c24b235b6 Remove duplicated assets 2021-06-03 10:45:44 +03:00
dependabot[bot] 79ccbe4f9b Bump urllib3 from 1.25.10 to 1.26.5 in /src/tools/celestia-gaia-stardb
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.25.10 to 1.26.5.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.25.10...1.26.5)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-03 15:01:22 +08:00
Levin Li 28bb2b52bd Fix compatibility with QT6 2021-05-31 15:13:02 +08:00
Levin Li cc3c6df49c Avoid showing duplicate names 2021-05-31 08:11:54 +08:00
Levin Li 009e09df63 Clear dateStrWidth on clearFonts 2021-05-27 16:34:33 +08:00
Levin Li fd2ba19d79 Add back support for URL version 4 2021-05-26 08:40:34 +08:00
Levin Li b4858b1e72 Use shared_ptr around TextureFont 2021-05-24 08:37:01 +08:00
Levin Li c79979a477 Query directly into localizedNameIndex for i18n completion 2021-05-24 08:36:34 +08:00
Andrew Tribick 3836d4cf23 [qt] Fix deprecation warnings 2021-05-23 16:25:38 +03:00
Levin Li f72f5993c6 Apply changes to frontends 2021-05-23 11:03:07 +08:00
Levin Li e3297b7775 Namespacing Marker* and Rect 2021-05-23 11:03:07 +08:00
Hleb Valoshka d1e62e9d23 [pkg] fix debian/control 2021-05-22 09:18:30 +03:00
Levin Li d6270ecac2 i18n for star and dsos in code 2021-05-22 09:34:34 +08:00
Hleb Valoshka c72c4aef51 [CI] Package some tools 2021-05-21 17:44:43 +03:00
Hleb Valoshka 88e2f742d7 Fix signed/unsigned mismatch in comparrisions 2021-05-21 17:44:43 +03:00
Hleb Valoshka 1c078b1186 Don't use deprecated methods 2021-05-21 17:44:43 +03:00
Hleb Valoshka 1e55054eb1 [pkg] add missing build-depdendency on cmake to debian/control 2021-05-21 17:44:43 +03:00
Levin Li 0fb2b4e7c0 Add an option to not search for localized version of a script 2021-05-17 08:00:40 +08:00
Levin Li 9d74b326a9 Implement skip_permission_denied and align behavior with std::filesystem 2021-05-17 08:00:17 +08:00
Levin Li 72367cc1b7 HiDPI mouse events for QT 2021-05-16 10:15:52 +08:00