Hleb Valoshka
b082d5f47f
Automatically convert to c++11 using clan-tidy
...
+ manual cleanups
2018-09-22 23:42:02 +03:00
Hleb Valoshka
5a5b06481f
Fix the most serious fixes found by coverity
...
… resource leaks, null pointers dereference
2018-09-22 23:41:58 +03:00
Hleb Valoshka
2ca6fde86c
Fix incorrect comparision
2018-09-22 23:41:57 +03:00
Hleb Valoshka
f34c7568c4
fix (some) compiler warnings
...
# Conflicts:
# src/celengine/observer.cpp
2018-09-22 23:41:57 +03:00
Hleb Valoshka
882e4ecf28
fix whitespaces and indents
...
trailing spaces are removed
tabs are replaced with 4 spaces
# Conflicts:
# src/celengine/cmdparser.cpp
# src/celengine/command.cpp
# src/celestia/celestiacore.cpp
# src/celestia/celestiacore.h
# src/celestia/qt/qtappwin.cpp
# src/celestia/qt/qtglwidget.cpp
# src/celestia/win32/winmain.cpp
2018-09-22 23:41:57 +03:00
Dmitry Brant
a25d26720c
Adapt code to Eigen 3.3
...
No functional changes, just adapting to API changes in Eigen.
2018-09-22 17:08:07 +03:00
Alexell
53b79871b0
Small fade fix
...
Fade constellation boundaries and constellations figures fix.
2018-09-22 17:08:06 +03:00
Alexell
c102af525c
Added configuration options
...
Added ReverseMouseWheel option (existing in source) in celestia.cfg
file, added new orbit rendering parameters.
2018-09-22 17:08:06 +03:00
Alexell
c4aa9e91cd
Minor default params changes.
...
Magnitude set to 8.0 as default. Show LocationLabels as default. Added
GitHub link to QT vesion.
2018-08-11 21:51:49 +03:00
Andrew Tribick
069a61b3af
Expanded preferences dialog box for Qt; added ability to turn off tinted illumination.
2012-05-23 21:28:37 +00:00
Andrew Tribick
207823b1d8
Patch to fix valgrind errors and gcc warnings from Daniel K.O.
...
Use #ifdef FOO instead of #if FOO
Unused function parameter names
Uninitialised member in FrameTree
Memory read after deallocation in ReferenceFrame
Unmatched new[]/delete[] in StarDatabase
Uninitialised temperature in StarDatabase
Uninitialised member of RenderListEntry: isOpaque
Fix for convoluted code in renderer
2012-04-26 19:50:22 +00:00
Chris Laurel
52b1dccdff
Fixed eclipse shadows on non-spherical planets (especially noticeable on
...
Saturn.) Fix affects the GLSL/OpenGL 2.0 render path only.
2010-04-23 22:14:44 +00:00
Chris Laurel
31a31d4e2f
- Moved cmod code into a separate module celmodel.
...
- Updated cmodtools to use celmodel.
- Improved 3ds file loader to support multiple materials per mesh.
2010-02-05 20:05:18 +00:00
Chris Laurel
bfa2f5fb09
- Use adaptive sampling to calculate cubic splines for drawing orbits and trajectories
...
- Added capability to show fading orbit 'trails' (disabled by default)
- Added more parameters to control the appearance of orbits
2010-01-28 02:24:14 +00:00
Chris Laurel
78b6a87d81
Eliminated OrthogonalUnitVector function because Eigen already offers
...
MatrixBase::unitOrthogonal to do the same thing.
2009-12-02 03:35:59 +00:00
Chris Laurel
5aa91fc3e5
Fixed the 'half-star' bug. Star spheres were not being rendered correctly
...
because of precision problems in a matrix inversion. Using a coordinate system
scaled so that star radius = 1 corrects the problem.
2009-11-11 17:09:20 +00:00
Chris Laurel
dcf9232c08
Refactored some shadowing/eclipse code in the renderer
...
- Enabled ring shadows on moons and other objects that aren't themselves surrounded by
ring systems.
- Use texture LOD bias to add blurriness to ring shadows (a result of the finite
size of the light source.)
- Calculate ring phase function per-pixel instead of per-vertex
- Implemented more realistic rendering of unlit side of ring systems
- Used new Eigen's NewStdVector for vectors containing fixed-sized vectorizable
objects.
2009-10-27 22:02:01 +00:00
Vincent Giangiulio
6ab2e08c41
Fixed bug with constellation labels : row vectors were used while Eigen uses column vectors
2009-10-16 16:33:35 +00:00
Chris Laurel
f177424e43
Improved preloadtexture script command so it loads model textures as well as the geometry.
2009-09-15 04:55:03 +00:00
Chris Laurel
f5d97be5c9
More GLEW-related cleanup.
...
- Added missing GLEW_STATIC define to VC++ project file
- Fixed Qt4 build to use GLEW
- Stripped out more references to old glext functions
- Fixed miscellaneous compiler warnings.
2009-08-15 00:48:42 +00:00
Chris Laurel
9d373fd041
Switched from using custom GL extension handling code to GLEW library.
2009-08-14 22:39:54 +00:00
Chris Laurel
78803c21e2
Text rendering fixes:
...
- Disabled multisampling when drawing the console. This should prevent text blurriness when running with antialiasing enabled (though it won't hep for supersampling modes)
- Reduce the number of calls to glTranslate() by tracking offset in software
2009-08-14 01:27:29 +00:00
Chris Laurel
f734856120
- Simplified eclipse shadow calculations in Renderer
...
- Fixed drawing of small objects in non-point sprite paths
2009-08-07 17:22:42 +00:00
Chris Laurel
6a1b6b5ae8
More Eigenization:
...
- Fixed build break in render.cpp
- Converted code in parseobject.cpp and celestiacore.cpp to use Eigen
- Cleaned out unused code
2009-08-07 16:50:58 +00:00
Chris Laurel
0aabecd6d9
Eigenized code to draw selection cursor.
2009-08-07 04:37:50 +00:00
Chris Laurel
c835491ddc
Rewrote orbit drawing code to fix multiple shortcomings. New orbit code uses adaptively subdivided cubic curves to draw orbits more accurately and without numerical precision artifacts. The orbit rewrite uses Eigen throughout (instead of the Celestia vector classes.)
2009-08-07 03:15:26 +00:00
Chris Laurel
afd7c78574
More Eigenization changes.
2009-08-06 00:41:24 +00:00
Chris Laurel
157b720854
Removed more code that used the old vector classes.
2009-08-05 21:13:29 +00:00
Chris Laurel
731d442daf
Removed references to old vector classes from vertexprog and fragmentprog
...
modules.
2009-08-05 20:19:28 +00:00
Chris Laurel
d1a7e7c3cb
Eigenized comet rendering code. Moved OrthogonalUnitVector function to geomutil.h, where it can be shared by multiple modules.
2009-07-25 23:18:32 +00:00
Chris Laurel
9cf68b5169
Eigenized parser and app core code.
2009-07-25 22:18:51 +00:00
Chris Laurel
e36646501b
Eigenized more DSO code.
2009-07-25 00:28:19 +00:00
Chris Laurel
abeb350f5b
Eigen conversion:
...
- Eigenized locations and some cube map code in texture.cpp
- Removed eigenport.h include from completely converted modules
2009-07-24 23:02:23 +00:00
Chris Laurel
dcfb117012
More Eigenization changes and fixes for UniversalCoord methods.
2009-07-24 06:59:54 +00:00
Chris Laurel
80d0e02d3b
Eigenized all rotation model code.
2009-07-23 21:09:12 +00:00
Chris Laurel
272a074544
Miscellaneous Eigenization; cleaned up obsolete functions in astro.cpp.
2009-07-23 03:51:42 +00:00
Chris Laurel
89d0ef130a
Eigenized all orbit and trajectory calculations.
2009-07-23 01:40:17 +00:00
Chris Laurel
9cca6b8c27
Eigenized Observer and Simulation classes. Fixed star picking bug.
2009-07-22 04:53:15 +00:00
Chris Laurel
479ef22e15
Eigenized reference mark, label, and marker code.
2009-07-21 04:04:26 +00:00
Chris Laurel
5a31a08df9
Eigenized galaxy rendering and more of the core renderer.
2009-07-21 03:14:29 +00:00
Chris Laurel
5de792f64a
Eigenized lighting and shadow calculations in renderer.
2009-07-18 05:50:56 +00:00
Chris Laurel
40fade9aac
Eigenized and cleaned up more of the renderer code.
2009-07-17 06:15:25 +00:00
Chris Laurel
5a241fe28c
Eigenized reference frames.
2009-07-17 02:36:11 +00:00
Chris Laurel
86d1808519
Eigenized Body and Selection classes; adapted dependent code. Removed some
...
miscellaneous compile warnings in other modules.
2009-07-16 23:37:48 +00:00
Chris Laurel
b42accebaf
More Eigenization of render.cpp. Changed a temporary variable in staroctree.cpp from double to float (back to the way it was in 1.6.0)
2009-07-16 20:18:48 +00:00
Chris Laurel
37a46a4eff
Eigenized portions of the renderer that draw stars and DSOs.
2009-07-16 05:32:55 +00:00
Chris Laurel
78202393aa
Eigenized star code.
2009-07-16 03:27:11 +00:00
Chris Laurel
7272945657
First round of Eigen-izing the core Celestia code.
2009-07-15 03:06:30 +00:00
Chris Laurel
39db90093f
Improve quality of point stars when multisample antialiasing is enabled.
2009-03-24 03:52:11 +00:00
Chris Laurel
a79d7ac479
Fixed placement of glare sprite when rendering stars in legacy render paths. Positioning is now consistent with OGL 2.0 path and avoids artifacts caused by glare geometry intersecting the star geometry.
2009-03-20 18:02:14 +00:00