Surfaces not obeying surfaceparm trans. *SOLVED*

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
Pat Howard
Posts: 494
Joined: Tue Mar 31, 2009 11:14 am

Surfaces not obeying surfaceparm trans. *SOLVED*

Post by Pat Howard »

My map has a lot of hanging wires angled every which way, curved fences, and generally just a lot of see-through and shoot-through surfaces with the "surfaceparm trans" line in their shaders. Even though I'm texturing all other sides with nodraw, it seems as though some faces randomly go solid, which is a real bummer because these faces are blocking a lot of gameplay.

I ran a couple of test maps thinking it could have something to do with the angle the face is at or if the face is overlapping another brush, but I couldn't find a pattern. Usually if I remade the faulty brush the problem went away. It was easy in the test map's case because I only had a few wires, but in the real map I have loads of them, and I'd really rather not sit around remaking hundreds of brushes. Anyone have a better idea of what's going on here? It would save me a lot of time.

Oh yeah, one other related problem. Sometimes if I have a wire hanging really close to a wall and I shoot the wall behind it, the wire face picks up the bullet hole. I'm not sure if these are related though, as this even happens on some of the surfaces that are otherwise behaving as they should (not going solid).

Here are the stock textures giving me problems:
-base_trim/proto_fence
-base_trim/wires01
-base_trim/wires02

Thanks,
-pat
Last edited by Pat Howard on Sun Sep 06, 2009 3:05 am, edited 1 time in total.
Delirium
Posts: 102
Joined: Mon Apr 27, 2009 10:05 am

Re: Surfaces not obeying surfaceparm trans.

Post by Delirium »

You are probably mixing content types for your wire brushes
in your shader for your wires add surfaceparm nonsolid and that should fix it.

let me elaborate...
there are multiple content types for brushes eg. lava/solid/nonsolid/water and some others, but each brush has multiple sides which could be textured with different shaders of different content types, so if you have a brush that is textured with a solid texture such as caulk on some sides and a nonsolid shader on another the compiler will take the content type of the first surface it comes across when compiling the map, which is what could be leading to your problem
[url=http://gotdelirium.com/][img]http://www.gotdelirium.com/stuff/gdd.png[/img][/url]
AEon
Posts: 1816
Joined: Sun Apr 20, 2003 7:00 am

Re: Surfaces not obeying surfaceparm trans.

Post by AEon »

That should be the reason, we plaster all other faces of the brush of a e.g. grate (with transparency) texture with nodraw instead of caulk, to void such issues, I think.
Pat Howard
Posts: 494
Joined: Tue Mar 31, 2009 11:14 am

Re: Surfaces not obeying surfaceparm trans.

Post by Pat Howard »

Hmmm... I'm using nodraw, not caulk. I haven't been able to look to see if you're right about nodraw though, so I'll test it soon.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Surfaces not obeying surfaceparm trans.

Post by obsidian »

surfaceparm trans tells the compiler that the surface is see-through and it should not cull objects behind it.

surfaceparm nonsolid tells the game that the surface should not have collision with players and weapon fire.

The latter is the one you want (though you'll likely also need the former).


@AEon: caulk blocks light and vis. No draw does not.
[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]
Pat Howard
Posts: 494
Joined: Tue Mar 31, 2009 11:14 am

Re: Surfaces not obeying surfaceparm trans.

Post by Pat Howard »

Aha! Thanks a bunch for the help, guys.

-pat
foralarx2k3
Posts: 306
Joined: Wed Feb 01, 2006 9:56 pm

Re: Surfaces not obeying surfaceparm trans. *SOLVED*

Post by foralarx2k3 »

@obsidian: Thanks for that post ... I've recently had this same issue, so that's two peeps at least that response has helped.

Ian.
My Maps: [url=https://lvlworld.com/review/id:1911]Steep Learning Curve[/url], [url=https://lvlworld.com/review/id:1905]Reckless Abandonment[/url], [url=https://lvlworld.com/review/id:1955]The Rage[/url], [url=https://lvlworld.com/review/id:2409]The Immortal Coil[/url]
Post Reply