Re: your mail

New Message Reply Date view Thread view Subject view Author view

Lance R. Marrou (marrou++at++vsl.ist.ucf.edu)
Tue, 24 Jan 1995 17:39:20 -0500 (EST)


On Tue, 24 Jan 1995, Roy W Latham wrote:

> pfGeoSet and give color, etc. This solution worked fine, except that
> when the object gets rendered, it is flat shaded. It has no shading at
> all, just a solid color.

This sounds more like the geometry is not lighted. Make sure you have a
light source. Also, though it should be the default, make sure the geostate
has PFSTATE_ENLIGHTING enabled.

> pfGetGSetAttrLists(gset, PFGS_COORDS3, (void**)poly_list, (ushort** i));
>
> The contents of poly_list is all zeros, not the geometry, yet when I
> querey the number of vertices and triangles in the pfGeoSet, the
> correct values get returned, I just a cannot get the old geomtry.

Not quite sure, but it seems (through the use of your type casting) that you
might have poly_list and i declared incorrectly. If you do not have it as
below (or something similar), then I have no other suggestions:

  void *poly_list;
  ushort *i;

  pfGetGSetAttrLists(gset, PFGS_COORDS3, &poly_list, &i );

Remember, the coordinate and index lists already exist, you just want the
base pointers to the arrays. I suppose another problem could be what
process you are querying the geoset in.

______________________________________________________________________________
           /\ ______ /\____ ______ ______ E-mail: marrou++at++vsl.ist.ucf.edu
Visual / / / _ / / __ // ____// ____/ VSL: (407)658-5073
Systems / /__ / /_/ / / / / // /___ / __/_ R. Marrou Fax: (407)658-5059
Lab /____//____/\\/_/ /_//_____//_____/ http://www.vsl.ist.ucf.edu/~marrou
"Reap the whirlwind." "We don't need no thought control."


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

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