.::LvL
Q3A Database
Hello, I need a more efficient way of creating rain. I use a shader that makes the texture scroll down very fast to make it appear like rain, however this uses up a lot of resources and it causes a few brush problems. Is there a different way of having rain in your map (e.g. particles falling from the sky texture)?
avatar
KommissarReb (SW12) Rep. 1758
#2   22 Oct 2013
In the Annihilation mod ( www.quakeunity.com/downloads/13 ), when you start a match, there is an option to change the weather ranging from clear, rain, or snow. None of these affect the sky texture or gameplay, but it is a cool aesthetic touch. The rain and snow are somewhat realistic in the way it hits a surface and has a splash effect. However the rain is a bit slow to fall and the snowflakes tend to be far and few between, but its great to add weather to maps you think ought to have it.
Thanks, but I was looking for something more like rain particles. I am sure it's possible to have rain particles in the Quake 3 engine, instead of having rain via textured brushes.
avatar
Takkie Rep. 908
#4   23 Oct 2013
Perhaps you can ask your question here: www.quake3world.co...m/viewforum.php
avatar
leilei Rep. 297
#5   23 Oct 2013
Q3A doesn't even have a real particle system so you're best doing it by having shaders on brushes with scrolls (which would be fillrate heavy - Q3A had a rain shader cut out from the final game and packed as a Q3Radiant extra, it was rendered additive with a lot of black on the texture leading to large amounts of overdraw) or small brushes with deformVertexes move (which will be more efficient for fillrate, but rain will always look uniform and falling the same way, which might give a more noticeable pattern effect).
Maybe putting deformVertexes rain brushes on multiple unreachable func_rotating entities with different degrees would help fight the pattern artifact but that could introduce a problem for network entity traffic.

Might help to mark 'detail' for the shader stage of the rain texture so it could be skipped for r_detailtextures 0.

Heck, even doing it through cgame's local entity system as a mod (where the smoke trails happen - this is how Annihilation implements it) would be bad since it would hit the small limits of them eliminating rocket trails, weaponhits and rail trails.

I am not a mapper. I am just spewing technical artist theories here.

Edited 10 minutes after the original posting.

avatar
KommissarReb (SW12) Rep. 1758
#6   25 Oct 2013
Heck, even doing it through cgame's local entity system as a mod (where the smoke trails happen - this is how Annihilation implements it) would be bad since it would hit the small limits of them eliminating rocket trails, weaponhits and rail trails.

@leilei: Have you tried playing a Q3A map in Annihilation? I mean as in typing the name of a map (could be custom) after loading a featured one upon setting the Weather option to Rain. I never ran into any problems doing this, but if that's not what you are trying to say, please clarify.
Ok thanks, I've found some ways to make it more efficient!
I also have another question that I have to ask and I don't want to spam the forums so I will post it here. This is probably the noob-iest question I've ever asked, oh well.

In a map I have fog but it is glitched, there are no leaks or errors that I've made which I'm aware of and there is only one visible surface to the fog. The fog has an odd "solid" look on the surface (the look you get when there's more than one visible surface), the only thing that I can think of that may have made it this way is the curves that I placed on the walls where the fog is (which have been caulked from behind). Do curves have an affect on fog?

avatar
Tig Rep. 884
#9   03 Nov 2013
There are multiple fog types. Some have a solid visible surface and others do not. You simple have the wrong one.

I'm not at my main PC at the moment, so I can't tell you the names of the one you are after.

Here's what I mean: imageshack.us/a/img849/2202/kuvm.jpg
There's something not right about it, it doesn't look how fog should look in the id Tech 3 engine.

Now here's how it should look: imageshack.us/a/img96/2655/xr5m.jpg
It has a smoother transition from the fog instead of having an "edge" look to it.

Edited 6.93 minutes after the original posting.

avatar
Tig Rep. 884
#11   05 Nov 2013
The fog in Q3DM4 is "textures/sfx/xdensegreyfog", is that what you are using?
No, I was showing it as an example of how fog should be. The first image is my own map, I created the fog shader myself.
avatar
Tig Rep. 884
#13   05 Nov 2013
I suggest you change to using the id fog shader to test if the problem is a map compile issue or a shader one. After a the test you will know where to look to fix the issue.
The fog shader I created had no errors in it, it is a map issue: imageshack.us/a/img14/4006/7x5g.jpg
I just can't find the source of the issue.
avatar
themuffinator Rep. 548
#15   07 Nov 2013
Patches shouldn't make any difference at all since they don't affect portalling/vis. Are the stairs set as detail brushes?

Edited 8.48 minutes after the original posting.

avatar
themuffinator Rep. 548
#16   07 Nov 2013
Is the map with the blue fog built without vis?
The stairs are set to detail brushes, and like I said before the fog has been caulked on all sides except for the top.

I just compiled it without lighting because it takes a while to do it.

avatar
Tig Rep. 884
#18   07 Nov 2013
Fog works (from memory) by having a simple brush (6 sides) and the shader on all six sides. The "single" side that is exposed will form the fog. So, do a test without the caulk and be sure to do a full vis and at least a basic light pass.
By caulked I didn't mean the brush for the fog itself, I meant I put caulked brushes around the fog so it wasn't out in the void. I've trying change the scale of the brush, tried it without adding caulked brushes around the fog, tried having it so the brush only ends at a wall (which just creates more problems).
So I guess it's just some weird hex that's been put on me and my maps?
Group 1 of 2
Only registered members can post a reply.
Already registered? Sign in.