Although I can produce 3D graphics already using custom manipulation of coordinate data and picture files, my routines in VB6 run extremely slowly. So I've began these past couple of days looking at D3D.
But I'm having some trouble with all the definitions, and what must be enabled or called in the pipeline to make it draw something.
I've looked at some demos/tutorials but it hasn't really helped me. I'm just overwhelmed with all the random lines 'this line does xyz' and I have no idea what that means, or what it is.
What I'd like to do is this:
for n=1 to number_of_triangles
* I'll choose myself some 3d coordinates to define a triangle
* I'll choose a texture bitmap I want that triangle to be drawn with.
* I'll specify the three 2d coordinates for how the corners of the triangle relate to points in the texture bitmap.
for m=1 to number_of_lights
* add a directional light vector to the scene. (If I add no lights then I should see nothing, and if there is only one light, then anything on the opposite side of an object to the light vector should be black)
* define the camera position, the viewing vector, and the viewing frustrum
* draw scene
Can somebody help me get started with this, please.
I'd like my first 3d picture to be a surface plot of a math function, like water droplet ripples. I'm happy generating triangles for that, but I don't know how to set up DX and feed this data into DX. I'd also like to see it illuminated properly as described and not just a silhouette of flat texture.
Thanks for any help.