Create an account

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

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.

(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:

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.

[Image: di-712770583645.png]

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]

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?


Thanks a lot!

Possibly Related Threads...
Thread Author Replies Views Last Post
  Xonotic shader manual and tools? Binaryshi 6 3,785 07-22-2015, 12:12 PM
Last Post: tZork
  Can I Make an Edge Shader? MrDetonia 3 2,875 04-16-2015, 02:30 AM
Last Post: zeeshan002
  Can I change the guided missle to "fire and forget"? zwz 1 1,957 07-08-2014, 11:43 PM
Last Post: Mr. Bougo
  Shader Issues With Q3A Texture Replacement Packs Orbiter Sunblast 2 3,787 09-06-2013, 03:51 PM
Last Post: Orbiter Sunblast
  Inline GLSL in Q3 shader files? poVoq 3 2,961 06-16-2013, 11:51 AM
Last Post: poVoq
  Toon shader soukaina 10 6,629 10-11-2012, 12:04 PM
Last Post: rocknroll237
  Any hack to avoid the limitation of 1 stage per shader? HKN 5 4,798 10-20-2011, 04:56 AM
Last Post: tZork

Forum Jump:

Users browsing this thread:
1 Guest(s)

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