Forum: Poser - OFFICIAL


Subject: Rename material zone?

cspear opened this issue on Aug 01, 2006 · 14 posts


kuroyume0161 posted Tue, 01 August 2006 at 3:33 PM

The bodypart names at the top of the CR2 (the declaratory section) are instances of the groups (g) in the .obj file, i.e.:

OBJ:
g hip
f ...

CR2:
actor hip:1
    {
    storageOffset 0 0 0
    geomHandlerGeom 13 hip 
    }

It doesn't matter if the g name is compound, say, 'g figure1 body hip' as long as all of the facets belonging to 'hip' are in this same group that contains this name as one of the list.  Same for materials.

The Material names in the actor/prop or figure sections of the CR2 (the definitive section) are instances of the materials (usemtl) in the .obj file, i.e.:

OBJ:
usemtl EyeBall
f ...

CR2:
    material EyeBall
        {
        KdColor 1 1 1 1
        KaColor 0 0 0 1
        KsColor 1 1 1 1
        TextureColor 1 1 1 1
        NsExponent 30
        tMin 1
        tMax 1
        tExpo 0.6
        bumpStrength 0.700794
        ksIgnoreTexture 0
        reflectThruLights 1
        reflectThruKd 0
        textureMap NO_MAP
        bumpMap NO_MAP
        reflectionMap NO_MAP
        transparencyMap NO_MAP
        ReflectionColor 1 1 1 1
        reflectionStrength 1
        }

If you change the name of any bodypart group (actor) or material zone (Material) in the CR2, this will need to be reflected in the .obj file - as AntoniaTiger states.  They are inexorably linked.  Be aware of this so that you are not only modifying the CR2, but also the OBJ file.

Robert

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone