From: Rob Body (r.body++at++hrwallingford.co.uk)
Date: 04/02/2003 07:36:54
Hi All,
RedHat Linux
Performer 2.5
I have a sea surface created as a mesh that is coloured and textured. I
have calculated the normals for all the vertexes and these seem to be ok.
When displaying the mesh using Sun lighting with Performer I can hardly see
the different shading of the polygons, but when using eye lighting the
effect is far more noticeable and gives the effect I would expect. I would
like to be able to see the effect better with sun lighting. Is this
possible or not ? I have seen numerous OpenGL examples but not any based
for Performer. My normals are calculated based on the vertex position with
in the mesh and take into account which vertexes appear in which polygon. I
think that this is the correct way to do it as it looks ok under eye light
conditions.
I did another version that was wrong mathematically but just looked at each
vertex and calculated the normal without looking at any of the other
vertexes in the polygon and this gave a better result under sun light
conditions but never showed the darker side of the wave.
Has anyone who has succeeded at this ever have this problem and know how to
fix it ?
Thanks for any help.
Regards
Rob
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rob Body
Simulator Manager
HR Mardyn
HR Wallingford
Howbery Park
Wallingford
Oxon
OX10 8BA
Tel +44 (0) 1491 822327
Fax +44 (0) 1491 832233
E-mail r.body++at++hrwallingford.co.uk <mailto:r.body++at++hrwallingford.co.uk>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**********************************************************************
HR Wallingford uses Faxes and Emails for confidential and
legally privileged business communications. They do not of
themselves create legal committments. Disclosure to parties
other than addressees requires our specific consent. We are
not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us
immediately and and destroy all copies of it.
**********************************************************************
This archive was generated by hypermail 2b29 : Wed Apr 02 2003 - 07:40:28 PST