Lights with inventor loader

New Message Reply Date view Thread view Subject view Author view

Lionel Maiaux (maiaux++at++platine.corys.fr)
Sat, 7 Sep 1996 09:59:33 -0600


Hi all,

I would like to see the effect of a spot light in perfly with a .iv file like :

<<<<<<<
#Inventor V2.0 ascii

Separator {
    SpotLight {
        color 1 0 0
        location 0 0 5
        direction 0 0 -1
        cutOffAngle 0.15
    }
    Group {
        NormalBinding {
            value OVERALL
        }
        Coordinate3 {
            point [ -1 -1 0,
                              0 -1 0,
                              1 -1 0,
                              -1 0 0,
                              0 0 0,
                              1 0 0,
                              -1 1 0,
                              0 1 0,
                              1 1 0 ]
        }
        IndexedFaceSet {
            coordIndex [ 0, 1, 4, 3, -1, 1, 2, 5,
                              4, -1, 3, 4, 7, 6, -1, 4,
                              5, 8, 7, -1 ]
        }
    }
}
>>>>>>>

1) I tried perfly with no retessalation (-o 4), local lighting (-O 5) and
inventor lights conversion (-y iv,2,1), so ...

perfly -o 4 -O 5 -y iv,2,1 file.iv

... and the light has no effect on my polygons. Why ?

2) I changed the normal binding OVERALL to PER_VERTEX_INDEXED and I added a
normalIndex field in the indexedFaceSet ( normalIndex [ 0, 0, 0, 0, -1, 0, 0,
0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1 ]) ...

... and my polygons are red and flat shaded. Why ?

3) Is there a way to see a correct interpolated effect on my polygons ?

Thanks,

Lionel

-- 
--------------------------------------------------------------------------------                        Lionel Maiaux
                       l.maiaux++at++corys.fr
--------------------------------------------------------------------------------
=======================================================================
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:30 PDT

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