Lance R. Marrou (marrou++at++vsl.ist.ucf.edu)
Wed, 4 Jan 1995 09:14:42 -0500 (EST)
...
> 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.
Do you have normals specified for these polygons? If you use the new
pfuBuilder (I believe) it can automatically create normals.
...
> 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.
...
The "(void**)poly_list" looks funny. If poly_list is the same as the call to
pfGSetAttr(), then it is probably the problem. It depends on how poly_list
is declared, but you might want to use &poly_list instead.
Btw, for the simple example you suggested (a pyramid), you could easily use
pfScale on the DCS (if you have one) in the direction of the point. Of course,
the pyramid must be axially aligned in the geometry. If you do not have a
DCS for each pyramid, this would obviously be a waste of processing power.
However, it does keep you from having to clone all the geometry.
_______________________________________________________
E-mail: marrou++at++vsl.ist.ucf.edu
IST __ WWW: http://www.vsl.ist.ucf.edu/~marrou
Visual / / ______ /\____ ______ ______
Systems / / / _ / / __ // ____// ____/
Lab / /__ / /_/ / / / / // /___ / __/_ R. Marrou
________/____//____/\\/_/ /_//_____//_____/____________
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:48 PDT