Q4 : circular flare?

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
Johnny Law
Posts: 179
Joined: Tue Nov 16, 1999 8:00 am

Q4 : circular flare?

Post by Johnny Law »

I am full of questions this weeked!

Here's an easy one:

I've seen several examples of how to make rectangular flares to put in front of light textures. Is there a way to get this same effect for round lights? I did try messing with a "cap"-style mesh that had the flare texture on it, but the effect was very very faint.
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

I suggest doing what you did with another flare texture. There are a load of textures that have different flare sizes and fade settings, and if you cant find the one your looking for, make your own, its very easy.
Johnny Law
Posts: 179
Joined: Tue Nov 16, 1999 8:00 am

Post by Johnny Law »

Hmm. Well, when I said "very very faint", I meant to say "very very very faint". :) It didn't seem like the "deform flare" effect is working on that type of patch.

On further searching around, this might be relevant to the problem, if not the solution: http://www.doom3world.org/phpbb2/viewtopic.php?t=1409
Black_Dog
Posts: 61
Joined: Sat Aug 13, 2005 4:50 am

Post by Black_Dog »

The flare glows use deform flare, a vertex modifying material keyword that will only work on individual quads. Patches like bevels or caps that the engine tesselates into triangles will break those materials in game, so you won't see the flare effect on patches that aren't quads.

You can fake individual triangular flares easily by making a patch with one really really small edge, but strips or groups of triangles won't look good done that way. You might have to settle for using a sprite flare for round flare effects (welcome to 1999). :puke:
Johnny Law
Posts: 179
Joined: Tue Nov 16, 1999 8:00 am

Post by Johnny Law »

Yeah... sprite ain't doing it unfortunately, these lights are too close to the player. Sprite just looks goofy. Ah well.
corsair
Posts: 972
Joined: Fri May 18, 2001 7:00 am

Post by corsair »

I'm not sure whether you're after a flat circular flare or a sphere'ish one - if the latter, you could make it with having a 1x1x1 unit brush with a flare shader on each of the six sides, and have its spread/radius set to yer prefered size.
Post Reply