Color loss.

New Message Reply Date view Thread view Subject view Author view

Robert Doyle (doyle++at++overlord.nrl.navy.mil)
Sat, 30 Mar 1996 16:54:25 -0500


I'm losing color on Inventor objects loaded into perfly (without options) if
they've been previously optimized by ivfix. The object colors appear correct
when the same optimized files are read into ivview or SceneViewer. I've
included a short Inventor file below that exhibits this problem. Any ideas
would be appreciated.

Thanks,
Bob Doyle

*******************************************************************************************************************************
#Inventor V2.1 ascii

Separator {
    ShapeHints {
        vertexOrdering COUNTERCLOCKWISE
    }
    IndexedTriangleStripSet {
        vertexProperty VertexProperty {
            vertex [ -32.9175 0 -10.3906,
                              -0.00329175 0 10.3906,
                              -23.2762 23.5113 -10.3906,
                              -0.00232762 0.00235113 10.3906,
                              -2.02545e-08 33.25 -10.3906,
                              -2.02545e-12 0.003325 10.3906,
                              23.2762 23.5113 -10.3906,
                              0.00232762 0.00235113 10.3906,
                              32.9175 1.36394e-08 -10.3906,
                              0.00329175 1.36394e-12 10.3906,
                              23.2762 -23.5113 -10.3906,
                              0.00232762 -0.00235113 10.3906,
                              6.75149e-09 -33.25 -10.3906,
                              6.75149e-13 -0.003325 10.3906,
                              -23.2762 -23.5113 -10.3906,
                              -0.00232762 -0.00235113 10.3906,
                              -0.00329175 0 -10.3906,
                              -0.00232762 0.00235113 -10.3906,
                              -2.02545e-12 0.003325 -10.3906,
                              0.00232762 0.00235113 -10.3906,
                              0.00329175 1.36394e-12 -10.3906,
                              0.00232762 -0.00235113 -10.3906,
                              6.75149e-13 -0.003325 -10.3906,
                              -0.00232762 -0.00235113 -10.3906,
                              -2.94305e-05 32.9175 -10.3906,
                              -2.94305e-09 0.00329175 10.3906,
                              23.5113 23.2762 -10.3906,
                              0.00235113 0.00232762 10.3906,
                              33.25 2.97481e-05 -10.3906,
                              0.003325 2.97481e-09 10.3906,
                              23.5113 -23.2762 -10.3906,
                              0.00235113 -0.00232762 10.3906,
                              2.94442e-05 -32.9175 -10.3906,
                              2.94442e-09 -0.00329175 10.3906,
                              -23.5113 -23.2762 -10.3906,
                              -0.00235113 -0.00232762 10.3906,
                              -33.25 -2.97346e-05 -10.3906,
                              -0.003325 -2.97346e-09 10.3906,
                              -23.5113 23.2762 -10.3906,
                              -0.00235113 0.00232762 10.3906,
                              23.2762 -23.2762 -10.4593,
                              0.00235183 -0.00233802 -31.2406,
                              33.0837 0.166287 -10.4593,
                              0.00333258 6.22579e-06 -31.2406,
                              23.5112 23.5113 -10.4594,
                              0.00237533 0.00234073 -31.2406,
                              0.16618 33.0838 -10.4594,
                              4.08241e-05 0.00329797 -31.2406,
                              -23.2762 23.2762 -10.4595,
                              -0.00230342 0.00231721 -31.2406,
                              -33.0838 -0.166267 -10.4595,
                              -0.00328417 -2.70294e-05 -31.2406,
                              -23.5113 -23.5113 -10.4594,
                              -0.00232692 -0.00236153 -31.2406,
                              -0.166229 -33.0837 -10.4594,
                              7.5836e-06 -0.00331878 -31.2406 ]
            normal [ -0.533871 0 0.845566,
                              -0.377865 0.374434 0.846769,
                              0 0.530037 0.847974,
                              0.377865 0.374434 0.846769,
                              0.533871 0 0.845566,
                              0.377865 -0.374434 0.846769,
                              0 -0.530037 0.847974,
                              -0.377865 -0.374434 0.846769,
                              0 0 -1,
                              -4.77318e-07 0.533871 0.845566,
                              0.374434 0.377865 0.846769,
                              0.530037 4.7389e-07 0.847974,
                              0.374434 -0.377865 0.846769,
                              4.77318e-07 -0.533871 0.845566,
                              -0.374434 -0.377865 0.846769,
                              -0.530037 -4.7389e-07 0.847974,
                              -0.374434 0.377865 0.846769,
                              0.377506 -0.377504 -0.845565,
                              0.531958 -0.00242634 -0.846768,
                              0.374794 0.374792 -0.847974,
                              -0.00242468 0.531955 -0.846769,
                              -0.377502 0.377503 -0.845567,
                              -0.531954 0.00242464 -0.84677,
                              -0.374791 -0.374794 -0.847975,
                              0.00242863 -0.531956 -0.846768 ]
            texCoord [ ]
            orderedRGBA [ 0xff00ff, 0xff0000ff, 0xff00ff, 0xff0000ff, 0xffff,
0xff0000ff, 0xff00ff, 0xff0000ff,
                              0xff00ff, 0xff0000ff, 0xff00ff, 0xff0000ff,
0xffff, 0xff0000ff, 0xff00ff, 0xff0000ff,
                              0xff00ff, 0xff00ff, 0xff0000ff, 0xff00ff,
0xff0000ff, 0xffff, 0xff0000ff, 0xff00ff,
                              0xff0000ff, 0xff00ff, 0xff0000ff, 0xff00ff,
0xff0000ff, 0xffff, 0xff0000ff, 0xff00ff,
                              0xff0000ff, 0xff00ff, 0xff00ff, 0xff0000ff,
0xff00ff, 0xff0000ff, 0xffff, 0xff0000ff,
                              0xff00ff, 0xff0000ff, 0xff00ff, 0xff0000ff,
0xff00ff, 0xff0000ff, 0xffff, 0xff0000ff,
                              0xff00ff, 0xff0000ff, 0xff00ff, 0xff00ff,
0xff0000ff, 0xff00ff, 0xff0000ff, 0xffff,
                              0xff0000ff, 0xff00ff, 0xff0000ff, 0xff00ff,
0xff0000ff, 0xff00ff, 0xff0000ff, 0xffff,
                              0xff0000ff, 0xff00ff, 0xff0000ff, 0xff00ff ]
            materialBinding PER_VERTEX_INDEXED
            normalBinding PER_VERTEX_INDEXED
        }

        coordIndex [ 41, 40, 55, 54, 53, 52, 51, 50,
                          49, 48, 47, 46, 45, 44, 43, 42,
                          41, 40, -1, 0, 16, 14, 23, 12,
                          22, 10, 21, 8, 20, 6, 19, 4,
                          18, 2, 17, 0, 16, -1, 1, 0,
                          15, 14, 13, 12, 11, 10, 9, 8,
                          7, 6, 5, 4, 3, 2, 1, 0,
                          -1, 25, 24, 39, 38, 37, 36, 35,
                          34, 33, 32, 31, 30, 29, 28, 27,
                          26, 25, 24, -1, 0, 16, 14, 23,
                          12, 22, 10, 21, 8, 20, 6, 19,
                          4, 18, 2, 17, 0, 16, -1, 1,
                          0, 15, 14, 13, 12, 11, 10, 9,
                          8, 7, 6, 5, 4, 3, 2, 1,
                          0, -1 ]
        materialIndex [ 51, 52, 53, 54, 55, 56, 57, 58,
                          59, 60, 61, 62, 63, 64, 65, 66,
                          67, 68, -1, 34, 35, 36, 37, 38,
                          39, 40, 41, 42, 43, 44, 45, 46,
                          47, 48, 49, 50, 51, -1, 34, 35,
                          36, 37, 38, 39, 40, 41, 42, 43,
                          44, 45, 46, 47, 48, 49, 50, 51,
                          -1, 17, 18, 19, 20, 21, 22, 23,
                          24, 25, 26, 27, 28, 29, 30, 31,
                          32, 33, 34, -1, 0, 1, 2, 3,
                          4, 5, 6, 7, 8, 9, 10, 11,
                          12, 13, 14, 15, 16, 17, -1, 0,
                          1, 2, 3, 4, 5, 6, 7, 8,
                          9, 10, 11, 12, 13, 14, 15, 16,
                          17, -1 ]
        normalIndex [ 17, 17, 24, 24, 23, 23, 22, 22,
                          21, 21, 20, 20, 19, 19, 18, 18,
                          17, 17, -1, 8, 8, 8, 8, 8,
                          8, 8, 8, 8, 8, 8, 8, 8,
                          8, 8, 8, 8, 8, -1, 0, 0,
                          7, 7, 6, 6, 5, 5, 4, 4,
                          3, 3, 2, 2, 1, 1, 0, 0,
                          -1, 9, 9, 16, 16, 15, 15, 14,
                          14, 13, 13, 12, 12, 11, 11, 10,
                          10, 9, 9, -1, 8, 8, 8, 8,
                          8, 8, 8, 8, 8, 8, 8, 8,
                          8, 8, 8, 8, 8, 8, -1, 0,
                          0, 7, 7, 6, 6, 5, 5, 4,
                          4, 3, 3, 2, 2, 1, 1, 0,
                          0, -1 ]
    }
}

*****************************************************************************************************************************

-- 
Robert J. Doyle, Jr.            http://overlord.nrl.navy.mil
Code 6110                       e-mail: doyle++at++overlord.nrl.navy.mil
Naval Research Laboratory       fax: 202-404-8119
Washington, DC  20375-5000      phone: 202-404-8513

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:52:36 PDT

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