werner.poetzelberger Posted January 23, 2014 Posted January 23, 2014 Hello, I am a bit desperate as I cannot get rid of one very serious issue with my deferred decals. As (maybe someone followed me) I have spent an awful lot of time distributing thousands of decals over our landscape (I have reduced them finally so there are only a few hundred left). I want to use them as they are doing that what I need, and there is no other way to do this. It all works out very nicely during our virtual day. (we have animated parameters to create a day/night cycle). All materials behave as they should, but only the deferred decals wont. They (all of them) suddenly to black as they would not receive any more light information. Please see the images. The decal uses a blend mode (for the alpha channel) but to give a better impression I turned the blending off for one example. The last images show the decals as they are in the scene. We are animates values, but I really couldnt figure out, that some settings do change this behavior. I definitely need to use them. Please help me on this issue (and maybe it is just some stupid setting, but I definitely have tested all the slider, values, material settings etc. and nothing helps). Thank you very much in advance. PS: I just found out, that there is the same behavior with an object decal, so not only restricted to the deferred ones.! Werner
ulf.schroeter Posted January 23, 2014 Posted January 23, 2014 To isolate the problem cause (Decal-related or Tracker-related) I would recommend to setup a simple test-scene with just 1-2 decals and without tracker usage. Just take the parameter values for a working day render/sun setting and the values for a non-working night setting and exchange them e.g. every 5 seconds via UNIGINE script in world update() function -> test scene for UNIGINE
werner.poetzelberger Posted January 23, 2014 Author Posted January 23, 2014 Yes, good idea, to separate. I guess I made some progress. As we are using cubemaps in the environment slot (and as well animated over time), I set the environment to 0,0,0. Setting the color to 1,1,1. Changes the game completely. The whole scene looks different, HDR is behaving differently etc. (but theses are all settings I can adjust). The good thing is, that the decals are not black anymore during night. It seems that somehow the zeros do some multiplication. Kinda strange as we do not need a uniform ambient color, because of the cubemaps. But if this does the trick. I read in the manual that the color shouldnt be black, but I didnt think of that when using Cubamaps anyway. Would this explain the decal behavior? Best.w.
Recommended Posts