diff --git a/textures/logo.png b/images/logo.png similarity index 100% rename from textures/logo.png rename to images/logo.png diff --git a/locale/start_be.cel b/locale/start_be.cel index 8c6e49de..70ec4a08 100644 --- a/locale/start_be.cel +++ b/locale/start_be.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_bg.cel b/locale/start_bg.cel index e89263d8..0f48f950 100644 --- a/locale/start_bg.cel +++ b/locale/start_bg.cel @@ -23,6 +23,14 @@ # * #******************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_de.cel b/locale/start_de.cel index 83dad1a8..c9709c98 100644 --- a/locale/start_de.cel +++ b/locale/start_de.cel @@ -32,6 +32,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_es.cel b/locale/start_es.cel index b944533c..939837d9 100644 --- a/locale/start_es.cel +++ b/locale/start_es.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_fr.cel b/locale/start_fr.cel index 53e37611..f40b0fdb 100644 --- a/locale/start_fr.cel +++ b/locale/start_fr.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_gl.cel b/locale/start_gl.cel index 16b36537..7154e396 100644 --- a/locale/start_gl.cel +++ b/locale/start_gl.cel @@ -27,6 +27,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } @@ -325,4 +333,4 @@ # Fin do script... -} \ No newline at end of file +} diff --git a/locale/start_hu.cel b/locale/start_hu.cel index 9365d75d..12d41379 100644 --- a/locale/start_hu.cel +++ b/locale/start_hu.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_it.cel b/locale/start_it.cel index 70f113c6..096c182b 100644 --- a/locale/start_it.cel +++ b/locale/start_it.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_ja.cel b/locale/start_ja.cel index bf3700aa..7076a1c4 100644 --- a/locale/start_ja.cel +++ b/locale/start_ja.cel @@ -23,6 +23,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_ko.cel b/locale/start_ko.cel index 6b0ed972..d1ef907a 100644 --- a/locale/start_ko.cel +++ b/locale/start_ko.cel @@ -21,6 +21,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_lt.cel b/locale/start_lt.cel index 0a3eb9cd..1324380d 100644 --- a/locale/start_lt.cel +++ b/locale/start_lt.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_lv.cel b/locale/start_lv.cel index e12d5799..bcfb1fc3 100644 --- a/locale/start_lv.cel +++ b/locale/start_lv.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_nl.cel b/locale/start_nl.cel index ca0b52e5..a2ca69e5 100644 --- a/locale/start_nl.cel +++ b/locale/start_nl.cel @@ -30,6 +30,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_pl.cel b/locale/start_pl.cel index bef73430..22c8ac99 100644 --- a/locale/start_pl.cel +++ b/locale/start_pl.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_pt.cel b/locale/start_pt.cel index b87ead27..4adccf9b 100644 --- a/locale/start_pt.cel +++ b/locale/start_pt.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_pt_BR.cel b/locale/start_pt_BR.cel index b87ead27..4adccf9b 100644 --- a/locale/start_pt_BR.cel +++ b/locale/start_pt_BR.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_ru.cel b/locale/start_ru.cel index 5bdc0b81..1b5f34a3 100644 --- a/locale/start_ru.cel +++ b/locale/start_ru.cel @@ -32,6 +32,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_sk.cel b/locale/start_sk.cel index 6dd33ce9..d99d5607 100644 --- a/locale/start_sk.cel +++ b/locale/start_sk.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_sv.cel b/locale/start_sv.cel index c065db6e..d1bbe4c1 100644 --- a/locale/start_sv.cel +++ b/locale/start_sv.cel @@ -25,6 +25,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_uk.cel b/locale/start_uk.cel index 0da6ce8b..47bba457 100644 --- a/locale/start_uk.cel +++ b/locale/start_uk.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_zh_CN.cel b/locale/start_zh_CN.cel index 4688f883..b73da0a1 100644 --- a/locale/start_zh_CN.cel +++ b/locale/start_zh_CN.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/locale/start_zh_TW.cel b/locale/start_zh_TW.cel index f95b1262..b9861859 100644 --- a/locale/start_zh_TW.cel +++ b/locale/start_zh_TW.cel @@ -27,6 +27,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" } diff --git a/src/celestia/celestiacore.cpp b/src/celestia/celestiacore.cpp index 7979c2de..5174bef2 100644 --- a/src/celestia/celestiacore.cpp +++ b/src/celestia/celestiacore.cpp @@ -3602,45 +3602,6 @@ void CelestiaCore::renderOverlay() overlay->restorePos(); } - // Show logo at start - if (logoTexture != nullptr) - { - glEnable(GL_TEXTURE_2D); - if (currentTime < 5.0) - { - int xSize = (int) (logoTexture->getWidth() * 0.8f); - int ySize = (int) (logoTexture->getHeight() * 0.8f); - int left = (width - xSize) / 2; - int bottom = height / 2; - - float topAlpha, botAlpha; - if (currentTime < 4.0) - { - botAlpha = (float) clamp(currentTime / 1.0); - topAlpha = (float) clamp(currentTime / 4.0); - } - else - { - botAlpha = topAlpha = (float) (5.0 - currentTime); - } - - logoTexture->bind(); - vector c = { - {0.8f, 0.8f, 1.0f, botAlpha}, - {0.8f, 0.8f, 1.0f, botAlpha}, - {0.6f, 0.6f, 1.0f, topAlpha}, - {0.6f, 0.6f, 1.0f, topAlpha} - }; - Overlay::Rectangle r(left, bottom, xSize, ySize, c, Overlay::RectType::Textured); - overlay->rect(r); - } - else - { - delete logoTexture; - logoTexture = nullptr; - } - } - overlay->end(); setlocale(LC_NUMERIC, "C"); } @@ -4022,12 +3983,6 @@ bool CelestiaCore::initRenderer() } renderer->setFont(Renderer::FontLarge, titleFont); - - if (config->logoTextureFile != "") - { - logoTexture = LoadTextureFromFile(fs::path("textures") / config->logoTextureFile); - } - return true; } diff --git a/src/celestia/celestiacore.h b/src/celestia/celestiacore.h index d8ab98c5..3e519a3a 100644 --- a/src/celestia/celestiacore.h +++ b/src/celestia/celestiacore.h @@ -428,8 +428,6 @@ class CelestiaCore // : public Watchable MovieCapture* movieCapture{ nullptr }; bool recording{ false }; - Texture* logoTexture{ nullptr }; - Alerter* alerter{ nullptr }; std::vector watchers; CursorHandler* cursorHandler{ nullptr }; diff --git a/start.cel b/start.cel index 8f3316fb..8b13c109 100644 --- a/start.cel +++ b/start.cel @@ -24,6 +24,14 @@ # * #**************************************************************************** + overlay { + duration 5.0 + fadeafter 4.0 + colortop "#9999ff" + colorbottom "#ccccff" + filename "logo.png" + } + preloadtex { object "Sol/Earth" } preloadtex { object "Sol/Earth/Moon" }