Author Topic: How do I get this lighting effect?  (Read 6666 times)

TRaK

  • Posts: 442
  • Turrets: +94/-21
    • TRaK@MG
How do I get this lighting effect?
« on: April 21, 2007, 10:16:03 pm »


I've looked at the shaders in Niveus, but I can't get it to work. I must be using it wrong, or using the wrong thing.

Thanks.

Pacra

  • Posts: 123
  • Turrets: +1/-1
    • http://sga.jconserv.net
How do I get this lighting effect?
« Reply #1 on: April 21, 2007, 10:23:02 pm »
That would be a lens flare added.

Bill Brooks has an excellent tutorial on lens flares:

http://www.wemakemaps.com/lensflare.htm

If you have any other questions, just ask.
url=http://sga.jconserv.net][/url]

OverFlow

  • Posts: 386
  • Turrets: +44/-1
    • http://bobbin.vilkacis.net
How do I get this lighting effect?
« Reply #2 on: April 21, 2007, 10:25:47 pm »
That tutorial is actually a bit incorrect for usage in Tremulous.  Trem has its own entity for flares (misc_flare?) that acts more accordingly to true lens flares.

TRaK

  • Posts: 442
  • Turrets: +94/-21
    • TRaK@MG
How do I get this lighting effect?
« Reply #3 on: April 21, 2007, 10:25:52 pm »
Thanks :) . I tried searching, but I didn't know the precise term.

Quote from: "OverFlow"
That tutorial is actually a bit incorrect for usage in Tremulous.  Trem has its own entity for flares (misc_flare?) that acts more accordingly to true lens flares.


misc_light_flare?

I'll try that :)

edit : it works!

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
How do I get this lighting effect?
« Reply #4 on: April 21, 2007, 10:47:45 pm »

Cookie to anyone who knows what its from.

∧OMG ENTROPY∧

TRaK

  • Posts: 442
  • Turrets: +94/-21
    • TRaK@MG
How do I get this lighting effect?
« Reply #5 on: April 21, 2007, 11:07:10 pm »
lies!

Lava Croft

  • Guest
How do I get this lighting effect?
« Reply #6 on: April 21, 2007, 11:18:33 pm »
Taken from entities.def:

Code: [Select]
//=============================================================================
/*QUAKED misc_light_flare (.65 .65 1) (-8 -8 -8) (8 8 8) SPAWN_DISABLED
A light flare entity.

-------- KEYS --------
targetShaderName: The name of the shader of the light flare.

radius: The radius key is a vector.
The first component is the size of the light flare. The radius is calculated by taking the distance of the viewer from the light flare and dividing by this key, so the larger the key value, the smaller the flare. Values between 2 and 10 are sensible.
The second component indicates the angle around the direction the flare points for which it is visible. For example a value of 90 means that you can see the flare while infront of the entity, but not when behind it. If set to zero the light flare will be visible from any angle
The third component is similar to the first except that it specifies the size of the light source rather than the size of the light flare itself. This is useful when the higher detail flare fading modes are enabled. If this is set to the same value as the first component, fading will commence as soon as the edge of the light flare is occluded by some surface between the viewer and the flare. If it is set larger the flare will overlap the occluding surface before it begins to fade.

angles: This reflects which direction the flare points. It is not important unless the second component of the radius key is employed. angles is a vector of PITCH YAW ROLL. For example a value of "90 0 0" would create a flare pointing down. ROLL is redundant in this context and can be set arbitrarily.

-------- SPAWNFLAGS --------
SPAWN_DISABLED: Spawn disabled.

-------- NOTES --------
Triggering this entity toggles it.
*/

rdizzle

  • Posts: 187
  • Turrets: +1/-1
How do I get this lighting effect?
« Reply #7 on: April 23, 2007, 06:44:11 pm »
Lens flares are an artifact of small errors optics e.g. lenses.  So unless you are playing as a camera, why would you want lens flares?

OverFlow

  • Posts: 386
  • Turrets: +44/-1
    • http://bobbin.vilkacis.net
