romeu.thiago Posted March 19, 2014 Posted March 19, 2014 Hi, I new developer in Unigine and How I Beginner construct a file to create Presets .... Example: How a change a Background Color Sky via Script ?
sebastianbah Posted March 20, 2014 Posted March 20, 2014 Hello, Please, check samples from Browser -> Samples & Demos ->Graphics samples -> Objects demo (for example sky_00 - sky_03 samples). Also, please, check docs. https://developer.unigine.com/en/docs/1.0/principles/objects/sky/ https://developer.unigine.com/en/docs/1.0/scripting/library/objects/class.objectsky https://developer.unigine.com/en/docs/1.0/content/materials/sky_base/ https://developer.unigine.com/en/docs/1.0/scripting/library/class.material
philipp.marcks Posted March 20, 2014 Posted March 20, 2014 but also doable via script!? - for us, this would also be of interest - changing whole environment for an asset with the click of a button,.. having an HDR in ambient slot - as well as in many shaders reflection cubemap and then via code changing the ambient map as well as the corresponding cubemaps within shaders, to reflect whatever environment is selected at that state? is there an example for such or is it tricky?
sebastianbah Posted March 21, 2014 Posted March 21, 2014 Hello philipp.marcks,If I understand you correctly, this article may help you. There you can find a set of functions for changing renderer settings.
ulf.schroeter Posted March 21, 2014 Posted March 21, 2014 I would assume that it should be easily possible by changing the material cube map texture(s) via Material::setImageTextureImage () script function https://developer.unigine.com/en/docs/1.0/scripting/library/class.material#setImageTextureImage_int_Image_int_int
ulf.schroeter Posted March 21, 2014 Posted March 21, 2014 Sample Unigine script code https://developer.unigine.com/forum/topic/1341-solved-per-instance-texture-update-bug/?p=8898
Recommended Posts