lightmap Posted August 19, 2020 Share Posted August 19, 2020 Hello. How to show in gui some runtime dynamic texture? Im getting new texture each frame by rendering scene from different angle to a viewport.renderTexture2D(), like this https://developer.unigine.com/en/docs/2.7.3/code/usage/mirrors_viewports_materials/index gui has WidgetSprite to show images https://developer.unigine.com/en/docs/2.12/api/library/gui/class.widgetsprite and WidgetSprite have setTexture(path_to_texture) <- why not texture id??? and setImage(img, dynamic) <- do I have to manualy call it each render frame and convert from texture to image? is there other ways? thanks Link to comment
lightmap Posted August 19, 2020 Author Share Posted August 19, 2020 searching forum i found https://developer.unigine.com/forum/topic/4638-implementation-coherentgt-gui-sample/ and sprite->setRender(my_texture); it works as I need. thanks Link to comment
Recommended Posts