marinos.giannoukakis Posted August 31, 2016 Posted August 31, 2016 Hi can you please write a little code snippet on how to assign different or similar post processing (and not just that) materials in AppProjection viewports... a little example even to demonstrate the functionality,.... also is there a way to start the plugin from script....? including the parameters for width... similar to how i do with custom plugins.....? /(engine.addPlugin("plugin")/ ... and if so how can i set the parameters....?? all the best, m
silent Posted August 31, 2016 Posted August 31, 2016 Hi Marinos, After creating post material you need to set it in Rendering Settings inside editor in Rendering Settings -> Common -> Post field. I'm afraid it's not currently possible to set different post effects for different projections. In script you can use engine.projection methods when AppProjection plugin is loaded. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
marinos.giannoukakis Posted August 31, 2016 Author Posted August 31, 2016 this is urgent and i need a few more definitions, after i thank you for your answer.... keeping in mind that i am using for this unigine1 (2014-14-10 version) 1) clarify a bit more what do you mean by going to rendering settings etc. cause right now my post materials are NOT available and by the way i am inserting them as presets with setPostMaterial(). so in any case how can i make them available in appProjection, right now it only renders the default post materials.... mine are loaded to the project's .mat file, defined as post materials..... 2) is very urgent to sort out the following, loading AppProjection with the width parameter set to 3, right now modifying the launcher.bat is not doing this... so what i need is clear, detailed instructions on how to either modify the bat and work, or any other way of loading the project with these setting on... trying to use also shell commands but only works for the installed Unigine sdk, so instruction on how to start up my project from a shell could work too, cause then i could define the plugins and their parameters on the start up options. Another way that could work is telling me whether i could somehow use addPlugin() to load the plugin WITH the desired parameters (width 3). Right now it only loads the plugin but it does not give me three viewports just one with the AppProjection loaded..... so these are all my issues... to sum up, i need to be able to load my custom post processing effects in the AppProjection mode, and the other is to start up my project with the AppProjection and the desired parameters... (i tried also -extern_define on the launcher setting width=3 and that didn t work also.....) thank you....
marinos.giannoukakis Posted August 31, 2016 Author Posted August 31, 2016 i just realised also that i can't set my materials at the Render->common->post field, but i can at the Render->common->Render field, prob because they are in the project.mat and not at the sdk post.mat.....? if so what would be a command similar to setPostMaterial() for setting materials in the render field.... just setMaterial.....??? well actually it should be this one right engine.render.setRenderMaterials .....?
marinos.giannoukakis Posted August 31, 2016 Author Posted August 31, 2016 please answer this on how to get the AppProjection to load with width 3 on a custom project, cause i am drowning here... the schedule is really tight and so far it doesn' t work at all... thanks....
marinos.giannoukakis Posted August 31, 2016 Author Posted August 31, 2016 ok lesson learned NEVER create a project with just a GUI launcher....!!!!!!!! ALWAYS a .bat start up is needed....!!!! actually when i created a launcher for the main with all the specified options everything worked.... sorry for the desperation......!!
Recommended Posts