I ask this question because i learned graphics programming in the Opengl era and
i don't know how you do it in software mode?How do you render a textured polygon in software?You must define a frame buffer somewhere in memory?Let's say with have a triangle for witch we know the vertices coords and texture coords how the frame buffer will be filled with the triangle colors?A simple example code(in c if possible) that i can test myself would be helpfull and i think and to the other curious forum members.
Were there any books or articles about the subject when you were experimenting with graphics for ken's labyrinth or you used academic info from papers?You must had the theoritical graphics math background in order to understand this process back then.
Note i don't know how to render anything without opengl,even 2d graphics
:cry:
Awesoken at
How do you render a textured polygon in software?
A good first challenge would be to try drawing a solid-filled triangle using just a setpixel function. There are many ways to do it. Perhaps the simplest algorithm is to use a generic line drawing algorithm, keeping track of the left and right extents of each scanline as you go. You can find code for line drawing algorithms (as well as many other crazy things) at Graphics Gems
Were there any books or articles about the subject when you were experimenting with graphics for ken's labyrinth
Yes, there were books, but they mostly focused on non-realtime raytracing applications.
CheapAlert at
Awesoken said
Were there any books or articles about the subject when you were experimenting with graphics for ken's labyrinth
Yes, there were books, but they mostly focused on non-realtime raytracing applications.
And then there's Abrash's black book
psychorosti at
And of course this site:
Hugo Elias - Graphics - look for lines and polygons
download Site as .zip
Very nice explained, with code samples and descritptive figures. Helped me alot getting my foot into this subject.
3dEngineProgrammer at
Thanks Ken and rest of you fot the info,i probably begin to write something simple
base on your material you provided.Thanks again. :D