-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renderer: broken sprite code path #730
Comments
It's possible that Here are some materials from the metro map: textures/metro/kosad_flammebougie
{
qer_editorimage textures/metro/kosad_flammebougie1
surfaceparm nolightmap
surfaceparm nomarks
surfaceparm trans
cull disable
deformvertexes autosprite2
{
animmap 50 textures/metro/kosad_flammebougie1 textures/metro/kosad_flammebougie2 textures/metro/kosad_flammebougie3 textures/metro/kosad_flammebougie4 textures/metro/kosad_flammebougie5 textures/metro/kosad_flammebougie6 textures/metro/kosad_flammebougie7 textures/metro/kosad_flammebougie8
blendfunc add
}
}
textures/metro/kosad_chaine
{
qer_editorimage textures/metro/kosad_chaine
cull disable
deformvertexes autosprite2
{
map textures/metro/kosad_chaine
alphafunc ge128
depthwrite
}
{
map $lightmap
blendfunc filter
depthfunc equal
}
} First one is candle flame, next is a metal string, both use Here is a scene with both of them. The metal string is incorrectly distorted, the lightmap is not applied, but the texture is rendered and is always facing the player, there is a candle on the left, without flame: Now, if I swap the names: textures/metro/kosad_chaine
//textures/metro/kosad_flammebougie
{
qer_editorimage textures/metro/kosad_flammebougie1
surfaceparm nolightmap
surfaceparm nomarks
surfaceparm trans
cull disable
deformvertexes autosprite2
{
animmap 50 textures/metro/kosad_flammebougie1 textures/metro/kosad_flammebougie2 textures/metro/kosad_flammebougie3 textures/metro/kosad_flammebougie4 textures/metro/kosad_flammebougie5 textures/metro/kosad_flammebougie6 textures/metro/kosad_flammebougie7 textures/metro/kosad_flammebougie8
blendfunc add
}
}
textures/metro/kosad_flammebougie
//textures/metro/kosad_chaine
{
qer_editorimage textures/metro/kosad_chaine
cull disable
deformvertexes autosprite2
{
map textures/metro/kosad_chaine
alphafunc ge128
depthwrite
}
{
map $lightmap
blendfunc filter
depthfunc equal
}
} The string is rendered using the flame material (and is animated as expected !), and the candle doesn't have a string as flame: So, it's like if the |
Something we know is that the flame doesn't have any lightmap, the |
@DolceTriade says that it works in 0.50 also, which is interesting since that is later than the commit I linked in the OP. |
|
I made a tool to more easily look up which maps contain a given shader keyword such as |
vboData_t::spriteOrientation
is never set anywhere, and it was that way since the field was introduced in b10e8c2. I guess the "autosprite" thing (no idea what it is) has probably been broken at least since then.illwieckz says:
The text was updated successfully, but these errors were encountered: