patchmeta causes autosprites to disappear

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
Captaintoottoot
Posts: 59
Joined: Fri Mar 28, 2014 11:50 pm

patchmeta causes autosprites to disappear

Post 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.
dONKEY
Posts: 566
Joined: Mon Oct 15, 2001 7:00 am

Re: patchmeta causes autosprites to disappear

Post 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.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: patchmeta causes autosprites to disappear

Post 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?
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Captaintoottoot
Posts: 59
Joined: Fri Mar 28, 2014 11:50 pm

Re: patchmeta causes autosprites to disappear

Post 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
Post Reply