Page 1 of 4
Reqiest║Metal temperature
Posted: Wed Dec 16, 2009 4:17 pm
by neo0.
So, I was in the john and I started thinking of some other ways that indigo could be more physically accurate.. I started thinking of metals.. Different metal glow with different colors when heated to different temps, if I remember correctly (also where fireworks come from I think.) Iron usually glows red, magnesium glows green (blue?).. This would also be great for lighting fixtures.. Im real life, many indoor lighting sources actually come from metal being heated... So, I think it would be great if indigo could physically reproduce this phenomenon.
Re: Reqiest║Metal temperature
Posted: Wed Dec 16, 2009 7:42 pm
by Meelis
But it just works on hi temperatures, don't u set it with emitter the way u like.
Magnesium burnes just white or am i wrong.
Re: Reqiest║Metal temperature
Posted: Wed Dec 16, 2009 9:10 pm
by neo0.
Well.. to be honest, Im kind of confused when it comes to this.. is light temp (in kelvins) equate to the same colors as metal temperature? Obviously, it would vary with different metals, but maybe it is similar for a few?
Re: Reqiest║Metal temperature
Posted: Wed Dec 16, 2009 9:22 pm
by lycium
it is in theory possible for indigo to render images using arbitrary spectra for emission such as given by this page:
http://members.misty.com/don/spectra.html
however, depending on how sharp those spectral peaks are, there could well be a lot of noise in the resulting images. mlt might help a bit, but what you really want is a specially-crafted importance sampler for the spectral rendering stuff. i doubt this would be implemented, since it is pretty special-purpose and would slow down the common case.
Re: Reqiest║Metal temperature
Posted: Wed Dec 16, 2009 10:07 pm
by gagar
neo0. wrote:Well.. to be honest, Im kind of confused when it comes to this.. is light temp (in kelvins) equate to the same colors as metal temperature? Obviously, it would vary with different metals, but maybe it is similar for a few?
There is no such thing as "metal temperature" in the way you are using the term.
When you heat a metal, or another material, it emits a black body spectrum ("light temperature"), which depends on the temperature.
Now, if you excite a metal atom, it will emit a photon at a characteristic wavelength upon relaxation. C.f.
http://www.meta-synthesis.com/webbook/1 ... photo.html
That's the effect you see in sodium-vapour lamps (street lamps) and in fireworks.
So, as Lyc mentioned, you just need to find the emission spectrum for the metal you want, and use it.
Re: Reqiest║Metal temperature
Posted: Wed Dec 16, 2009 10:32 pm
by CTZn
If I'm correct, one can use a tabulated spectrum to translate such emission data into Indigo (referring to link from lyc).
Re: Reqiest║Metal temperature
Posted: Wed Dec 16, 2009 10:47 pm
by lycium
yup, and the problem i was referring to is that it would look something like:
0, 0, 0, 0, 0, 0, 0, ... 0, 10, 10000, 10, 0, 0, ... 0, 1, 4000, 1, 0, 0, 0, ...
this is troublesome (you'll get a lot of colour noise) unless specially accounted for. then again, indigo might be even smarter than i imagine (i have a good idea, but nick is full of surprises) and account for this kind of thing already

Re: Reqiest║Metal temperature
Posted: Thu Dec 17, 2009 11:10 am
by fused
lyc wrote:yup, and the problem i was referring to is that it would look something like:
0, 0, 0, 0, 0, 0, 0, ... 0, 10, 10000, 10, 0, 0, ... 0, 1, 4000, 1, 0, 0, 0, ...
this is troublesome (you'll get a lot of colour noise) unless specially accounted for. then again, indigo might be even smarter than i imagine (i have a good idea, but nick is full of surprises) and account for this kind of thing already

i think im going to try that later on

Re: Reqiest║Metal temperature
Posted: Thu Dec 17, 2009 12:05 pm
by dougal2
Re: Reqiest║Metal temperature
Posted: Thu Dec 17, 2009 12:11 pm
by lycium
ahhh, there it is! i was trying to find that link earlier, i'd sent it to nick some time ago.
Re: Reqiest║Metal temperature
Posted: Thu Dec 17, 2009 12:20 pm
by dougal2
There is an implementation of that data set
on this other website
Re: Reqiest║Metal temperature
Posted: Thu Dec 17, 2009 1:10 pm
by fused
Code: Select all
<material>
<name>0_mid0</name>
<phong>
<ior>1.010000</ior>
<diffuse_albedo>
<constant>
<rgb>
<rgb>0.800000 0.800000 0.800000</rgb>
<gamma>2.200000</gamma>
</rgb>
</constant>
</diffuse_albedo>
<exponent>
<constant>1000.000000</constant>
</exponent>
<base_emission>
<constant>
<regular_tabulated>
<start_wavelength>0.34E-06</start_wavelength>
<end_wavelength>0.75E-06</end_wavelength>
<num_values>64</num_values>
<values>0.0359 0.0784 0.0134 0.0258 1000000.0359 0.0784 0.0134 0.0258 0.0359 0.0784 0.0134 0.0258 0.0359 0.0784 0.0134 0.0784 0.0134 0.0258 0.0359 0.0258 0.0359 0.0784 0.0134 0.0258 0.0359 0.0784 0.0134 0.0258 0.0359 0.0784 0.0134 0.0258 0.0359 0.0784 0.0134 0.0258 0.0359 0.0784 0.0134 0.0258 0.0359 0.0784 0.0134 0.0258 0.0359 0.0784 0.0134 0.0784 0.0134 0.0258 0.0359 0.0258 0.0359 0.0784 0.0134 0.0258 5000.0359 0.0784 0.0134 0.0258 0.0359 0.0784 0.0134 0.0258 </values>
</regular_tabulated>
</constant>
</base_emission>
<layer>0</layer>
</phong>
</material>
4 minutes
Re: Reqiest║Metal temperature
Posted: Thu Dec 17, 2009 1:25 pm
by lycium
pretty much what i expected

and it's easy enough to account for (just say "spectral MIS" to nick), but not worth it since such extreme cases are kinda rare. well, there's flourescent lighting that's quite common and very peaky (hence undesirable)...
Re: Reqiest║Metal temperature
Posted: Thu Dec 17, 2009 9:13 pm
by CTZn
fused wrote:lyc wrote:yup, and the problem i was referring to is that it would look something like:
0, 0, 0, 0, 0, 0, 0, ... 0, 10, 10000, 10, 0, 0, ... 0, 1, 4000, 1, 0, 0, 0, ...
this is troublesome (you'll get a lot of colour noise) unless specially accounted for. then again, indigo might be even smarter than i imagine (i have a good idea, but nick is full of surprises) and account for this kind of thing already

i think im going to try that later on

Any chance to use ISL to translate one 1d scalar texture into tabulated data ? I don't think that one can handle the relevant data types atm...
Could be a secondary tabulated data type (image) ? At least that could ease use and ressources spotting.
Speculating

Re: Reqiest║Metal temperature
Posted: Thu Dec 17, 2009 9:21 pm
by fused
you can have shaders which are evaluated per wavelenght, iirc.
edit: and yeah, u could also do texture lookups in them
