demostenes Posted November 27, 2017 Share Posted November 27, 2017 (edited) Is there any way how to share render settings between worlds in editor? Each time there is some change (manual tuning, system change, etc...), I have to manualy edit this in every .world (xml copy paste edit, or load and save render settings in editor). This is going now to dozens and in future to hundreds of edits. My idea is, that I have for example several types of render settings (interior, exterior...) and somehow "include" this in world file. And similar to material I can set, if such setting file is read only, or writable. Edited November 27, 2017 by demostenes Link to comment
alexander Posted November 28, 2017 Share Posted November 28, 2017 Hi, demostenes! You can save current render settings to a file (Render Settings window -> "Save" button in the bottom right corner). Then, in the init() function of your world scripts (UnigineScript), call engine.render.loadSettings("your_render_settings_file.render_settings"); This function will load and apply all changes from that file. The world scripts works both in the editor and in the application. Best regards, Alexander Link to comment
demostenes Posted November 29, 2017 Author Share Posted November 29, 2017 (edited) Thanks, this sounds promising. And what will happen after saving such world? It will be saved into external render settings file (this would be exactly what we need) or into render settings of .world file? Edited November 29, 2017 by demostenes Link to comment
silent Posted December 5, 2017 Share Posted December 5, 2017 Hi Jirka, Saving the .world will save the all rendering settings into the .world file. .settings file will be saved only if you are explicitly select Render Settings -> Save button. 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