dongju.jeong Posted December 23, 2020 Share Posted December 23, 2020 I making a wigsprite gauge bar. this is loading_screen_04 sample. How do I make this function for c++? "engin.loading_screen.render(~)" Link to comment
silent Posted December 23, 2020 Share Posted December 23, 2020 Check this (Unigine::LoadingScreen): https://developer.unigine.com/en/docs/2.13/api/library/engine/class.loadingscreen?rlang=cpp 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
dongju.jeong Posted January 7, 2021 Author Share Posted January 7, 2021 hi, Is there any function to control the rendering of widgetsprite? I'm trying to adjust to Width, but there's some problem when Width is zero or a small number. Link to comment
silent Posted January 11, 2021 Share Posted January 11, 2021 What do you mean by "some problem"? Can you show us a minimal reproduction code and video/screenshots of the current behavior? How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
dongju.jeong Posted January 12, 2021 Author Share Posted January 12, 2021 100% width is 282. 70% ( setWidth(0.7 * 282) ) 1% ( setWidth(0.01 * 282) ) 0% ( setWidth(0.0 * 282) ) maybe It seems to be the original size of the texture. I think I should use a different function than changing the width. Link to comment
silent Posted January 12, 2021 Share Posted January 12, 2021 I guess it would be better if you will prepare progress bar texture so it would be a gradient with 1px width and then multiply it by progress (2.82px = 1%). In case of 1% or 0% you can simply hide it to avoid visual artifacts. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
dongju.jeong Posted January 18, 2021 Author Share Posted January 18, 2021 When increasing the size, the edges are angled rather than smooth. Is there a way to soften the edges like the second gauge? Link to comment
silent Posted January 18, 2021 Share Posted January 18, 2021 Hm, maybe adding another 2 images with soft edges (in the beginning and in the end of progress line) will do the trick. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
dongju.jeong Posted January 18, 2021 Author Share Posted January 18, 2021 Ok, I'll try. thanks. Link to comment
Recommended Posts