How do I get this lighting effect?
« Reply #8 on: April 23, 2007, 07:06:26 pm »
Quote from: "rdizzle"
Lens flares are an artifact of small errors optics e.g. lenses.  So unless you are playing as a camera, why would you want lens flares?


Human (and I'm guessing Alien) eyes aren't perfect either.  Look at a really bright light in a dark room, and you get an effect much like the 'lens flares' in tremulous.   :P

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
How do I get this lighting effect?
« Reply #9 on: April 23, 2007, 07:30:42 pm »
Quote from: "Paradox"

Cookie to anyone who knows what its from.


Transit?
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

rdizzle

  • Posts: 187
  • Turrets: +1/-1
How do I get this lighting effect?
« Reply #10 on: April 23, 2007, 07:45:30 pm »
Quote from: "OverFlow"
Quote from: "rdizzle"
Lens flares are an artifact of small errors optics e.g. lenses.  So unless you are playing as a camera, why would you want lens flares?


Human (and I'm guessing Alien) eyes aren't perfect either.  Look at a really bright light in a dark room, and you get an effect much like the 'lens flares' in tremulous.   :P


no you don't, you get an effect related to lensflare but very, very different from the effect he's asking about

TRaK

  • Posts: 442
  • Turrets: +94/-21
    • TRaK@MG
How do I get this lighting effect?
« Reply #11 on: April 23, 2007, 10:49:10 pm »
The nice thing about lensflares is that they make a light look like it's 'glowing'. Sure, it might not be 100% realistic, but it looks more interesting than just a plain white dot.

Plague Bringer

  • Posts: 3815
  • Turrets: +147/-187
How do I get this lighting effect?
« Reply #12 on: April 23, 2007, 11:03:43 pm »
Quote from: "rdizzle"
Quote from: "OverFlow"
Quote from: "rdizzle"
Lens flares are an artifact of small errors optics e.g. lenses.  So unless you are playing as a camera, why would you want lens flares?


Human (and I'm guessing Alien) eyes aren't perfect either.  Look at a really bright light in a dark room, and you get an effect much like the 'lens flares' in tremulous.   :P


no you don't, you get an effect related to lensflare but very, very different from the effect he's asking about


Yes, yes I do.
[edit](oops, fuck)
Yes, yes they do.*[/edit]

Also; try staring at the sun for a few minutes, it has the same effect.
U R A Q T

Kaleo

  • Posts: 2098
  • Turrets: +176/-220
    • KaleoDesign
How do I get this lighting effect?
« Reply #13 on: April 24, 2007, 08:23:11 am »
Quote from: "David"
Quote from: "Paradox"

Cookie to anyone who knows what its from.


Transit?


COOKIE to the man under the GummieBunnie
Quote from: Stannum
Thou canst not kill that which doth not live,
but you can blow it into chunky kibbles!
I has a cookie, and u can has a cookie, but i no givs u mai cookie...

whitebear

  • Posts: 659
  • Turrets: +35/-20
How do I get this lighting effect?
« Reply #14 on: April 24, 2007, 11:56:14 pm »
Quote from: "Plague Bringer"
Quote from: "rdizzle"
Quote from: "OverFlow"
Quote from: "rdizzle"
Lens flares are an artifact of small errors optics e.g. lenses.  So unless you are playing as a camera, why would you want lens flares?


Human (and I'm guessing Alien) eyes aren't perfect either.  Look at a really bright light in a dark room, and you get an effect much like the 'lens flares' in tremulous.   :P


no you don't, you get an effect related to lensflare but very, very different from the effect he's asking about


Yes, yes I do.
[edit](oops, fuck)
Yes, yes they do.*[/edit]

Also; try staring at the sun for a few minutes, it has the same effect.

Thats not exactly the same. ^^
But humans do see lens flares with clear eyes. When it's night (and time of the year makes night pitch black) go look at street lamps in difrent angels you find your self staring at lens flare in no time.