My previous attempt was unclear so I'm rephrasing the question:

I'm making a promo video for a certain type of lighting and at one point, I'd like to show the difference in the spectral power distribution (see graph below) of the light output for each type of bulb. In other words, I want to use the SPD to color the light emitted by the bulb into the room based on wavelength and output power.

I have the SPD, I just need to use it somehow to color the emission source. This is all I can think of but it's not exactly mathematical and I'm not sure it really captures a realistic representation and I don't know if it just basically averages the colors together:

enter image description here

It produces this light:

enter image description here

But I would rather have the emitted light follow a curve similar to this if at all possible:

enter image description here

Thanks for your help.

  • $\begingroup$ You may want to consider using an engine such as LuxRender or Maxwell which will directly support SPDs via a text file or the like. $\endgroup$ – JtheNinja Jun 20 '17 at 2:12
  • $\begingroup$ That's very interesting, I've never used anything but Cycles, I'll look into it. $\endgroup$ – bertmoog Jun 20 '17 at 2:17
  • 1
    $\begingroup$ Have you looked at the wavelength and blackbody nodes? $\endgroup$ – sambler Jun 20 '17 at 3:15
  • $\begingroup$ I have used the Blackbody node but I didn't even know about the wavelength node... checking it out... $\endgroup$ – bertmoog Jun 20 '17 at 3:17
  • $\begingroup$ Hmmm... would be neat to have an input to the wavelength node to determine the Q of the color selection but I'm not sure how to do it. $\endgroup$ – bertmoog Jun 20 '17 at 3:23

To accomplish this you would require a wavelength to XYZ conversion, and then from XYZ to sRGB / REC.709 primaries conversion.

Make sure that you obtain linearized RGB values from your wavelengths. If you are using normalized wavelengths, display linear (0.0 to 1.0) would suffice.

| improve this answer | |
  • $\begingroup$ 1.) When you say XYZ to sRGB conversion, do you just mean to ensure the display color space is in sRGB (i.e. there's no sRGB conversion node unless you mean combine RGB)? 2.) How will using the XYZ channels help to plot a curve over the spectrum with certain high Q peaks? $\endgroup$ – bertmoog Jun 20 '17 at 15:49
  • $\begingroup$ Also, according to this: blender.stackexchange.com/questions/31375/… .... the RGB and XYZ nodes are identical except for nomenclature. $\endgroup$ – bertmoog Jun 20 '17 at 16:40
  • $\begingroup$ Uh... Not spatial XYZ. CIE 1931 XYZ. You won't be able to use Blender to achieve this. $\endgroup$ – troy_s Jun 21 '17 at 1:20
  • $\begingroup$ Ah, I see. Blender can't do this even for a simulation? $\endgroup$ – bertmoog Jun 21 '17 at 3:15
  • 2
    $\begingroup$ If you were careful and know the precise values to set up in nodes as well as the intended meaning and how to use the results, I suppose a very driven person could do it. It would be hell however. :) $\endgroup$ – troy_s Jun 22 '17 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.