Jump to content

ig_config specify a custom post_process


photo

Recommended Posts

Posted

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.

 

Posted

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));

 

  • Thanks 1
×
×
  • Create New...