Falloff controls for spotlights in DS4.5P?

MorpheonMorpheon Posts: 738
edited February 2013 in Daz Studio Discussion

Are there controls for the penumbra (or edge falloff) for DS's built-in spotlights? I can't seem to find them, and I'd like to be able to adjust the softness/hardness at the edge of the cone. One of the books on computer graphics that I have also refers to it as the "spread angle", but I'm thinkin' their definition isn't the same as DAZ's implementation (which controls how wide or how narrow the beam is, and doesn't seem to affect the hardness or softness of the cone of light at all). Thanks...

Post edited by Morpheon on
«1

Comments

  • KhoryKhory Posts: 3,854
    edited December 1969

    The "shader lights" in studio (Look in Lights/DS Default) have fall off. Word of warning though, they are going to over ride any lights already in the scene unless you hold down the ctrl (in windows) button and select add in the dialog box. They are also going to be different looking in the scene. The render beautifully though. It is late and my mind has started turning to mush..your also going to need to check and see if shadows work. I can't remember if they do or not and if they do it is only raytraced. You could set up your own lights in shader mixer with the proper shadows but you will need to do a search around the forum to find the instructions.

  • MorpheonMorpheon Posts: 738
    edited February 2013

    Khory said:
    The "shader lights" in studio (Look in Lights/DS Default) have fall off. Word of warning though, they are going to over ride any lights already in the scene unless you hold down the ctrl (in windows) button and select add in the dialog box. They are also going to be different looking in the scene. The render beautifully though. It is late and my mind has started turning to mush..your also going to need to check and see if shadows work. I can't remember if they do or not and if they do it is only raytraced. You could set up your own lights in shader mixer with the proper shadows but you will need to do a search around the forum to find the instructions.

    Excellent -- thank you! I had totally forgotten about those lights, and actually, I don't recall ever using them before. You're right: they do have several settings that the other lights in DS don't (including the decay settings I was looking for), and I'm curious why DAZ would go to the trouble of placing two different models of the same types of lights in DS. I would think it would make more sense to add these additional settings to the other lights (maybe under an "Advanced" tab, like with the Render settings). Anyhow, now that I know about them, I'm gonna play with 'em and see what they can do. Thanks again...

    Post edited by Morpheon on
  • BejaymacBejaymac Posts: 1,886
    edited December 1969

    Those lights are script samples that were part of the Script Dev kit in DS3, which is now included in DS4 so everyone has access to them, unless they have altered them since earlier builds then these lights don't cast shadows, you will need to edit their main file which is stored beside the main program files to get them to cast shadows.

  • ReDaveReDave Posts: 815
    edited February 2013

    Spread Angle in the standard spotlight does what you want. However it only affects light fuzziness. To affect shadow fuzziness you need to dial Shadow Softness as well. It's true that it links angle and general softness appearance, so it can be tricky to use.
    Fall-off on a spotlight is an indirect way of affecting fuzziness, and is a good work-around.

    Post edited by ReDave on
  • adamr001adamr001 Posts: 1,322
    edited December 1969

    The UberSpot product by Omnifreaker has falloff and image map support. I highly recommend both those and the UberPoint product.

  • wancowwancow Posts: 2,708
    edited December 1969

    Khory said:
    The "shader lights" in studio (Look in Lights/DS Default) have fall off. Word of warning though, they are going to over ride any lights already in the scene unless you hold down the ctrl (in windows) button and select add in the dialog box. They are also going to be different looking in the scene. The render beautifully though. It is late and my mind has started turning to mush..your also going to need to check and see if shadows work. I can't remember if they do or not and if they do it is only raytraced. You could set up your own lights in shader mixer with the proper shadows but you will need to do a search around the forum to find the instructions.

    I've got a shader spotlight loaded, but I can't seem to find the falloff control :(

  • MorpheonMorpheon Posts: 738
    edited December 1969

    Bejaymac said:
    Those lights are script samples that were part of the Script Dev kit in DS3, which is now included in DS4 so everyone has access to them, unless they have altered them since earlier builds then these lights don't cast shadows, you will need to edit their main file which is stored beside the main program files to get them to cast shadows.

    They definitely cast shadows, and have a number of shadow controls that the default lights don't (including shadow color, shadow opacity, samples, etc.).

  • MorpheonMorpheon Posts: 738
    edited December 1969

    adamr001 said:
    The UberSpot product by Omnifreaker has falloff and image map support. I highly recommend both those and the UberPoint product.

    I have issues with OmniFreaker's stuff and try to avoid using them any more than I have to. The documentation is nearly non-existent; what there is of it tends to be fairly arcane and difficult to decipher; and OmniFreaker himself is somewhat difficult to get a concise answer out of. Also, what seems to work in one version of DS seems not to work in another version. The only thing these script lights seem to lack (that I can see anyway) is that they can't be mapped, which is a real shame.

  • MorpheonMorpheon Posts: 738
    edited December 1969

    wancow said:
    Khory said:
    The "shader lights" in studio (Look in Lights/DS Default) have fall off. Word of warning though, they are going to over ride any lights already in the scene unless you hold down the ctrl (in windows) button and select add in the dialog box. They are also going to be different looking in the scene. The render beautifully though. It is late and my mind has started turning to mush..your also going to need to check and see if shadows work. I can't remember if they do or not and if they do it is only raytraced. You could set up your own lights in shader mixer with the proper shadows but you will need to do a search around the forum to find the instructions.

    I've got a shader spotlight loaded, but I can't seem to find the falloff control :(

    If you set "cone outside" and "cone inside" to the same value, you get a perfectly defined circle of light, with a razor-sharp edge. Setting "cone inside" to anything less than "cone outside" gets you a degree of decay. There is also a slider labeled "decay" (with a default of 0 and a max of 2), which I so far haven't had much luck figuring out how to use. Setting it 1 or 2 appears to give me a totally black scene, so I'm gonna have to play around with this some more. I thought it was the exponent for the light falloff, but that doesn't explain the results I'm getting from it.

  • wancowwancow Posts: 2,708
    edited December 1969

    I am not showing any cones at all in my scene view or the parameters for the shader spotlight :(

  • MorpheonMorpheon Posts: 738
    edited February 2013

    wancow said:
    I am not showing any cones at all in my scene view or the parameters for the shader spotlight :(

    Select "dzSpotLight". For a quick test, I create a plane primitive, x-rotate the light -90 degrees and y-translate it up about 300, and you should see a nice cone coming from the light with a pool of light on the plane below. Assuming you haven't changed anything yourself and that DS is configured properly, the settings under the "Display" heading for the light should show be set for Edge Opacity, Ray Opacity, etc.
    Or maybe I'm misunderstanding what you're saying. These aren't volumetric lights, so you're not going to see an actual cone of light in the render (and if there IS a setting for that, I haven't found it yet).

    Post edited by Morpheon on
  • wancowwancow Posts: 2,708
    edited December 1969

    nor am I seeing any sliders at all... All I have is a shader spotlight that doesn't seem to want to produce light, even though I have it set at 200% intensity. There are no sliders at all for falloff, spread angle or anything. The only light controls are shadows and intensity.

    Under Display all I have are: visible in render, render priority, visible, selectable.

    Nothing else... I'm using DS4.5.1.56

    Did something change or what? I've never actually tried these lights before.

  • wancowwancow Posts: 2,708
    edited December 1969

    interestingly, I have a sphere diameter in the DZPointlight shader light... still can't get it to actually produce any light, though...

  • MorpheonMorpheon Posts: 738
    edited December 1969

    wancow said:
    nor am I seeing any sliders at all... All I have is a shader spotlight that doesn't seem to want to produce light, even though I have it set at 200% intensity. There are no sliders at all for falloff, spread angle or anything. The only light controls are shadows and intensity.

    Under Display all I have are: visible in render, render priority, visible, selectable.

    Nothing else... I'm using DS4.5.1.56

    Did something change or what? I've never actually tried these lights before.

    Yeah, I'm also using DS 4.5.1.56 (Win7 64-bit).

    I kinda hate to suggest it, 'cause you may have to redo any changes or customizations you've made, but you might try resetting your defaults to factory (Edit >> Preferences >> Interface >> Restore Factory Defaults), and see if that gets you back your light controls, or hit F3 to bring up the "Customize DAZ Studio" dialog, and see if you can find something in there that might be affecting your lights.

    Sorry, that's all I've got...

  • adamr001adamr001 Posts: 1,322
    edited December 1969

    Sarsifus said:
    I have issues with OmniFreaker's stuff and try to avoid using them any more than I have to. The documentation is nearly non-existent; what there is of it tends to be fairly arcane and difficult to decipher; and OmniFreaker himself is somewhat difficult to get a concise answer out of. Also, what seems to work in one version of DS seems not to work in another version. The only thing these script lights seem to lack (that I can see anyway) is that they can't be mapped, which is a real shame.

    Documentation on UberPoints, I wrote and can be found here: http://forumarchive.daz3d.com/viewtopic.php?t=160239

    Only thing that differs for the spots are the cone controls.

  • MorpheonMorpheon Posts: 738
    edited February 2013

    adamr001 said:
    Sarsifus said:
    I have issues with OmniFreaker's stuff and try to avoid using them any more than I have to. The documentation is nearly non-existent; what there is of it tends to be fairly arcane and difficult to decipher; and OmniFreaker himself is somewhat difficult to get a concise answer out of. Also, what seems to work in one version of DS seems not to work in another version. The only thing these script lights seem to lack (that I can see anyway) is that they can't be mapped, which is a real shame.

    Documentation on UberPoints, I wrote and can be found here: http://forumarchive.daz3d.com/viewtopic.php?t=160239

    Only thing that differs for the spots are the cone controls.

    I've read through your tutorials, especially the one about UberEnvironment2, and really enjoyed them and learned a lot. However, the complexity of these products really demands some kind of vendor documentation and instruction (and by now, I've come to realize that DAZ doesn't do that), and all of the pages on OmniFreaker's site are at least a year out of date. Even YOU -- a moderator -- don't have answers to a number of features of UE2, and if anyone should be able to tap OmniFreaker's brains, it ought to be you (and in your entire thread discussing at length how to use one of his products, OmniFreaker could not rouse himself to post one comment explaining a feature, clarifying an issue, or offering a word of advice or encouragement -- and if YOU'RE not worthy of his participation and support, what about us mere customers). The fact that the documentation and vendor support is so spotty is hardly a recommendation to use these products, and leaving it up to the community to try to puzzle them out piece-by-piece is pretty lame...

    Post edited by Morpheon on
  • wancowwancow Posts: 2,708
    edited December 1969

    Sarsifus said:

    I kinda hate to suggest it, 'cause you may have to redo any changes or customizations you've made, but you might try resetting your defaults to factory (Edit >> Preferences >> Interface >> Restore Factory Defaults), and see if that gets you back your light controls, or hit F3 to bring up the "Customize DAZ Studio" dialog, and see if you can find something in there that might be affecting your lights.

    Sorry, that's all I've got...

    Not a problem for me. Unfortunately, nothing happened.

    This is actually a shame... I'd really like to learn to use these lights... which I obviously have no clue how to do...

  • MorpheonMorpheon Posts: 738
    edited February 2013

    wancow said:
    Sarsifus said:

    I kinda hate to suggest it, 'cause you may have to redo any changes or customizations you've made, but you might try resetting your defaults to factory (Edit >> Preferences >> Interface >> Restore Factory Defaults), and see if that gets you back your light controls, or hit F3 to bring up the "Customize DAZ Studio" dialog, and see if you can find something in there that might be affecting your lights.

    Sorry, that's all I've got...

    Not a problem for me. Unfortunately, nothing happened.

    This is actually a shame... I'd really like to learn to use these lights... which I obviously have no clue how to do...

    Well, to me at least, it doesn't sound as if it's anything YOU'RE doing wrong -- it sounds like something simply isn't working right, but I don't know how to tell you to fix it, sorry. Hopefully, someone else can...

    Post edited by Morpheon on
  • Richard HaseltineRichard Haseltine Posts: 100,765
    edited December 1969

    Decay is the rate at which the light dims with distance, as a power. 0 means it doesn't dim, 1 means it dims in proportion to distance from the light (usually used with the begin and end settings - the distance in cm from the light at which the brightness starts to drop and the distance at which it hits black), 2 is the physical inverse-square law fall off, with the light getting four times as dim at twice the distance from the light (like the DAZ default point-light). Using 2 will often give a dark scene, especially if the gamma setting is 1, but 1 shouldn't unless the end distance is smaller than the distance to the items in the scene.

  • MorpheonMorpheon Posts: 738
    edited December 1969

    Decay is the rate at which the light dims with distance, as a power. 0 means it doesn't dim, 1 means it dims in proportion to distance from the light (usually used with the begin and end settings - the distance in cm from the light at which the brightness starts to drop and the distance at which it hits black), 2 is the physical inverse-square law fall off, with the light getting four times as dim at twice the distance from the light (like the DAZ default point-light). Using 2 will often give a dark scene, especially if the gamma setting is 1, but 1 shouldn't unless the end distance is smaller than the distance to the items in the scene.

    So the Decay setting IS the exponent for the falloff, after all, with 1 being linear (inverse) and 2 quadratic (square inverse). Still, changing ONLY the Decay setting on the dzSpotLight, a setting of .5 with Intensity set to 100% gives me a very dim render, and anything with Decay set higher is essentially black (evidently, the light has completely decayed before it can illuminate anything).

    Even with Decay set to 1, and with Intensity set to a ridiculously high 2000%, still renders as dim as with Decay set to .5 and intensity set to 100%.

    Is there a way to convert these lights over to lumens or candlepower or watts or something more real-world?

  • MorpheonMorpheon Posts: 738
    edited February 2013

    This is a 1-meter red cube sitting on a green plane, with a dzSpotLight set about 350 units above and to the right, with Decay set to 2 and with Intensity set to 1M % (ONE MILLION PERCENT!!!). Pretty friggin' dim. I'm thinkin' the decay model on these lights is broken.

    Test_001.jpg
    756 x 725 - 26K
    Post edited by Morpheon on
  • Richard HaseltineRichard Haseltine Posts: 100,765
    edited December 1969

    Sorry, the start/end stuff was in relation to the uber lights - the Shader Mixer lights don't have that (which is a pain as it's a good way to stop the system wasting time calculating shadows once the light is going to be invisible anyway). Yes, you do need to set the Intensity high with the DS falloff lights - though I'm surprised it's that bad with 1. Note that, as far as I know, the decay is always an integer - I've certainly had little sign of success plugging a fraction into the uber lights.

  • MorpheonMorpheon Posts: 738
    edited December 1969

    Sorry, the start/end stuff was in relation to the uber lights - the Shader Mixer lights don't have that (which is a pain as it's a good way to stop the system wasting time calculating shadows once the light is going to be invisible anyway). Yes, you do need to set the Intensity high with the DS falloff lights - though I'm surprised it's that bad with 1. Note that, as far as I know, the decay is always an integer - I've certainly had little sign of success plugging a fraction into the uber lights.

    Supposedly, you CAN use non-integer values for decay, but that's software-dependent and not universally supported. I'm just amazed that a one-megawatt spotlight (assuming DAZ light units are measured in watts) barely illuminates a scene with a real-life decay setting of 2. Even with their enhanced features, these lights are looking less and less useful to me, now that I see how they actually perform.

  • MorpheonMorpheon Posts: 738
    edited February 2013

    Same setup, except this time the light's Intensity has been set to 10M% (ten million percent), with a Decay of 2. Is there even such a thing as a 10 mega-watt lamp?

    Test_002.jpg
    756 x 725 - 39K
    Post edited by Morpheon on
  • mjc1016mjc1016 Posts: 15,001
    edited December 1969

    Sarsifus said:
    I'm just amazed that a one-megawatt spotlight (assuming DAZ light units are measured in watts)

    They aren't.

    And as far as it goes, these aren't DAZ creations...they are just translations of standard RSL lights. So, the 'features' and controls are RSL. Which means, 'not real world equivalent'. It's just a scale that pretty much is how much on/off the light is compared to a lower/higher value on the slider.

    So you need to quit thinking that 10,000,000 is actually 'ridiculous'...because that figure has no 'wattage' or any other unit attached to it. And when you look at it, 350 'units' above the object could be very significant, if the fall off is /cm. So that if 350 units is in cm, and every cm the light level drops by 1/4...by 350, you've got next to nothing left (1400x less)...even if it's meters, 3 and half meters is going to be something like 14 times less...

  • Richard HaseltineRichard Haseltine Posts: 100,765
    edited December 1969

    What is your gamma setting, in Render Settings>Advanced?

  • MorpheonMorpheon Posts: 738
    edited December 1969

    What is your gamma setting, in Render Settings>Advanced?

    Gamma is set to 1 by default, and I've never changed it.

  • Tramp GraphicsTramp Graphics Posts: 2,411
    edited December 1969

    mjc1016 said:
    Sarsifus said:
    I'm just amazed that a one-megawatt spotlight (assuming DAZ light units are measured in watts)

    They aren't.

    And as far as it goes, these aren't DAZ creations...they are just translations of standard RSL lights. So, the 'features' and controls are RSL. Which means, 'not real world equivalent'. It's just a scale that pretty much is how much on/off the light is compared to a lower/higher value on the slider.

    So you need to quit thinking that 10,000,000 is actually 'ridiculous'...because that figure has no 'wattage' or any other unit attached to it. And when you look at it, 350 'units' above the object could be very significant, if the fall off is /cm. So that if 350 units is in cm, and every cm the light level drops by 1/4...by 350, you've got next to nothing left (1400x less)...even if it's meters, 3 and half meters is going to be something like 14 times less...Daz Studio 4 units are set in Centimeters. 1 unit =1cm. That would probably explain the huge drop-off.

  • MorpheonMorpheon Posts: 738
    edited February 2013

    mjc1016 said:
    Sarsifus said:
    I'm just amazed that a one-megawatt spotlight (assuming DAZ light units are measured in watts)

    They aren't.

    And as far as it goes, these aren't DAZ creations...they are just translations of standard RSL lights. So, the 'features' and controls are RSL. Which means, 'not real world equivalent'. It's just a scale that pretty much is how much on/off the light is compared to a lower/higher value on the slider.

    So you need to quit thinking that 10,000,000 is actually 'ridiculous'...because that figure has no 'wattage' or any other unit attached to it. And when you look at it, 350 'units' above the object could be very significant, if the fall off is /cm. So that if 350 units is in cm, and every cm the light level drops by 1/4...by 350, you've got next to nothing left (1400x less)...even if it's meters, 3 and half meters is going to be something like 14 times less...

    Sorry, but what exactly do you mean by "RSL lights"? Googling the term brings up "Roberts Step-Lite System is a unique lighting system designed to provide an aesthetic solution to the problem of lighting interior and exterior steps, handrails and cove moulding for commercial, as well as residential applications " as well as "In a remote-source lighting (RSL) system, light from a single source is carried over a distance to one or more light outlets, or is emitted evenly along the way". Which were you referring to?

    These are both real-world light applications, and any real-world light application will be measured in terms of lumens or candlepower or wattage, and a faithful model of that ought to show it (and I'd say someone has made some attempt to make these script lights somewhat faithful). To say that the value is essentially meaningless in a real-world context is a little difficult for me to grasp. It's just very odd that the light from a dzSpotLight at its default setting of 100% Intensity with a real-world decay of 2 will attenuate pretty much completely before it even leaves its source.

    Maybe I should add that I'm not doubting you -- it just strikes me as odd that someone would go to the trouble of creating a light model that incorporates such real-world features as decay, and then totally ignore the fact that the light emitted by such a source should be referenced or measured in terms of real-world units like lumens, candlepower, or wattage. I hope that makes some kind of sense. It would make a lot of sense -- to ME, at least -- for someone to create a light model and say "with a real-world decay of two, let's set the default Intensity at 100 watts", which means that someone could create an instance of such a light and know that it will illuminate a fairly good-sized room by itself.

    I also found this: "RSL - Directional Light Source Shaders" (http://www.fundza.com/rman_shaders/lights/directional/index.html) -- which appears to be a discussion of light models/shaders in Maya and RenderMan. And isn't 3Delight derived from or related to RenderMan? It's a pretty technical read, and just skimming through it, I'm not seeing anything directly relevant to this discussion.

    Post edited by Morpheon on
  • MorpheonMorpheon Posts: 738
    edited February 2013

    In another test, I set the dzSpotLight's intensity back to 100% and its Decay to 2, and parked it about 5 units (5 cm.) directly above the cube, at which point, it rendered out to a small circle of light perhaps 5 cm. in diameter -- which means that with a real-world Decay of 2 and with its default Intensity setting of 100%, this light is about as powerful as a small pocket flash-light with a dead battery.

    Post edited by Morpheon on
Sign In or Register to comment.