Commit Graph

51 Commits (master)

Author SHA1 Message Date
Karl F 9e44b09314 Happy new year!
HAPPY MERRY 2021!
2021-01-03 19:40:16 +01:00
GunChleoc 2a6956e35f Fix unused variables in release build 2020-12-04 18:47:05 -05:00
Webster Sheets 4d3fcb5b84 Deprecate matrix4x4d renderer methods, add better Viewport handling 2020-09-07 15:31:15 -04:00
Webster Sheets 0d1cca4cd1 Remove matrix4x4ftod and its ilk
Replace all instances of the manual conversion with an explicit conversion constructor.
2020-09-07 15:31:15 -04:00
Webster Sheets e83dd6c887 Matrix state must(did!) die
Remove all OpenGL 2.x like methods from the renderer API, now the matrix state
is the responsibility of the caller via MatrixTicket / StateTicket.

Still TODO is improving the viewport state tracking, although that should be
rather simple to fix.
2020-09-07 15:31:15 -04:00
Andrew Copland db6ffaf059
Merge pull request #4864 from dodomorandi/warnings-cleanup
Remove many warnings
2020-05-03 18:53:34 +01:00
Edoardo Morandi d9328f1e4a Fix UB related to allocation/free mismatch 2020-04-26 18:37:50 +02:00
Edoardo Morandi e6b9cd8d71 Remove many warnings 2020-04-25 01:31:42 +02:00
Webster Sheets 0c67f400c9 Clean up header dependencies
A lot of source files were depending on utils.h being included by other headers
Cleaned up code that was depending on Input.h being included in Pi.h
2020-03-27 16:45:17 -04:00
Andrew Copland d29cdd1437 Add basic texture array support
Add TextureBuilder overloads for array textures
2020-03-13 14:06:37 -04:00
Karl F 436db08636 Happy new decade!
May you live long and prosper!
2020-01-01 10:47:46 +01:00
mike-f1 e6403fc1ad Decouple includes; Remove some unused variable; Fix an equation in Space.cpp 2019-10-20 11:19:45 +02:00
mike-f1 d3acb0497a Decouple 'AtmosphereParameters' from SystemBody, thus from graphics* and terrain* 2019-05-27 19:47:21 +02:00
mike-f1 2dd60be9be Decouple terrain and related file 2019-05-25 18:16:32 +02:00
mike-f1 75956b9fd0 Decouple includes of Sfx.* and trade dependency from Ship with dependency from ModelBody
Forward declare Space in Ship.h; Make things compiling again

Decouple WorldView.h; Some other decouple here and there

Decouple Renderer no more included in RenderState; Model not including directly its childs
2019-05-21 17:50:50 +02:00
mike-f1 f1a53cffd6 Remove some inludes from Pi and get things right in order to compile 2019-01-22 20:10:28 +01:00
Webster Sheets 5cdaefad6a Run clang-format over the entire code base.
Fix hidden header-inclusion-order dependency errors.
Update .clang-format for v7.0.1.
2019-01-05 17:09:05 -05:00
Karl F d2ab921b62 Happy New Year!
Awesome sauce (for next year):
find . -type f -exec sed -i 's/2008-2018 Pioneer Developers'/'2008-2019 Pioneer Developers/g' {} \;

