Making a Performer Lodaer

New Message Reply Date view Thread view Subject view Author view

Angel-Ventura Mendo Gomez (ventura++at++labri.u-bordeaux.fr)
Mon, 03 May 1999 14:39:50 +0200


hello:

        I'm still making a Performer Loader and now my question is :

        1) Can performer tesselate holed Polys ?

        2) and what is the utility of the "next" field in the "pfdGeom" struct
?

        3) When a try to fill pfdGeom in IndexMode the program is killed when
reading the 1364 vertex

         /* vertexNUmber=3582 */
         prim = pfdNewGeom(vertexNumber);

          /* pick a random not-too-dark color */
          pfuRandomColor(prim->colors[0], 0.4f, 0.8f);

          /* specify control data */
          prim->flags = PFD_INDEXED;
          prim->numVerts = vertexNumber;
            prim->primtype = PFGS_TRIS;
          prim->nbind = PFGS_OFF;
          prim->cbind = PFGS_OFF;
          prim->tbind = PFGS_OFF;

          /* read vertices from ".tri" file */
          for (i = 0; i < vertexNumber; i++){
            /* read vertex data */
     

            fscanf(fildes, "%f %f %f",
           &prim->coordList[i][PF_X],
           &prim->coordList[i][PF_Y],
           &prim->coordList[i][PF_Z]);

            pfNotify(PFNFY_WARN, PFNFY_RESOURCE,
             "+ vertex: %d/%d",i,vertexNumber);
              
          }

         
        Thanks

-- 
	ventura++at++labri.u-bordeaux.fr
	http://dept-info.labri.u-bordeaux.fr/~ventura
	telephone 05.56.84.69.20

Quod natura non dat Salmantica non praestat.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon May 03 1999 - 05:41:04 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.