Forum: Poser - OFFICIAL


Subject: Removing Embedded Geometries in props

pokeydots opened this issue on Sep 24, 2006 · 11 posts


ockham posted Sun, 24 September 2006 at 8:26 PM

In most cases you can just 'peel' the OBJ info out into

a separate file and replace it with a objFileGeom line.

Here's a super-simplified example... of course the real

thing will have lots of v lines, lots of vt lines, and lots of f lines.

prop soap
    {
    geomCustom
        {
        numbVerts    176
        numbTVerts    696
        numbTSets     696
        numbElems   174
        numbSets    696
        v -0.031889 0.018111 -0.003103
        v -0.027125 0.019807 -0.003393
        vt 0.399619 0.532048
        vt 0.417794 0.526865
        usemtl whitestuff
        f 2/1 1/2 29/3 30/4
        f 1/5 11/6 39/7 29/8
        }

    }

Take the v's, vt's and f's out as a block, and

turn them into an OBJ file.  Leave out the numbVerts

and so on.  Let's say the OBJ is Soap.obj in an

appropriate folder..... 

The OBJ file would look like this:


 v -0.031889 0.018111 -0.003103
 v -0.027125 0.019807 -0.003393
 vt 0.399619 0.532048
 vt 0.417794 0.526865
 usemtl whitestuff
 f 2/1 1/2 29/3 30/4
 f 1/5 11/6 39/7 29/8
 


Then the upper section of

the PP2 should look like this:


prop soap
    {

   objFileGeom 0 0 ":Runtime:Geometries:DreamVillage:Soap.obj"
    }

}


(Note: I have no idea why the font turned monstrous!)

My python page
My ShareCG freebies