Saturday 14 June 2008

Dissertation progress update

After another ten days the dissertation is finally looking like the end product should. The application now loads an .x file on command and we can change the mesh at run time. The collision detection for the mesh is implemented and the vertex color is changed when the mouse moves over the mesh.
The next tasks to do is to actually render the pen color in to a texture and display that instead of using vertex colors.
Here is a screenshot:

Thursday 5 June 2008

Projection errors

OK the error I had in the previous post has a very easy solution the projection matrix was setup wrong.
Instead of setting it in "OnD3D9CreateDevice" part of DXUT it needs to be set in "OnD3D9ResetDevice".
It now looks as following:

X files rendering

After a week wrestling with DX 9 again I got an x file to render. When I tried this last Christmas it wouldn't render for the world of me. Apparently the tutorial in the DX sdk are a bit out of date. When I started looking at the function calls involved I found that I wasn't supplying everything. It now renders although I have minor camera problem with the rendering so thats the next step to figure out.
Remeber in the following screenshot light is on in the first and off in the second to show that textures are also working: