Anim8or Community

General Category => General Anim8or Forum => Topic started by: FWL on October 11, 2020, 04:57:28 am

Title: Ambient color and texture
Post by: FWL on October 11, 2020, 04:57:28 am
Hello everyone,

I have a question about the use of ambient color with a texture. When I apply a white-grey-black texture to the ambient color and set the blend mode to darken, the original ambient color doesn't show in the workspace. It is if only the decal mode works. The sphere in the material browser does show the effect of the blend mode and it is also visible in a render of the image. Is this a limitation of the realtime rendering or am I doing something wrong? I've attached a screen shot with the settings.

Thanks!
Title: Re: Ambient color and texture
Post by: Steve on October 11, 2020, 10:17:44 am
FWL this looks like a but in the material's code. I guess I haven't tested all the blend modes very well when Ambient and Diffuse aren't locked. Your example works for the Scanline renderer but not for ART ray tracing or OpenGL shaders.

Bug #101-148 - Ambient texture blend modes broken for OpenGL and ART for unlocked ambient-diffuse
Title: Re: Ambient color and texture
Post by: FWL on October 11, 2020, 12:09:07 pm
Thanks for the reply, Steve!

I think this issue also happens with textures for the parameter Emissive and Specular too.
Title: Re: Ambient color and texture
Post by: Steve on October 15, 2020, 10:42:53 am
I have test cases for all diffuse and alpha mode combinations but not for the ambient, emissive, etc. I'll have to add them!