Re: PFGS_TRISTRIPS

New Message Reply Date view Thread view Subject view Author view

Fischler (src++at++rose)
Tue, 4 Apr 1995 12:41:27 -0700


+>---- On Apr 4, 10:59am, 0000-Admin(0000) wrote:
> Subject: PFGS_TRISTRIPS
->Please, can anyone tell me what I must do, to create a pfGeoSet with NON-INDEXED
->PFGS_TRISTRIPS ? What I tried is:
->
->...
->...
->pfVec4 *colors;
->pfVec3 *normals,
-> *coords;
->long *lengths;
->
->...
->...
->/* Creation of the fields colors, normals, coords, and lengths */
->pfGSetNumPrims ( gset, 4 );
->pfGSetPrimType ( gset, PFGS_TRISTRIPS );
->pfGSetPrimLengths ( gset, lengths );
->
->pfGSetAttr ( gset, PFGS_NORMAL3, PFGS_PER_VERTEX, normals, NULL );
->pfGSetAttr ( gset, PFGS_COLOR4, PFGS_OVERALL, colors, NULL );
->pfGSetAttr ( gset, PFGS_COORD3, PFGS_PER_VERTEX, coords, NULL );
->
->pfAddGSet ( (pfGeode *) geode, gset );
->...
->...
->
->but it dont works correctly. I print out the GeoSet with pfPrint and
->I get the first PFGS_TRISTRIPS four times and the others are lost.
->

Does it draw?

pfPrint in 1.2 always printed out the data from the first strip :-(
FYI, additionally, PFLAT_TRISTRIPS didn't print data for vertex
attributes correctly.
src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Graphics Dev.
src++at++sgi.com  (415) 390 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:10 PDT

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