Amerio.Stephane Posted April 25, 2025 Posted April 25, 2025 Hi, This is surely trivial bu I can't find the howto in the doc or in the forum. In order to specify a custom post_process for a specific view type in ig_config, there is by default: <view_type type="3" post_materials="Unigine::post_sensor_white"/> But how do I specify my own materials (we have some derived from post_sensor, and some new ones based on mgraph). Should I specify a custom namespace, none, how to define it? I tried with or without Unigine::, I get the same warning: View::setViewType can't find material post_tv Thanks.
cash-metall Posted April 28, 2025 Posted April 28, 2025 Hello! you can use specify you material using manual name, relative path from data folder or GUID. the code inside: MaterialPtr mat = Materials::findManualMaterial(name); if (!mat) mat = Materials::findMaterialByPath(name); if (!mat) mat = Materials::findMaterialByGUID(UGUID(name)); 1
Recommended Posts