Page 1 of 1
patchmeta causes autosprites to disappear
Posted: Tue Jul 01, 2014 4:05 am
by Captaintoottoot
When I compile with -patchmeta flag, in the game all the textures with autosprite2 surfaceparm disappear. If I compile the same map without the patchmeta they are there again. What is patchmeta doing to cause the autosprite2's to go away?
Another clue is that I have patchshadows on and q3map2 doesn't even make the shadows of the plane with the autosprite2 shader. It's like its getting culled at some point before the light phase.
Re: patchmeta causes autosprites to disappear
Posted: Tue Jul 01, 2014 5:43 am
by dONKEY
Have you set subdivisions?
I assume your sprite is on a single patch. I'm pretty sure you need to set a subdivision value.
I guess for the second point, either autosprite 2 disables shadows by default (which makes sense in a game with a lightmap), or doesn't have surfaceparm alphashadow set.
Re: patchmeta causes autosprites to disappear
Posted: Tue Jul 01, 2014 2:18 pm
by obsidian
I assume you're doing this on a patch. Can you try putting your autosprite shader on a brush face with the other faces textured with nodraw?
Re: patchmeta causes autosprites to disappear
Posted: Tue Jul 01, 2014 3:57 pm
by Captaintoottoot
Obsidian:
Yes the first thing I did was make a nodraw brush and paint one side with the patch texture. It did show in-game, but it was all warped up.
dONKEY:
Subdivisions? I didn't know you could set them. How do you set them? What would be an example of how to do it?
Edit:
I set subdivisions anywhere from 2 to 128 and still, no autosprites