Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenGL Lighting Issue
#4
No, you don't have to assign a normal vector to a plane. but to vertex. There must be the same number of normal vectors as there are vertices.

1 point vertex : xyz . this defines the position of the point
1 point normalvector : x'y'Z this determines the direction.

You don't have to worry about determining the direction of your skiing!!! opengl then calculates with linear interpolation when rendering, from the 3 normal vectors per pixel, where and how much light is needed on the surface.
Reply


Messages In This Thread
OpenGL Lighting Issue - by aadityap0901 - 09-23-2024, 12:47 PM
RE: OpenGL Lighting Issue - by MasterGy - 09-23-2024, 01:22 PM
RE: OpenGL Lighting Issue - by aadityap0901 - 09-23-2024, 02:45 PM
RE: OpenGL Lighting Issue - by MasterGy - 09-23-2024, 02:58 PM
RE: OpenGL Lighting Issue - by MasterGy - 09-23-2024, 03:40 PM
RE: OpenGL Lighting Issue - by aadityap0901 - 09-24-2024, 10:01 AM
RE: OpenGL Lighting Issue - by Petr - 09-24-2024, 07:31 PM
RE: OpenGL Lighting Issue - by aadityap0901 - 09-25-2024, 12:00 PM
RE: OpenGL Lighting Issue - by aadityap0901 - 09-26-2024, 04:05 PM
RE: OpenGL Lighting Issue - by Petr - 09-27-2024, 08:14 AM
RE: OpenGL Lighting Issue - by aadityap0901 - 09-27-2024, 12:31 PM
RE: OpenGL Lighting Issue - by aadityap0901 - 10-02-2024, 12:57 PM



Users browsing this thread: 2 Guest(s)