XiaoShouzi Posted October 27, 2021 Share Posted October 27, 2021 How to display the image of OpenGL DLL in Unigine 3D scene, is there any implementation route or demo? Link to comment
silent Posted October 27, 2021 Share Posted October 27, 2021 liu.zhen There is a method exists that can convert GL texture to the UNIGINE texture called Texture::FromGL(). Please refer to this thread for more code examples: https://developer.unigine.com/forum/topic/6936-opengl-invalid-operation-error They might be slightly outdated, but the general idea is the same. Thanks! 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
XiaoShouzi Posted October 27, 2021 Author Share Posted October 27, 2021 Is there a Demo for drawing external OpenGL programs for Unigine 3D scenes? Link to comment
silent Posted October 27, 2021 Share Posted October 27, 2021 I'm afraid no. Please heck the sample code from the forum thread and adjust for your requirements. 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
XiaoShouzi Posted October 27, 2021 Author Share Posted October 27, 2021 There is a post talking about API (Render, RenderState or Texture classes), is there any reference? Link to comment
silent Posted October 27, 2021 Share Posted October 27, 2021 You can check basic C++ sample in SDK Browser to get a basic knowledge on Textures and Render classes usage: SDK Browser -> Samples -> C++ API -> Render The rest of the information you can always found in the online (or offline) documentation: RenderState: https://developer.unigine.com/en/docs/2.14.1/api/library/rendering/class.renderstate?rlang=cpp Render: https://developer.unigine.com/en/docs/2.14.1/api/library/rendering/class.render?rlang=cpp (the page can take some time to load, there are a lot of methods) Texture: https://developer.unigine.com/en/docs/2.14.1/api/library/rendering/class.texture?rlang=cpp# Thanks! 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
Recommended Posts