Softvolume Light Occlusion Script HELP

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Softvolume Light Occlusion Script HELP

Postby Race » Fri Dec 19, 2008 11:39 am

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!
Race
 
Posts: 51
Joined: Tue May 20, 2008 9:32 am

Re: Softvolume Light Occlusion Script HELP

Postby Nadnerb » Fri Dec 19, 2008 7:57 pm

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.
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Softvolume Light Occlusion Script HELP

Postby Race » Sat Dec 20, 2008 4:11 pm

That works partially, I still get the extra light on the upper level but the bottom level looks fine.
Race
 
Posts: 51
Joined: Tue May 20, 2008 9:32 am


Return to Building

Who is online

Users browsing this forum: No registered users and 3 guests

cron