Reqiest║Metal temperature

Feature requests, bug reports and related discussion
neo0.
Posts: 1784
Joined: Thu Feb 28, 2008 7:11 am
Location: the US of A

Reqiest║Metal temperature

Post by neo0. » Wed Dec 16, 2009 4:17 pm

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.

User avatar
Meelis
Posts: 383
Joined: Sat Mar 14, 2009 11:29 pm
Location: Estonia

Re: Reqiest║Metal temperature

Post by Meelis » Wed Dec 16, 2009 7:42 pm

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.

neo0.
Posts: 1784
Joined: Thu Feb 28, 2008 7:11 am
Location: the US of A

Re: Reqiest║Metal temperature

Post by neo0. » Wed Dec 16, 2009 9:10 pm

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?

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: Reqiest║Metal temperature

Post by lycium » Wed Dec 16, 2009 9:22 pm

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.

gagar
Posts: 21
Joined: Wed Sep 23, 2009 12:23 am
Location: England
Contact:

Re: Reqiest║Metal temperature

Post by gagar » Wed Dec 16, 2009 10:07 pm

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.

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: Reqiest║Metal temperature

Post by CTZn » Wed Dec 16, 2009 10:32 pm

If I'm correct, one can use a tabulated spectrum to translate such emission data into Indigo (referring to link from lyc).
obsolete asset

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: Reqiest║Metal temperature

Post by lycium » Wed Dec 16, 2009 10:47 pm

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

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: Reqiest║Metal temperature

Post by fused » Thu Dec 17, 2009 11:10 am

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

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Re: Reqiest║Metal temperature

Post by dougal2 » Thu Dec 17, 2009 12:05 pm


User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: Reqiest║Metal temperature

Post by lycium » Thu Dec 17, 2009 12:11 pm

ahhh, there it is! i was trying to find that link earlier, i'd sent it to nick some time ago.

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Re: Reqiest║Metal temperature

Post by dougal2 » Thu Dec 17, 2009 12:20 pm

There is an implementation of that data set on this other website

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: Reqiest║Metal temperature

Post by fused » Thu Dec 17, 2009 1:10 pm

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
Attachments
4m.png
4m.png (973.3 KiB) Viewed 3836 times

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: Reqiest║Metal temperature

Post by lycium » Thu Dec 17, 2009 1:25 pm

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)...

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: Reqiest║Metal temperature

Post by CTZn » Thu Dec 17, 2009 9:13 pm

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 :)
obsolete asset

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: Reqiest║Metal temperature

Post by fused » Thu Dec 17, 2009 9:21 pm

you can have shaders which are evaluated per wavelenght, iirc.

edit: and yeah, u could also do texture lookups in them :)

Post Reply
55 posts

Who is online

Users browsing this forum: Ahrefs [Bot] and 17 guests