kevin.karsch Posted October 9, 2014 Posted October 9, 2014 Hello, Is there a way to use decals through the C++ API? The samples that use UnigineScript look perfect for my needs, but I need these to be loaded/generated dynamically. A little more context: I'm building an interface specifically for real-time decaling. I'd like to be able to load a model (e.g. fbx), load an image/video texture, and then interactively place the texture on the mesh. Thanks for your help! Kevin
silent Posted October 9, 2014 Posted October 9, 2014 Hi Kevin, Currently decals is not available through the C++ API. You can also load model, textures and add textures on mesh interactively using UnigineScript. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
kevin.karsch Posted October 9, 2014 Author Posted October 9, 2014 I see, thanks for the quick reply. Is there a preferred method for running UnigineScript code within a C++ application? Is this how the UnigineEditor works (i.e. calling UnigineScript code when C++ bindings are not available), and are there any performance issues with doing this? Also, are there plans to expand the C++ API to include decals and other things that are only available through scripting? It seems like this would improve application performance so that the script doesn't need to be interpreted multiple times at runtime. Is this correct?
silent Posted October 10, 2014 Posted October 10, 2014 Hi Kevin, Unigine Editor fully written on UnigineScript. Also, there is a method for calling UnigineScript functions from C++ application, please check this article: https://developer.unigine.com/en/docs/1.0/cpp_api/usage/callbacks Also, are there plans to expand the C++ API to include decals and other things that are only available through scripting? Sorry, I don't have such information right now. I will let you know when I will have an actual information from our devs. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
kevin.karsch Posted October 11, 2014 Author Posted October 11, 2014 Got it, thanks! I think it's safe to mark this as solved (although it would be great to hear about a roadmap, if any, for expanding the C++ API).
silent Posted October 14, 2014 Posted October 14, 2014 Decals will be availabe from C++ API in the next SDK update. 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