I am really trying to programme a real-time renderer.
At the moment I'm just at still frames, and only drawing lines
And it's, at the moment, written in PHP because that's the language I know best..
But when I've got it working at a per pixel level, I will make it into C++
Now, it's this per pixel part I'm having problems with.. (If that's actually what I must do)
I can't find good enough info on Z-buffering or just perpixel drawing.
How to scan the image, set color where there is tris, find depth, ect..
The renderer, so far
It isn't all that much.. It decodes OBJ files, projects and transforms them,
then it just draw lines
(This is what I don't want it to do, eventually..)
>>Link to the "renderer"<<
(or what ever you want to call it, heh)
- f - [file] - you can use all the files in the /obj directory (/?f=suzanne)
s - [size] - this changes the size of the object (/?s=4)
rx - [rotateX] - this changes the x rotation of the object, in degrees (/?rx=45)
ry - [rotateY] - this changes the y rotation of the object, in degrees (/?ry=30)
Okay.. How do you do the Z-Buffering or do anyone know an excellent tut on how to code a simple one?
And How to use this Z/pixel info for materials?
And so on..
I don't need full anweres on everything, but tips and such would be nice
Probably after understanding the Z-Buffer and made it, I will know better how to do the rest..
Oh, sh*t! This got long, hehe..