renato.semadeni Posted June 26, 2015 Posted June 26, 2015 Hi guys, I'm looking for a way to change the startup screen. Is there an easy approach to it. I think I've seen an article about it in the Docs, but can't find it anymore... Kind regards, Renato
silent Posted June 26, 2015 Posted June 26, 2015 Hi Renato, You can use Splash class for manipulating with the loading screens textures: https://developer.unigine.com/en/docs/1.0/cpp_api/reference/api_splash_class How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
renato.semadeni Posted June 26, 2015 Author Posted June 26, 2015 Hi Andrey Is it possible, if you could get me a fast start? I'm not getting any result... Kind regards, Renato
maxi Posted June 26, 2015 Posted June 26, 2015 Hi, Renato, You can try something like this: #include <UnigineEngine.h> #include <UnigineSplash.h> #include <UnigineApp.h> #include <UnigineLog.h> #include <UnigineConsole.h> #include <UnigineGame.h> /* */ int main(int argc,char *argv[]) { // init engine Unigine::EnginePtr engine(UNIGINE_VERSION,argc,argv); // create splash Unigine::Splash* splash = Unigine::Splash::get(); Unigine::App* app = Unigine::App::get(); float aspect = float(app->getWidth() / app->getHeight()); if (aspect < 1.5f) { splash->setSystem("splash_4x3.png", 16); splash->setWorld("splash_4x3.png", 16); } else { splash->setSystem("splash_16x9.png", 16); splash->setWorld("splash_16x9.png", 16); } // load the world Unigine::Console *console = Unigine::Console::get(); console->run("world_load splash_sample/splash_sample"); console->flush(); // main loop while(!engine->isDone()) { engine->update(); engine->render(); engine->swap(); } return 0; }
renato.semadeni Posted June 26, 2015 Author Posted June 26, 2015 Thanks a lot!!! You are awesome!! =)
Denis.Brechka Posted October 27, 2023 Posted October 27, 2023 Здравствуйте, я пытаюсь настроить boot screen по инструкции: Video Tutorial: How to Customize Boot Screen - Documentation - Unigine Developer Сделал текстуру, настроил config. Но эффекта псевдо-анимации нет, картинка всегда серая до момента появления Loading Screen. Версия движка 2.13. Можете подсказать в чем причина? default.boot default.png.meta
silent Posted October 30, 2023 Posted October 30, 2023 У меня цвет начинает меняться в пустом проекте, если выставить предзагрузку материалов и компиляцию шейдеров на старте (в default.boot - materials_loading_mode 2). Если инициализация проходит быстро, то сплэш не успевает менять свой цвет и остаётся в изначальном состоянии до исчезновения. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts