Odd Shading Problem

Started by
1 comment, last by Aks9 11 years, 1 month ago
When I was using the projection matrix, the shading was very smooth, but now that I am using the model-view matrix, the shading is a little flat. OpenGL was having problems handling all of the pushing and popping when using the projection matrix, so I had to switch over to the model-view matrix. Is there a way to use the shading from the projection matrix with the model-view matrix?
Advertisement

You . . . need a primer on the vertex stage of the pipeline.

This page has a nice diagram: http://www.opengl.org/documentation/specs/version1.1/glspec1.1/node23.html
See also http://www.opengl.org/wiki/Vertex_Transformation

[size="1"]And a Unix user said rm -rf *.* and all was null and void...|There's no place like 127.0.0.1|The Application "Programmer" has unexpectedly quit. An error of type A.M. has occurred.
[size="2"]

When I was using the projection matrix, the shading was very smooth, but now that I am using the model-view matrix, the shading is a little flat. OpenGL was having problems handling all of the pushing and popping when using the projection matrix, so I had to switch over to the model-view matrix. Is there a way to use the shading from the projection matrix with the model-view matrix?

No, there is no way! The problem is in fact you don't understand basic concepts. I would suggest reading Viewing in 3D (chapter 3 of the Red Book).

This topic is closed to new replies.

Advertisement