Re: Triangle Strips

New Message Reply Date view Thread view Subject view Author view

Remi Arnaud (remi++at++remi.asd.sgi.com)
Mon, 26 Aug 1996 13:08:48 -0700


On Aug 26, 2:42pm, Katyl, Donald wrote:
> Subject: Triangle Strips

Hi,

>
> I'm having some trouble with tristrips. I'm trying to create a GeoSet
> with a couple of triangle strips in it. The problem is that all of the
strips
> are taking the vertices from the beginning of the vertex array (or from the
> beginning of the index array when I use indices).
[text removed]
>
> What am I doing wrong? (I'm using Performer 1.2 with IRIX 5.3)

 your code works fine in performer 2.x
 This is the output:

[0:0]pfGeode pfId=128 0x18076a00 {
    trav masks: cull=0xffffffff draw=0xffffffff isect=0xffffffff
    bsphere: ctr(1.000000, 1.000000, 0.000000) rad=1.414214
    Num pfGeoSets: 1
  [1:0]
      GeoSet: 0x18076dc0 {
        Primitive: PFGS_TRISTRIPS, INDEXED, pfPrims=2, glPrims=8, verts=12
          Attribute Bindings:
        PFGS_COLOR4=PFGS_OFF PFGS_NORMAL3=PFGS_OFF PFGS_TEXCOORD2=PFGS_OFF
 Packed=0
        Attribute List Pointers:
          PFGS_COORD3: 0x18076980
          PFGS_COLOR4: 0x0
          PFGS_NORMAL3: 0x0
          PFGS_TEXCOORD2: 0x0
          PackedAttrs: 0x0
        Attribute Index List Pointers:
          PFGS_COLOR4: 0x0
          PFGS_NORMAL3: 0x0
          PFGS_TEXCOORD2: 0x0
          PFGS_COORD3: 0x180797b0
        Strip Lengths: 6 6

        Coord Index: 3 X: 0.000000 Y: 1.000000 Z: 0.000000
        Coord Index: 0 X: 0.000000 Y: 0.000000 Z: 0.000000
        Coord Index: 4 X: 1.000000 Y: 1.000000 Z: 0.000000
        Coord Index: 1 X: 1.000000 Y: 0.000000 Z: 0.000000
        Coord Index: 5 X: 2.000000 Y: 1.000000 Z: 0.000000
        Coord Index: 2 X: 2.000000 Y: 0.000000 Z: 0.000000

        Coord Index: 6 X: 0.000000 Y: 2.000000 Z: 0.000000
        Coord Index: 3 X: 0.000000 Y: 1.000000 Z: 0.000000
        Coord Index: 7 X: 1.000000 Y: 2.000000 Z: 0.000000
        Coord Index: 4 X: 1.000000 Y: 1.000000 Z: 0.000000
        Coord Index: 8 X: 2.000000 Y: 2.000000 Z: 0.000000
        Coord Index: 5 X: 2.000000 Y: 1.000000 Z: 0.000000

      } GeoSet: 0x18076dc0
  [1:0]
[0:0]} pfGeode 128 0x18076a00

 Maybe there is a bug in the pfPrint() of the 1.2 release ?

 Can you upgrade to 2.x ?

 -- Remi

-- 

o o Remi ARNAUD - Silicon Graphics, Performer, Advanced Systems Dev o o o o Mail Stop 590 - 2011 N. Shoreline Boulevard, Mountain View, CA94043 o o o o Email: remi++at++asd.sgi.com - Tel: (415) 933 6208 - Fax: (415) 965 2658 o o

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


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:53:25 PDT

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