Forum: Poser Technical


Subject: The double zero line in a material block?

maclean opened this issue on Jul 29, 2003 ยท 11 posts


maclean posted Tue, 29 July 2003 at 6:26 PM

Re a mention I saw a while back of a possible problem in Poser 5 with MAT files stored in the Camera folder, I've been doing some checking. Someone said the the double-zero line was necessary for these files to work properly in p5.

        material slats
                {
                KdColor 1 1 1 1 
                KaColor 0 0 0 1 
                KsColor 0.560754 0.560754 0.560754 1 
                TextureColor 1 1 1 1 
                NsExponent 50.8641 
                tMin 0 
                tMax 0 
                tExpo 0 
                bumpStrength 1 
                ksIgnoreTexture 0 
                reflectThruLights 1 
                reflectThruKd 0 
                textureMap ":runtime:textures:room creator:macwood01.jpg"
                                0 0 
                bumpMap NO_MAP
                reflectionMap NO_MAP
                transparencyMap NO_MAP
                ReflectionColor 1 1 1 1 
                reflectionStrength 1 
                }

So, looking at some cr2s, I notice that this 00 line only appears in materials which have a texture. No texture - no double-zero.

Does anyone have any more info about what this line does? And specifically, it's function in MAT files?

mac


ronstuff posted Tue, 29 July 2003 at 7:18 PM

HI Mac- I'm not an expert on this topic, but I can verify your observaton that the 0 0 parameter line only appears if there is a UV texture for the material. I believe that the numbers 0 0 are actually UV offsets which Poser uses for positioning the UV map. if you change one value from 0 to 0.5 for example, the texture will be shifted half way (50% of the dimension) in the direction (positive or negative) specified. Without this data, Poser 5 cannot position a UV texture and therefore will either ignore the mat pose file or sometimes hang up. If no texture is applied to the material, there should not be an offset line.


maclean posted Tue, 29 July 2003 at 7:29 PM

Terrific, ron. I was actually wondering what changing the values would do and was going to try it tomorrow. You've saved me some work. So these lines are definitely necessary for poser 5? Well, that's ok. I was checking my MATs and found that a couple were missing these lines. I'll add them in now just to make sure they'll be p5-compliant. Thanks mac


Migal posted Wed, 30 July 2003 at 6:24 AM

Ahhhh... So that's what those numbers mean. :-)


MarianneR posted Sun, 03 August 2003 at 3:31 AM

In Poser 4 those 0 0-lines are for the Mac. On a Mac if you save a character with textures to the library, those numbers are not zeros anymore. Instead they point to the directory (folder) that the texture is stored in, as every folder on a Mac has a unique number. When you reload the character Poser seems to find the textures instantly.


maclean posted Sun, 03 August 2003 at 11:16 AM

Marianne, That's an interesting piece of info. What I wonder is why these numbers would appear on PC-installed versions of poser. You could be right, but could it be that this is a secondary, mac only function? mac (who doesn't use one)


MarianneR posted Sun, 03 August 2003 at 4:19 PM

I think I remember reading somewhere that Poser started out as a Mac application. If they made the pc version after the Mac one they probably reused part of the code. The program Macinstaller also puts these numbers into the cr2:s etc that it installs. This is what it might look like: textureMap "V3BodyMHi.jpg" -1 987626 bumpMap "V3BodyBHi.bum" -1 987626 I suppose the first number (-1) is for the hard disk as all files I've seen have the same number. The second one varies, but here you can see that these two files are in the same folder. Maybe they put these zeros to some other use in Poser 5 on the pc. I'm eagerly waiting for the Mac version ... :)


TwoSisters posted Wed, 06 August 2003 at 3:31 AM

Well Poser 5 definitely does need those zeros, and also does ProPack. I did a prop with a texture once that showed up just fine in P4 and not at all in ProPack or P5, and that was only cause these two little numbers had gotten lost somewhere along the way...


maclean posted Wed, 06 August 2003 at 2:25 PM

'Well Poser 5 definitely does need those zeros' Right. That's why I was checking this whole thing. Oh well, whatever they do, they're necessary, that's for sure. Thanks to all mac


MarianneR posted Sat, 16 August 2003 at 5:46 PM

I just got P5 for the Mac and am slowly learning how to use it and migrating my files. I found out that it uses the 0 0-line in the same way as P4 for the Mac does, but for some reason the first 0 is not replaced anymore, only the second. So the same jpg-file becomes -1 12345 in Poser 4 and 0 12345 in Poser 5 Weird!


maclean posted Sat, 16 August 2003 at 6:20 PM

Thanks for the info, marianne. It is a bit weird. Must be a mac thing. LOL. mac