OGLguy
02-10-2009, 03:36 PM
My shading for quadstripts does not seem to be right.
It's dark around the corner area where the strips turns 90 degrees.
It looks like averaging notmals at the corner.
Not sure how it calculates the normals of vertex at 90 turn.
I'm using vertex arrays with normals and colors.
The normals I gave were (0,-1,0), (0,-1,0) (1,0,0) for (1), (2)
and (3) as shown below (cross section view).
Thanks.
------------- y
| | ^
| x (3) |
| | |
---------x---x |----> x
(1) (2)
It's dark around the corner area where the strips turns 90 degrees.
It looks like averaging notmals at the corner.
Not sure how it calculates the normals of vertex at 90 turn.
I'm using vertex arrays with normals and colors.
The normals I gave were (0,-1,0), (0,-1,0) (1,0,0) for (1), (2)
and (3) as shown below (cross section view).
Thanks.
------------- y
| | ^
| x (3) |
| | |
---------x---x |----> x
(1) (2)