Modify color

New Message Reply Date view Thread view Subject view Author view

Luc Renambot (renambot++at++irisa.fr)
Thu, 14 Mar 1996 21:30:35 +0100


Hi,

I tried for hours to modify the color of the polgons in a geoset.
I modify Perfly to receive data from another program by socket.
I find the vertices and color array :

    Binding = LeGeoset->getAttrBind(PFGS_COORD3);
    LeGeoset->getAttrLists(PFGS_COORD3, (void **)&VArray, &Index);

    BindingC = LeGeoset->getAttrBind(PFGS_COLOR4);
    LeGeoset->getAttrLists(PFGS_COLOR4, (void **)&CArray, &IndexC);

I compute the right position of the color and I try to modify it :

        PFCOPY_VEC4(CArray[i], newcol);

and then the polygon is always black !!!

I tried to use the "setAttr" function too, it's bad.

There's a problem with the memory, or something else ....

Can anyone could help me, please ???

Thanks.

Luc.

------------------------------------
| Renambot Luc |
| IRISA - CAPS Team |
| e-mail: renambot++at++irisa.fr |
| www : http://www.irisa.fr/caps |
| Tel : 99-84-72-21 |
------------------------------------
"Qu'est-ce qui est le plus grand, l'jtre ou le niant?"


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:33 PDT

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