Something frustrating happened to me today that I've never experienced before. I've been working on a spooky scene for Halloween in Poser 4 and made a lot of progress today by meticulously setting up the lighting which consisted of eight spotlights with various falloff zones and intensities. Earlier in the day I had added the monster character I wanted to use in the scene, the (free) Lemurtek Wolfgang werewolf.
Normally as I'm working on a scene whenever I finish some significant aspect I'll save the scene as a slightly different name (file1a, file 1b, etc) because I have an old computer and I sometimes have troubles with Poser 4 and memory allocation. I had Poser open continuously for about 7 hours today working on this scene, though, and when I finally exited Poser and came back a little later my pz3 file wouldn't open. Poser just sat there showing an hourglass as it tried to open the scene, but this process never finished even after waiting a considerable amount of time. I was upset, but went back and tried to open the pz3 from 1 step earlier. It wouldn't open either (same behavior), and I was even more upset.
After a lot of experimenting I determined that the problem was the werewolf character. I just downloaded it and never used it before, and it seems that it doesn't work for me; whenever I try to save a Poser scene containing this character, I can't open the pz3 file later (I verified this by making a blank scene with just the werewolf and the ground plane--I couldn't open that save file). The readme file for the werewolf suggests deleting the PoserGeometries rsr file if the creature won't load. I did this and it didn't matter. Since adding the werewolf was the first thing I did today in the scene, all my considerable work for the day seemed lost.
The way I recovered most of my work was to start a blank Poser scene and import the faulty pz3 file into the new empty scene. Luckily almost everything imported properly, strangely including the werewolf (although if I saved the new scene with that character present the new pz3 wouldn't open). I deleted the problem character.
Unfortunately not everything would import from the original/faulty pz3 file, namely the all the lights I had spent so much time on. The lights loaded all clumped together and were faulty somehow. When I selected any of them no parameter dials would appear, and although the lights appeared as black dots in the lighting globe thingy they were shining a bright white light that couldn't be adjusted. I deleted all the lights.
With that lengthy preface I'll now get to my point in this thread. After briefly considering giving up on the whole scene rather than trying to reconstruct the lighting, I had a thought that the lighting info was stored in the faulty pz3 file so I opened it in a text editor. After deciphering what was going on with the way the info was stored, I was able to pretty quickly set up the lighting in my new non-werewolf scene by just looking at the parameters in the pz3 file. This was much faster than trying to manually do the lights over again.
If anyone else ever has to do this, the way the lighting info is stored is a little confusing. After opening the pz3 file in a text editor, search for the word "light" and eventually you'll come to the section where the light info is stored. The start of it generally looks like this:
- light spotLight 5
- {
- storageOffset 0 0.3487 0
- geomResource 7
- lightType 0
- name LIGHT1
- off
- bend 1
- dynamicsLock 1
- hidden 0
- addToMenu 1
- castsShadow 1
- includeInDepthCue 1
- parent UNIVERSE
- channels
- {
- liteFalloffStart Angle Start
- {
- name Angle Start
- initValue 0
- hidden 1
- forceLimits 4
- min 0
- max 160
- trackingScale 0.25
- keys
- {
- static 0
- k 0 0
- sl 1
- spl
- sm
- }
- interpStyleLocked 0
- }
- liteFalloffEnd Angle End
- {
- name Angle End
- initValue 70
- hidden 1
- forceLimits 4
- min 0
- max 160
- trackingScale 0.25
- keys
- {
- static 0
- k 0 70
- sl 1
- spl
- sm
- }
- interpStyleLocked 0
- }
The confusing part is that most of this info is not needed to reconstruct a light setting. For each of the light parameters/channels (Angle Start, Angle End, etc) the value you should set the light parameter dial in your scene is the second digit after the "k" value. For example in the pz3 clip above for liteFalloffEnd Angle End k is "0 70" so you'd set your "Angle End" parameter dial in Poser to 70. If the "rotateX xrot" parameter (not shown above) has "0 -22.6729" for k, you'd set your x rotation for the light on the parameter dial to -22.6729 degrees.
One more confusing thing is that all lights, even infinite lights, are listed as spotlights in the pz3. The only way to tell that a light is infinite rather than a spotlight is that the k value for the one or more of the parameters "translateZ ztran," "translateX xtran," or "translateY ytran" is a huge number, in my case 95.2 ztran. Nonetheless to exactly restore infinite lights I found that I first had to set all the parameters as if it was a spotlight and only then go to the light properties in Poser and change the light from spotlight to infinite light.
Using this technique I was able to pretty quickly reconstruct the lighting in my new/imported good scene by creating new lights, looking at the parameters in the faulty pz3, and putting in those settings on the new lights.
Perhaps someone with more knowledge of text-editing pz3 files could help me with two questions that I wasn't able to resolve.
1) I wasn't able to exactly reconstruct my camera angles from the faulty pz3 by copying the camera info in the way I did with the lights. The cameras in the new scene were at similar but slightly different angles using the old info, and were way off place in the Z plane. Why would this be?
2) Would there have been a better way to handle the whole general situation? I was thinking that it might have been possible to edit the pz3 to remove just any references to the problem werewolf character but didn't feel comfortable trying this, especially with my text editor struggling and crawling through the 15 MB text of the pz3. Would this have been safe to try, and would it have worked effectively? Is everything for each 3d object in one continuous area of the pz3, or is the info spread out all over?
So overall after some frustration and learning, my scene is mostly back to where it was without too much trouble except that I now need to find a new scary monster to terrorize poor Posette. Does anyone know of any good and free monster characters that would work in Poser 4?
Thanks
Endosphere