Forum: Poser - OFFICIAL


Subject: How do I make a surface a light?

Pagrin opened this issue on Jun 19, 2007 · 107 posts


BagginsFrodo posted Mon, 25 June 2007 at 3:46 PM

jdcooke,

Oh darn, you're absolutely right. The node "BugFixUserDefined" will not work for any coordinates that are negative, because I'm trying to take the square root of a negative number. Doh!

I hadn't considered that problem. Hmmm. It may be necessary to drop the use of UserDefined node for the light coordinates. I thought I was clever in dealing with the Poser bug that squares your typed-in values.

Here's a workaround. Change the parameters in the UserDefined node to 1,1,1. Connect each of those to a Math_Functions:Add node. You'll need 3 of them. Use THOSE to type in your light coordinates. (Enter your value in Value_1 of those adds. Leave a 0 in Value_2)  Then delete the BugFixUserDefined node and connect the Light_XYZ_Position node to the Value_1 input on Distance_To_Light. Then you should have no more problems with negative coordinates.

The reason this will work is that the UserDefined node does not square the values plugged into it. It only squares the numbers you type into its parameters.