|
|
Le 17-04-10 à 00:47, Mike Horvath a écrit :
> On 4/9/2017 10:09 PM, Alain wrote:
>> Use some media in a container of the shape that you prefer. Usually, a
>> cylinder or a cone are the best.
>> A blue flame, as that of hydrogen or light gas such as methane is mostly
>> emissive that is directly caused by a chemical reaction, so, you need to
>> use an emissive media. Adding some absorbing or scattering media may be
>> needed, but mostly starting some distance from the nozle.
>> That flame is not uniform. You need some pattern. A cylindrical pattern
>> is a good start. It can be combined with some kind of gradient or some
>> other pattern.
>>
>> Experiment untill you get something that you like.
>
>
> How do I get a cylindrical pattern to fit a cone? Can I make one end
> narrower than the other?
>
>
> Mike
You start by making a pattern function.
#declare CylindricalFunc = function{pattern{cylindrical}}
Once it's done, you can controll the pattern very preciselly and do
things like progressive scalling.
All you need to do is to scale the X and Z coordinates according to Y:
pattern{function{CylindricalFunc(x*y/4, y, z*y/4)}}
This transform the cylindrical into a conical pattern. The «/4» can be
changed as you want and controll the sharpness of the cone.
Some other possibilities:
pattern{function{CylindricalFunc(x*abs(sin(y)), y, z*abs(sin(y)))}}
A chain of bulbs.
pattern{function{CylindricalFunc(x*mod(y,1), y, z*mod(y,1))}}
A string if short, broad cones.
pattern{function{CylindricalFunc(x+sin(y), y, z+cos(y))}}
The cylinder follow a spiralling trajectory.
Those can also be used to create isosurfaces.
Post a reply to this message
|
|