Pagine

domenica 14 marzo 2021

Weapon Flash

Just improving everything possible... Now I've focused on weapon flashes which never seemed realistic to me. Normally the intensity depends on many factors first of all the ambient brightness, but in any case if the flash appears you cannot see through and it's not so semi-transparent.
In addition to changing some models of the flashes to give more volume, I worked on the shaders by making 4 different images for each type of flash used with animMap feature in order to give variations to the shape and color and I also added a random element with the "rgbGen wave noise" option.
By doing so it is also possible to do a tuning of the intensity by simply acting on the first parameter of the rgbGen command of the shader

This is an example:
models/weapons2/flash/flash_generic_03
{
    nofog
    sort additive
    cull disable
    {
        animMap 8 models/weapons2/flash/flash_generic_03_01.tga models/weapons2/flash/flash_generic_03_02.tga models/weapons2/flash/flash_generic_03_03.tga models/weapons2/flash/flash_generic_03_04.tga
        blendfunc GL_ONE GL_ONE
        rgbGen wave noise 0.65 0.25 0 0.5
    }
}

I think I'm close to good results and if nothing else they are definitely scenic if not realistic.

I am also doing some animations for 3rd pov players so that there is a minimum of congruency.
Once these tasks are completed I will release all packages. It is useless to keep adding changes because now I can't check by myself if there are any problems.
I have checked so many times that I'm no longer able to see mistakes and errors even if they are obvious and I have them in front of my eyes ...

Probably, to allow updates more easily, there will be four packages:

- z_tce_players_yyyymmdd.pk3
3rd pov player body models + textures
3rd pov head models + textures + animations

- z_tce_players_animations_yyyymmdd.pk3
3rd pov player animations

- z_tce_viewarms_yyyymmdd.pk3
1st pov arms models + textures + animations

- z_tce_weapons_yyyymmdd.pk3 (contents maded by various authors)
1st & 3rd pov weapons models + textures