Hi,
Im currently trying to put together a thermal vision effect that will render everything but the character models blue and a second view that is applied over the top of the 'blue' view that will colour only the characters.
To achieve the 'blue' effect im using the postprocessing toon shader with outline from the Wiki and the same for the second view for character models that is red. My problem is that i seem to only be able to have one view or the other.
I have set up the tree models, bushes and terrain with FLAG1 so that the second red view does not pick them up... but FLAG1 does not seem to be working when i set 'NOFLAG1' in the red view.
Below is the blue view
and below is the red view that still picks everything else up and colours it red if i make it visible.
Below is the code i have
MATERIAL* Toon_mat =
{
effect = "Toon_.fx";
}
MATERIAL* Thermal_mat =
{
effect = "Toon_.fx";
}
VIEW* Heat_VISIONVIEW = {layer = 1; flags = PROCESS_TARGET;}
VIEW* Thermal_ModelView = {layer = 1.5; flags = PROCESS_TARGET | NOFLAG1;}
Other code just assigns the materials to views and to stages which is pretty solid. also trees and bushes etc have set(my, FLAG1);
Is there a bug in NOFLAG1 or am i totally off from the effect im trying to create? Bascially to bring both views together but red should only appear on chosen models and ignore the rest which will then shade everything blue.
Kind regards