Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shader Noob - Fire Shader Help

#1
Hi guys,
I am a noob to any kind of shader and I'd like to create a fire shader. How do I go about doing this?

Thanks very much.
Reply

#2
(09-25-2010, 10:26 AM)top_cat Wrote: Hi guys,
I am a noob to any kind of shader and I'd like to create a fire shader. How do I go about doing this?

Thanks very much.

Fire is just going to be a series of animated textures. Make 4 or more .jpg or .tga files that look like flame. Anything you do in black will be transparent. Make each one look slightly different to give the illusion of the flame flickering. Then write your shader like this:

textures/fire/fire
{
nopicmip
qer_editorimage textures/fire/fire1.jpg
q3map_lightimage textures/fire/fire1.jpg
surfaceparm trans
q3map_surfacelight 600
cull back
qer_trans 0.5
surfaceparm nomarks
{
map textures/fire/fire.jpg
animmap .2 textures/fire/fire1.jpg textures/fire/fire2.jpg textures/fire/fire3.jpg textures/fire/fire4.jpg
}
}

animap will animate fire(1-4) over and over again. the .2 is the delay between each frame. Play with this until you get the speed you are happy with.


Cheers!
[Image: di-712770583645.png]
Reply

#3
Either that or use a func_pointparticles entity (this will likely look much better).
(07-18-2010, 10:59 AM)Flying Steel Wrote: How could anyone with ADHD tell its a high damage weapon if it wasn't a gigantic metal cock fucking the map whenever a player gets within 3 meters of a wall?

[Image: di-712770583645.png]
Reply

#4
I was meaning to ask this for a long time anyways... where is the place to look for a reference that explains all these keywords (found in effectinfo.txt or the quote above) ? Is that official OpenGL stuff, or Quake-engine specific?
Reply

Reply

#6
Thanks a lot!
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [NEED HELP] Need modelling help. _para 3 1,495 03-17-2023, 02:34 AM
Last Post: anoob
  need modeling help MusicGoat 5 3,624 08-23-2022, 08:34 AM
Last Post: NoClue
  [NEED HELP] Weapon shader isn't doing as I'm intending to do LegendGuard 0 1,323 04-04-2022, 07:23 AM
Last Post: LegendGuard
  Help, how I create a new texture for mapping? derrant 9 6,412 09-02-2021, 05:08 PM
Last Post: ballerburg9005
  Texture and Player Model Creation Help Molnija 5 6,055 09-30-2018, 12:04 PM
Last Post: Molnija
  Gravity help Molnija 4 3,023 08-17-2018, 01:45 PM
Last Post: Molnija
  Waypoints Help TapX 10 8,101 08-07-2018, 06:59 AM
Last Post: TapX
  Jump pad help. TapX 1 1,932 06-23-2018, 05:04 AM
Last Post: _para
  NetRadiant Spawn points help. TapX 18 10,743 06-06-2018, 11:54 AM
Last Post: Garux
  I need help with textures. [Solved] TapX 5 4,839 05-11-2018, 02:22 PM
Last Post: Julius

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-