XNA Game Development Forums
2012/05/18 06:56:04 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Fire!  (Read 2926 times)
Nemo Krad
Global Moderator
Hero Member
*****
Offline Offline

Posts: 512


I have seen the fnords


View Profile WWW
« on: 2007/03/21 15:51:43 »

Now personally I don't like the title of this board, but I can't think where else to put this....

I love NVIDIA!

[attachment deleted by admin]
Logged
Chr0n1x
Global Moderator
Sr. Member
*****
Offline Offline

Posts: 307


View Profile WWW
« Reply #1 on: 2007/03/21 22:25:33 »

Thats the point of this board, to say haha i've done this, and then we bug you for the source code unless its proprietary.
Logged

Nemo Krad
Global Moderator
Hero Member
*****
Offline Offline

Posts: 512


I have seen the fnords


View Profile WWW
« Reply #2 on: 2007/03/22 02:29:57 »

Well the shader is by NVIDIA. But the code is mine. I still need to refine it a bit as at the moment it is not to generic so I wont post the code yet.
Logged
Chr0n1x
Global Moderator
Sr. Member
*****
Offline Offline

Posts: 307


View Profile WWW
« Reply #3 on: 2007/03/22 03:55:37 »

So thats particles? Using the Million Particles on a GPU system?
Or something else?
Logged

Nemo Krad
Global Moderator
Hero Member
*****
Offline Offline

Posts: 512


I have seen the fnords


View Profile WWW
« Reply #4 on: 2007/03/22 04:26:20 »

Nope, no particles. It is (at the moment) an number of panel mesh's each with a single texture with noise. 

Here is the comment at the top of the shader

Quote
    Volumetric flame effect
    based on Yury Uralsky's "Volumetric Fire"
    http://www.cgshaders.org/shaders/show.php?id=39
   
    This revolves a cross section of a flame image around the Y axis to
    produce a cylindrical volume, and then perturbs the texture coordinates
    with 4 octaves of animated 3D procedural noise to produce the flame effect.

Cool..

[EDIT]
Side profile of the rendered flame now attached..

So you can see I have some work to get it to work in the engine fully. Need to get it to face the camera at all times with a fixed Y plane and also to be able to position it anywhere in the scene other than pos 0,0,0, I suppose I will supply a float3 offset for the shader to use.
[/EDIT]

[attachment deleted by admin]
« Last Edit: 2007/03/22 05:35:57 by Nemo Krad » Logged
Nemo Krad
Global Moderator
Hero Member
*****
Offline Offline

Posts: 512


I have seen the fnords


View Profile WWW
« Reply #5 on: 2007/03/22 07:45:53 »

 Grin YEA!

I have the shader so I can now place my fire anywhere in the world.... I will try and get the class written up tonight and drop the example on here. I don't think it will be too compatible with the base HM Engine as my engine has altered a fair bit, but I am sure you guys will be able to get it to fit you Engine Models.

 Cool

[attachment deleted by admin]
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 1.155 seconds with 19 queries.