Commit Graph

3951 Commits (command-line-parser)

Author SHA1 Message Date
Hleb Valoshka cd32920fbd fix 2021-07-05 13:18:41 +04:00
Hleb Valoshka 5c55b17caa wip 2021-07-05 12:25:42 +04:00
Hleb Valoshka c4e426d70b wip 2021-07-05 11:37:17 +04:00
Hleb Valoshka 803afffce6 wip 2021-07-04 23:56:09 +04:00
Hleb Valoshka bfacc111a4 wip 2021-07-04 21:09:18 +04:00
Hleb Valoshka e78a178a16 [win32] Fix "codecs" combobox
The 3rd parameter is a position not a special id associated with the entry
2021-06-24 17:59:04 +03:00
Hleb Valoshka 4cc79c1349 Add support for ffmpeg 4.4 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
Hleb Valoshka 5cba3df157 Position label in front of star drawn as mesh
Closes: #1041
2021-06-09 14:15:05 +03: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
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
Levin Li d6270ecac2 i18n for star and dsos in code 2021-05-22 09:34:34 +08: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
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
Levin Li 631d109741 Support HiDPI on QT front end 2021-05-15 07:57:40 +08:00
Levin Li d79a4ac43b Sort DSO directories in extras directories 2021-05-11 16:28:13 +08:00
Hleb Valoshka e356f9339e Fix a few strings 2021-05-10 23:03:53 +03:00
Hleb Valoshka 4c09e9d77a [cmake] very simple implementation of target_link_directories 2021-05-10 19:47:15 +03:00
Levin Li bf10d8d6e1 Make theora and gtk usable on Mac 2021-05-09 15:10:51 +08:00
Hleb Valoshka c906f917eb [i18n] translate more strings 2021-05-08 13:13:37 +03:00