Forum: Poser Python Scripting


Subject: re: light types in poser 5

markschum opened this issue on Jun 25, 2004 ยท 4 posts


markschum posted Fri, 25 June 2004 at 1:05 PM

pardon if this has been answered before. In python there seems to be three settings for lights. The local light option does not appear in the light settings within Poser. Is this a hidden lighting option or a relic. ? I haven't tried it cause I am tired of blowing up my system with normal applications. regards


ynsaen posted Sat, 26 June 2004 at 3:56 AM

The local light is not a documented or suppoted feature of Poser 5, and has been present since Poser 3 within the codebase to my rather limited knowledge. It wasn't accessible until Poser 4, however, and has been used for various effects within some light sets. It is not a stable light in P5, but it is in P4. My guess is that it was originally intended to be exposed at a later time as an omnilight or point light, and it does behave somewhat like a global light with spotlight functions. However, it tends to screw up renders which take advantage of Firefly's raytrace settings. This is one of the reasons that many of the commercial light sets available for P4 tend to kill P5. Although it's a hell of a lot of reading and researching, the Local Light has been pretty well covered in the Poser Technical forum, but it is from a while back (at least two years), so it'll mean some legwork. If it's any consolation, I'll be doing that legwork myself here over the next couple months. Probably didn't help, and gave you a bunch of useless info, but I tried :)

thou and I, my friend, can, in the most flunkey world, make, each of us, one non-flunkey, one hero, if we like: that will be two heroes to begin with. (Carlyle)


markschum posted Sat, 26 June 2004 at 11:27 AM

Yes thanks, I am having enough fun trying to keep poser5 running on a slow system with win98. I REALLY don't need something that will mess it up.


lesbentley posted Mon, 12 July 2004 at 4:06 PM

As far as I have been able to tell, a type 2 light is the same as an infinite (type 0) light, but has the same shadow cam as a spot (type 1) light. I have never tried using a type 2 light in Poser 5.

You can use pz2 files to swich light types, i.e.

{<br></br>version<br></br>    {<br></br>    number <br></br>    }<br></br><br></br>light spotLight 1<br></br>  {<br></br>   lightType 2<br></br> }<br></br>light spotLight 2<br></br>      {<br></br>   lightType 2<br></br> }<br></br>light spotLight 3<br></br>      {<br></br>   lightType 2<br></br> }<br></br>light spotLight 4<br></br>      {<br></br>   lightType 2<br></br> }<br></br>light spotLight 5<br></br>      {<br></br>   lightType 2<br></br> }<br></br>}

A figure must be loaded in the document before this (os any other) pz2 will work, but it is not necessary for the lights to be parented to anything.

Generally speaking you should never change directly from type 0 to type 2 or visa versa, always do the intermediate step of changing to type 1 first, failure to observe this caution may lead to a rift in the space/time continum.