Page 1 of 1

Softvolume Light Occlusion Script HELP

PostPosted: Fri Dec 19, 2008 11:39 am
by Race
Hi again, back for the next round of help. I need to create a light to light the avatar away from where the main sun is but I am not sure how to add one without it mixing with the sun already there and making it real bright. I was told to try softvolumes, I read the page and saw some script about how to use it with lights but that wasnt enough, can someone lay out how the script would go? I need to block my new light from a certain area of the age, so thats where the softvolume would be. I hope I explained it clearly enough. Thanks for the help!

Okay I tried to set it up, but I am still seeing light in the area I am trying to exclude, here is the script.

Code: Select all
New Sun:
  lamp:
      softvolume: Sun Occlusion

Sun Occlusion:
      type: softvolume
       softvolume:
            - type: convex
               regions:
                  - Sun Occlusion


Thanks again!

Re: Softvolume Light Occlusion Script HELP

PostPosted: Fri Dec 19, 2008 7:57 pm
by Nadnerb
Try this, fixed a few indent errors, and set the field strengths so the light will be dark inside the volume rather than out, which would be the default.

Code: Select all
New Sun:
    lamp:
        softvolume: Sun Occlusion

Sun Occlusion:
    type: softvolume
    softvolume:
        type: convex
        softdist: 2
        instrength: 0
        outstrength: 1


Also, I'm not sure if having spaces in your object names will mess with the script, I'd suggest avoiding spaces.

Re: Softvolume Light Occlusion Script HELP

PostPosted: Sat Dec 20, 2008 4:11 pm
by Race
That works partially, I still get the extra light on the upper level but the bottom level looks fine.