<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Photometric Light Creation? in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150780#M16450</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Every-time while executing the script, it’ll check all the cameras in the scene and ‘ll connect mia_exposure_photographic to all of ‘em. &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;That's what I thought it was supposed to do. But if I run the script in a scene with multiple cameras, it still only connects the exposure control to the default perspective camera...?</description>
    <pubDate>Tue, 25 Jan 2011 06:29:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-25T06:29:03Z</dc:date>
    <item>
      <title>Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150767#M16437</link>
      <description>I've used Maya for a while, but most of my work is done in 3ds Max.  I am exploring the Maya 2011 trial version, and I'm trying to figure out how to set up proper photometric lights.  In 3ds Max, a photometric light is just a click away.  But it seems that in Maya I have to first create a standard light, then add a photometric light shader and a photon emitter.  Is this correct?  Is there a faster way to do this?  Can a script be made that creates the light for you?&lt;BR /&gt;&lt;BR /&gt;I've been searching around for some good Mental Ray for Maya resources.  Can you recommend any of your favorites?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Tue, 11 May 2010 04:10:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150767#M16437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-11T04:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150768#M16438</link>
      <description>Just thought I'd try and bump up this thread.  I would really like to know if a script can be made that will create a new Area light and assign the mia_photometric light shaders to the light shader and photon shader components.  This &lt;I&gt;seems &lt;/I&gt;like an easy task for someone who's familiar with MEL.  But as I'm not one of those people, maybe its not as easy as I assume...&lt;BR /&gt;&lt;BR /&gt;Any scripters out there know how to do this?</description>
      <pubDate>Fri, 10 Dec 2010 23:38:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150768#M16438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-10T23:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150769#M16439</link>
      <description>If you can provide a sample scene file &amp;amp;#40;so that I can see what exactly you want&amp;amp;#41;, may be I can help you with this script. Looks like an easy Job.</description>
      <pubDate>Thu, 20 Jan 2011 08:57:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150769#M16439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-20T08:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150770#M16440</link>
      <description>Here is a sample scene with a sample light all set up.  Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;Edit:&lt;BR /&gt;&lt;BR /&gt;The script needs to be able to create a new Area Light and mia_photometric_light shader each time it is run.&lt;BR /&gt;&lt;BR /&gt;(1) Create a new Area Light&lt;BR /&gt;(2) Enable "Use light shape" within the mental ray options&lt;BR /&gt;(3) Change the shape from the default rectangle to a sphere&lt;BR /&gt;(4) Set samples to 32&lt;BR /&gt;(5) Create a new mia_photometric_light node and assign it as a Light Shader and Photon Emitter&lt;BR /&gt;(6) In the mia_photometric_light node set the "Manual Peak Intensity Cd" to 2000&lt;BR /&gt;&lt;BR /&gt;You'll notice that I also have a mental ray exposure node assigned to the camera.&lt;P&gt;&lt;A class="migr-att-link" href="http://area.autodesk.com/userdata/forum/p/photometriclightscene.zip" target="_blank"&gt;photometriclightscene.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2011 14:36:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150770#M16440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-20T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150771#M16441</link>
      <description>Ok, so here's what I've come-up with, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.creativecrash.com/maya/downloads/scripts-plugins/lighting/c/photo-metric-light-setup" target="_blank"&gt;https://www.creativecrash.com/maya/downloads/scripts-plugins/lighting/c/photo-metric-light-setup&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It works 100% accurate only if there's no Other Area Light in the Scene.&lt;BR /&gt;This limitation is due to the fact that I am still working on fetching the newly created areaLight-name in a variable.&lt;BR /&gt;&lt;BR /&gt;Rest all works fine I guess, just source the script and it'll create a setup for you. I'll try to enhance it with UI and other stuff as and when I get time. Please check if I've left anything else.&lt;BR /&gt;&lt;BR /&gt;Now here's a query for you, can elaborate the purpose of this kind of setup, I mean how does it add-up to your Image.</description>
      <pubDate>Fri, 21 Jan 2011 11:32:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150771#M16441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-21T11:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150772#M16442</link>
      <description>Yeah the tough part is getting it to work so that it creates new nodes each time so that it can be used repeatedly in the same scene and session.&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Now here’s a query for you, can elaborate the purpose of this kind of setup, I mean how does it add-up to your Image.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;In the Maya help, look for the mental ray "Sun and Sky" section.  Towards the end of that it discusses Photometric Light.  Here is a copy and paste of part of it:&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;The Problem&lt;BR /&gt;One difficulty in using base mental ray shaders to render a physically correct scenes with GI (using photons), is in balancing the photon energy and the direct light correctly. The reason for this is that the intensity is generally specified as an intensity for some given direction (for example the peak intensity on a spotlight), but the energy is the sum of (or technically, the integral) of all such intensities in all directions.&lt;BR /&gt;&lt;BR /&gt;So for example for a spotlight, for the same peak intensity, you would need different photon energies depending on the width of the spotlight cone, and depending on the shape of the intensity distribution within that cone. And while this can be calculated for a mathematically defined intensity distribution (such as a spotlight cone) what about an arbitrary distribution as defined by a light profile?&lt;BR /&gt;&lt;BR /&gt;Furthermore, to ensure optimal convergence of the photon solution for a light which varies its intensity based on the direction of light (e.g. a spotlight or a light using a light profile), instead of emitting photons of different energy in different directions, one should emit photons of similar energy in different densities. So the amount of energy-per-area (the density of photon energy) at a given point must match the direct light arriving at that point.&lt;BR /&gt;&lt;BR /&gt;The Solution&lt;BR /&gt;To solve all these issues, we introduce the mia_photometric_light. It takes all the guesswork out of balancing the photon energy with the light intensity by peforming a numerical integration of the chosen intensity distribution to calculate the proper photon energy automatically, as well as takes care of adapting the photon density to the distribution, all automatically.&lt;BR /&gt;&lt;BR /&gt;To use it, simply use the same instance of the shader as both light and photon shader on a light source. The light must have an origin (i.e. the shader does not work on an infinite light source). The light must be set to emit photons, and must be given a nonzero energy value (although the actual value will be overriden by the shader, a nonzero energy value is required, or mental ray will not emit any photons at all for the light). The exponent should always be 2. If the light is a spotlight, a spread value should be used. See the mental ray manual about lights.&lt;/I&gt;</description>
      <pubDate>Sat, 22 Jan 2011 01:14:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150772#M16442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-22T01:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150773#M16443</link>
      <description>Thanks for the Info, and I've done changes to make it work everytime-and-everywhere (with Maya 2011+ ). Check if this works for you.&lt;BR /&gt;Regards.</description>
      <pubDate>Sat, 22 Jan 2011 06:45:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150773#M16443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-22T06:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150774#M16444</link>
      <description>Your above link doesn't work for me.  Is there another link to use?</description>
      <pubDate>Sat, 22 Jan 2011 07:42:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150774#M16444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-22T07:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150775#M16445</link>
      <description>CeativeCrash says, File Pending Moderation, so Check this Attachment.&lt;P&gt;&lt;A class="migr-att-link" href="http://area.autodesk.com/userdata/forum/p/photometriclightsetup.zip" target="_blank"&gt;photometriclightsetup.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2011 08:17:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150775#M16445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-22T08:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150776#M16446</link>
      <description>Thanks this is great!  There are a couple issues I've found however.&lt;BR /&gt;&lt;BR /&gt;(1) When it creates the light, the "Illuminates by default" option is unchecked, so the light is not active.&lt;BR /&gt;&lt;BR /&gt;(2) It creates a new mia_exposure_simple node each time the button is pressed.  It should first check and see if an expsure node already exists on a camera and if so, not create a new one.&lt;BR /&gt;&lt;BR /&gt;(3) I should have said that it should make a mia_exposure_photographic node instead but I failed to mention that.  But I see it is as simple as replacing the node name in your script.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help with this!</description>
      <pubDate>Mon, 24 Jan 2011 05:01:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150776#M16446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-24T05:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150777#M16447</link>
      <description>Done: Check it out.&lt;P&gt;&lt;A class="migr-att-link" href="http://area.autodesk.com/userdata/forum/p/photometriclightsetup_1.zip" target="_blank"&gt;photometriclightsetup_1.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2011 07:29:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150777#M16447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-24T07:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150778#M16448</link>
      <description>Very nice.  It looks like your code is trying to assign the exposure control to all the "renderable" cameras in the scene.  I added a couple more cameras and ran the script, but it only connects the exposure control to the default perspective camera. Can it assign to the default perspective, and all other newly created cameras?  Its not a big deal though I guess to manually connect them.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.  You've turned about 20 clicks and multiple data entries into one button as it should be!</description>
      <pubDate>Tue, 25 Jan 2011 01:10:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150778#M16448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T01:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150779#M16449</link>
      <description>Is it ok if it connects all the cameras to mia_exposure_photographic? coz i can't check what's new and what's old in your scene.&lt;BR /&gt;&lt;BR /&gt;Every-time while executing the script, it'll check all the cameras in the scene and 'll connect &lt;B&gt;mia_exposure_photographic &lt;/B&gt;to all of 'em.</description>
      <pubDate>Tue, 25 Jan 2011 06:07:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150779#M16449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T06:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150780#M16450</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Every-time while executing the script, it’ll check all the cameras in the scene and ‘ll connect mia_exposure_photographic to all of ‘em. &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;That's what I thought it was supposed to do. But if I run the script in a scene with multiple cameras, it still only connects the exposure control to the default perspective camera...?</description>
      <pubDate>Tue, 25 Jan 2011 06:29:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150780#M16450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T06:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150781#M16451</link>
      <description>OK, check the attachment:&lt;P&gt;&lt;A class="migr-att-link" href="http://area.autodesk.com/userdata/forum/p/photometriclightsetup_2.zip" target="_blank"&gt;photometriclightsetup_2.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2011 06:35:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150781#M16451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T06:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150782#M16452</link>
      <description>That fixed that issue, but now the script won't work after the exposure control has been assigned.  If I try to run it again in the same scene, it says:&lt;BR /&gt;&lt;BR /&gt;"//Warning: 'mia_exposure_photographic1.message' is already connected to 'frontShape.miLensShader'."&lt;BR /&gt;&lt;BR /&gt;And then it stops and doesn't do the rest of the script.</description>
      <pubDate>Tue, 25 Jan 2011 06:52:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150782#M16452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T06:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150783#M16453</link>
      <description>Sorry, my bad, I took MEL for granted :), let me fix this and 'll get back to you in some time. You can play with the old version till then.</description>
      <pubDate>Tue, 25 Jan 2011 07:07:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150783#M16453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T07:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150784#M16454</link>
      <description>Sounds good.  Thanks for your help!</description>
      <pubDate>Tue, 25 Jan 2011 13:49:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150784#M16454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T13:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150785#M16455</link>
      <description>&amp;lt;b&amp;gt;EDIT: January 31, 2011:&lt;BR /&gt;now this scripts connects mia_exposure_photographic to all cameras in Scene/&amp;lt;/b&amp;gt;&lt;BR /&gt;&lt;BR /&gt;And CreativeCrash link is working perfectly. Finally they approved the file &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.creativecrash.com/downloads/27868" target="_blank"&gt;Download file Here (CreativeCrash)&lt;/A&gt;&lt;BR /&gt;Cheers!!! and tell me if anything goes wrong...</description>
      <pubDate>Mon, 31 Jan 2011 12:49:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150785#M16455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-31T12:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Photometric Light Creation?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150786#M16456</link>
      <description>Thanks!  I haven't had much time to test it, but so far it seems to work great!&lt;BR /&gt;&lt;BR /&gt;One thing I noticed - the lights that are created with this script do not show up in the "Lights" tab of the Hypershade.  Do you know what could be causing this?</description>
      <pubDate>Tue, 01 Feb 2011 18:50:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/photometric-light-creation/m-p/4150786#M16456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-01T18:50:13Z</dc:date>
    </item>
  </channel>
</rss>