closes #4507
2019-01-03 15:28:42 +01:00
Karl F 7225e9c723 Happy New Year!
Ten years in the making now, but how can we improve upon perfection
for ten more years?
2018-01-01 21:22:12 +01:00
Andrew Copland 8cb1555f67 Eliminate the evil trailing whitespace 2017-03-05 13:15:55 +00:00
Andrew Copland 74d50958fe MERRY HAPPY 2017 2017-01-04 15:11:15 +00:00
Andrew Copland 5ad292e981 Use a function to access the s_patchFaces to silence a gcc warning 2016-09-24 11:29:20 +01:00
Andrew Copland cb5c09bfe6 Avoid some reordering and casting warnings from gcc 2016-09-03 20:38:14 +01:00
Andrew Copland 24529fb4d6 Group [cpu,gpu,octaves] together in the config file. Rename/case the TEXTURE_SIZE_SMALL 2016-08-21 13:27:48 +01:00
Andrew Copland 1e04aba1e8 Vary gas giant texture size depending on planet detail, control octaves from config too 2016-08-20 18:45:11 +01:00
Andrew Copland da377b8920 Vary the delay for each gas giant generating it's textures. 2016-08-20 15:09:01 +01:00
Andrew Copland 59bde65198 Scope the small texture generation. 2016-06-26 20:24:30 +01:00
Andrew Copland cf32ec9153 Remove "DisableEclipse" since it now works, add new "AMD_MESA_HACKS". 2016-06-25 17:09:05 +01:00
Andrew Copland cd2dff7b1d configure the GasGiant generation from an ini file. 2016-06-11 21:39:03 +01:00
Andrew Copland aadbfc4b54 HueShift the colours of non-Sol Gas/Ice Giants to add more variety. 2016-06-11 17:02:46 +01:00
Andrew Copland d193baa757 GPU jobs for generating gas giant textures. 2016-06-11 15:41:30 +01:00
Andrew Copland e719969123 Fix editing the gas giants in ObjectViewer editor mode 2016-04-06 22:09:15 +01:00
Andrew Copland c0c111ed5e Use Sphere3D to render the atmosphere instead of constantly updating tiny VertexBuffers. Pass material as ref pointer. 2016-02-21 12:29:39 +00:00
Andrew Copland fea5ac26b2 MERRY HAPPY 2016 2016-01-29 11:31:54 +00:00
Andrew Copland 4ac50e26ea Merge pull request #3585 from fluffyfreak/indicies-32bit
Convert geometry to use 32-bit indices
2016-01-16 17:16:58 +00:00
Andrew Copland 960fc0c380 TextureDescriptor usage updated to fix off-by-one initialisation problems caused by anisotropic filtering feature. 2016-01-16 14:03:25 +00:00
Andrew Copland 2b8f8fa336 Convert geometry to use 32-bit indices 2016-01-09 21:32:37 +00:00
Andrew Copland 3622654554 Eliminate the scaling of planets since we're using a logarithmic z-buffer for rendering. 2015-07-26 21:01:54 +01:00
Andrew Copland c03d273940 Add patch tracking to the render stats. Will remove duplicates from Pi namespace soon. 2015-03-22 00:07:47 +00:00
Andrew Copland e4dac929db Gather some rendering related stats per-frame. 2015-03-21 23:18:39 +00:00
Robert Norris 9f95339a9d MERRY HAPPY 2014-12-31 23:05:37 +11:00
Andrew Copland 01ddc5b940 Added a simple caching mechanism for terrain index buffer detail levels.
Rewrite some of the access code and make some of GeoPatchContext private with accessors.
2014-09-17 08:55:29 +01:00
Andrew Copland dd739e8d5e Calculate the maximum depth that we should go to in the quad-tree.
Alter the spread of the detail level range from 7<>55 to 9<>129.
Record the number of patches we're drawing per-frame.
2014-09-16 20:30:03 +01:00
Lars W. (lwho) 3b8f245518 Fix some -pedantic warnings in non-contrib code. 2014-04-25 17:41:07 +02:00
Lars W. (lwho) 3df75f0fb1 Extract JobQueue interface and change the former JobQueue to AsyncJobQueue. 2014-04-25 17:24:18 +02:00
Andrew Copland ff4616f854 As the other improvements have highlighted it seems we might need some more profile logging in the GasGiant code. 2014-04-07 18:02:24 +01:00
lwho 417130a93a Fix signed/unsigned comparisons again. 2014-03-08 19:11:34 +01:00
Andrew Copland 48ff583b89 Create a small placeholder texture for the planet so there is something to see right from the start. 2014-03-08 17:17:05 +00:00
Andrew Copland 200ddb0a95 Change the default delay before generating the gas giant textures to 60 seconds instead of 5. 5 is ok on my hilariously-fast PC, not so much on others! 2014-03-07 19:30:28 +00:00
Andrew Copland 74ecde3b63 Bring some more functionality into the BaseSphere class, mostly static methods to take the implementation details out of Pi.cpp
Then delay generating the GasGiant textures until they're either visible or a reasonable period of tie has elapsed.
2014-03-06 22:31:06 +00:00