Commit Graph

490 Commits (3f757998f45b052902211a6375a7dd529701cb5d)

Author SHA1 Message Date
Hleb Valoshka 3f757998f4 Draw ecliptic using glsl and common BO 2019-11-09 15:08:03 +03:00
Hleb Valoshka ae02fe2c38 Refactor selection pointer to use glsl and common BO 2019-11-09 15:08:03 +03:00
Hleb Valoshka 08907c5883 Tiny refactoring for simplify code 2019-11-09 15:08:03 +03:00
Hleb Valoshka 0d5e867219 Add Renderer::getAspectRatio() method 2019-11-09 15:08:03 +03:00
Hleb Valoshka cf945d7b6e Show Reference Points labels (Closes: #489) 2019-11-06 12:33:52 +03:00
Hleb Valoshka 89e1b9c441 Revert "Initialize marker representations in constructor"
...because colors can be changed using celx

This reverts commit 2090a883d4.
2019-11-04 13:09:12 +03:00
Hleb Valoshka 0af14d4ca8 Add LOD for planet rings 2019-11-01 12:12:04 +03:00
Hleb Valoshka 9e9541ce1b Fix markers rendering in multiview mode (Closes: #486) 2019-10-30 09:53:11 +03:00
SevenSpheres f1a6af1ab5 Change dwarf planet label color 2019-10-27 12:29:39 +03:00
Hleb Valoshka b565806a43 Chage dwarf planet orbit and Pluton-Charon orbit colors (Closes: #463) 2019-10-25 21:14:03 +03:00
Hleb Valoshka 8957e22472 Restore star orbits (Closes: #448)
Was broken by e73e366
2019-10-21 21:56:00 +03:00
Li Linfeng 7cff1728a3 fix warnings 2019-10-14 17:41:03 +08:00
Hleb Valoshka e3baaad767 Big common application code refactoring
* Allow to parse four element vectors
 * Allow colors defined in HTML notation (#rrggbbaa)
   in CEL scripts
 * Refactor Overlay::Rectangle to an independent class
 * Refactor CelestiaCore::OverlayImage to an independent class
 * Refactor CelestiaCore::View to an independent class
 * Rename Renderer::getScreenSize to getViewport
 * Add wrappers for scissors test and MSAA control
2019-10-09 15:55:14 +03:00
Hleb Valoshka 7fd01f38b0 Fix PVS Studio reported errors (Closes: #425) 2019-10-04 20:49:34 +03:00
Hleb Valoshka b469511ce3 Use bolometric luminosity to calculate comet's tail fading
Closes: #405
2019-09-20 00:01:19 +03:00
Li Linfeng c820617bb8 Use __APPLE__ in place of TARGET_OS_MAC 2019-08-20 10:19:42 +03:00
pirogronian c3567d820c Replace refcounted objects with std::shared_ptr 2019-08-16 12:45:57 +03:00
Hleb Valoshka 2090a883d4 Initialize marker representations in constructor 2019-08-16 09:49:01 +03:00
Hleb Valoshka 9fe2198ebb Fix glGetError() call 2019-08-02 14:34:25 +03:00
Hleb Valoshka 93c4a3b55c Add celmath::clamp(val, low, high) 2019-07-10 23:43:15 +03:00
fuse b11cd25553 Use vertex buffer when displaying orbits 2019-07-02 15:07:13 +03:00
Hleb Valoshka 30c686c028 Markers reimplemented using modern GL 2019-06-25 23:03:30 +03:00
Hleb Valoshka 852874b32f Add frame capture function to Renderer 2019-06-24 23:58:30 +03:00
Hleb Valoshka e9ef0f7e57 Port starfield to static shaders 2019-06-21 13:57:04 +03:00
Hleb Valoshka b09b48b1ab Disable GLContext usage as it does nothing now 2019-06-20 13:03:02 +03:00
Hleb Valoshka 0dbd19be9f Fix random abnormal termination when enabling RefAxes (Closes: #302) 2019-06-20 13:02:45 +03:00
Hleb Valoshka e255a34c7a Initialize some variables 2019-06-20 13:02:27 +03:00
Hleb Valoshka bb533bbbf7 Fix code guarded by #ifdef HDR 2019-06-17 18:19:56 +03:00
Hleb Valoshka f3a73dae71 Move math code into celmath namespace 2019-05-20 10:48:04 +03:00
Hleb Valoshka 440f34350c Remove celmath::log2 as it's defined in C++11 2019-05-20 10:48:04 +03:00
pirogronian 226f1ee793 Additional code hide behind OCTREE_DEBUG flag. 2019-05-02 13:57:42 +02:00
pirogronian b6f025abd3 Added debug octree stats, visible together with fps counter. 2019-05-02 13:57:42 +02:00
Hleb Valoshka 87963a6a42 Fix display of surface features and diffuse objects
Surface features will be shown only if their parent body is visible.

Diffuse objects are shown always
2019-05-02 13:26:55 +03:00
Hleb Valoshka 920a0c81b1 Remove unused and unneeded ringSystemSections option 2019-04-22 21:21:05 +03:00
Hleb Valoshka 81aa6f43bc Remove support for old vector math 2019-03-16 18:21:50 +03:00
Luke McCrone a363fc772b Issue #216: Allow changing colors for comet tails 2019-03-11 21:24:21 +03:00
pirogronian 55f67a8c44 Replace Greek letter before adding to database. 2019-02-28 20:23:09 +01:00
Hleb Valoshka c80a1520ac Use config.h on all platforms 2019-02-09 00:21:00 +03:00
Hleb Valoshka f4bb2aba39 Fix matrix order in multiplication
Old vector library is row based, while Eigen is column based by default,
so matrix order should be swapped.
2019-01-04 21:10:21 +03:00
Hleb Valoshka ea3988b6f3 Remove unused GLContext 2018-12-11 20:32:13 +03:00
Hleb Valoshka dbd7090117 Make ShaderManager private property of Renderer 2018-12-11 20:32:13 +03:00
Hleb Valoshka 7b8175eb5c [core,celx] Add ShowFadingOrbits renderer flag 2018-12-01 01:01:38 +03:00
Hleb Valoshka 0bd0b4e19c Pass SolarSystemMaxDistance to a renderer (Closes: #133) 2018-11-26 13:16:40 +03:00
Hleb Valoshka e75123bfd0 Remove hardcoded maximal distance from an observer to stars
Stars close that the distance are rendered as solar systems (e.g. with
their planets, orbits, Oort belts).
2018-11-26 13:16:40 +03:00
Hleb Valoshka 60c42c2588 Add new Renderer flags
* ShowDwarfPlanets
 * ShowMoons
 * ShowMinorMoons
 * ShowAsteroids
 * ShowComets
 * ShowSpacecrafts
 * ShowFadingOrbits (not used yet)
2018-11-16 21:25:16 +01:00
Hleb Valoshka e40b9549a7 Allow to disable and enable planet rings (Closes: #47) 2018-11-13 19:59:17 +01:00
Hleb Valoshka 2e654e451b Don't render corona for T5-T9 and Y class stars 2018-11-13 19:55:07 +01:00
Hleb Valoshka c2205c7f77 Implement AsterismList class with render() method 2018-11-09 11:14:24 +03:00
Hleb Valoshka ddd95f6911 Re-implement some annotations using addAnnotation 2018-11-08 23:43:13 +03:00
Hleb Valoshka e73e366828 Cleanup renderer, no functional changes 2018-11-08 23:43:13 +03:00