I am trying to implement the depth buffer, but without using openGL. I understand the theory behind it but have no idea how to actually program it. Has anyone even ever tried it (except the person who programmed it into openGL).
I am trying to calculate the depth buffer of a single triangle.
The vertices are at (0, 10000.0, -100.01) , (-10000,-10000,-100.01),(10000,-10000,-100.01)
near = 100, far = 100000, left = -100, right = 100, top = 100, bottom = 100.
The camera is at (0,0,-1000).
I really need help on this if anybody can. Feel fre to ask any question. I’ll try to clarify as much I can.