Page 1 of 1

Alpha Blending NVIDIA issue?

Posted: Tue Mar 01, 2016 5:32 pm
by KENNITHH
A similar topic is going on on the JKhub forums but I think it would be more clever to start a thread here as there are more of the hardcore devs around here.
So I met this guy on Soldier of Fortune II a while ago and he tested something which looks neat but it doesnt work on NVIDIA cards somehow. I wonder if there's a fix for this and if it happens in all Q3 based games.

The shader used:
[spoiler]textures/mk_textures/multiblend_01
{
qer_editorimage textures/mk_textures/multiblend_01
q3map_globaltexture
{
map textures/mk_textures/block_base_01
}
{
map textures/mk_textures/blender_01
blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
tcMod scale 0.25 0.25
}
{
map textures/mk_textures/cracks_01
blendFunc GL_ONE_MINUS_DST_ALPHA GL_DST_ALPHA
}
{
map textures/mk_textures/blender_01
blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
tcMod scale 0.2 0.2
}
{
map textures/mk_textures/sand_01
blendFunc GL_ONE_MINUS_DST_ALPHA GL_DST_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}[/spoiler]

What it should look like and what it looks like (notice the random sand and cracks):
Image
Image

Same map in JKA on NVIDIA card
Image

And it has to do something with this (in ShaderED)
Image

The other topic on JKHUB for additional info:
https://jkhub.org/topic/7226-alpha-blen ... dia-issue/

Re: Alpha Blending NVIDIA issue?

Posted: Wed Jun 22, 2016 12:14 pm
by coltonquake3
Most likely that's due to buggy drivers - someone needs to code a workaround for that to make it work again most likely...

Re: Alpha Blending NVIDIA issue?

Posted: Wed Jun 22, 2016 12:17 pm
by CZghost
Are those models? I've read somewhere that some games when map is compiled models are entirely black regardless on lighting. Unfortunately I do not remember where and how it was fixed :(