[Papervision3D] Update vertex-coordinates for shading
Clox
ogggan at gmail.com
Tue Sep 23 13:02:03 PDT 2008
Thanks a lot for the reply, Steve D-7
I didn't know normals affected the shading.
After moving a vertex i use face.createNormal() on the face, this updates
the normal so it's the same as it would have been if that vertex was placed
there initially, this still didn't update the shading though. I found
another normal under face.face3DInstance.faceNormal, I tried updating this
one as well but no luck...
Any other ideas?
Thanks a bunch =)
Steve D-7 wrote:
>
> Since shaders work primarily on the normal of the face, you might just
> have
> to re-calculate the normal of any connected faces of the moved vertice.
> There is a method that does this automatically, but I can not recall it
> and
> don't have my papervision docs handy.
>
--
View this message in context: http://www.nabble.com/Update-vertex-coordinates-for-shading-tp19626819p19635736.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list