I am trying to build a single room (first person) that you can walk around in python using opengl.
What I have so far is basically a subtle modification of the python code at the bottom of this pageI would like to place several focal light sources in the room and render the walls from images. Doing so directly didn't work because, as I understand from here, poor tesselation hurts lighting.
To remedy this issue, I thus want to subdivide the walls of my room (currently two triangles) into many more small triangles. What I am looking for is an algorithm that will further subdivide the triangles currently making up the walls of my rooms, telling me where the edges of the smaller triangles are as well as how to offset the texture. I assume this algorithm exists but am new to this kind of programming so don't know where to start,