[info-performer] Backface culling

Date view Thread view Subject view Author view

From: Anthony Clare (a.j.clare++at++sheffield.ac.uk)
Date: 09/19/2003 08:21:07


Hi,

I have modified a database after loading and have not ensured the
orientation of the surface normals. This leads to missing polygons in the
terrain when rendered. I have tried changing the backface culling option with

pfCullFace(PFCF_OFF);
pfOverride(PFSTATE_CULLFACE, PF_ON);

after configuring the channel but this has no effect. Would the lighting
have a similar effect? I have removed the light source but have a scene
which is too dark to tell if there are any polygons missing. I have also added

pfOverride(PFSTATE_ENLIGHTING, PF_OFF);

But this also leaves the scene dark. Ideally I would like to see the
polygon colours as have been set without lighting effects and with the
polygons "facing" away visible to.

Thanks,
Tony.

_________________________________________________

Anthony Clare
Department of Automatic Control and Systems Engineering
The University of Sheffield
www.shef.ac.uk/acse/
a.j.clare++at++sheffield.ac.uk
_________________________________________________


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Sep 19 2003 - 08:30:03 PDT