Day 4

Published July 28, 2008
Advertisement
Yesterdays objective for today: Failed.

I didnt manage to make it render properly.

What it should look like:




What I am actually getting:



Two things are missing:
1) It doesn't draw the correct tris in the right places. This could be for any of a number of reasons, but I suspect it is
because the triangles are not being properly transformed from the world frame of reference to the octrees frame of reference when being passed down the levels of the octree.

2) Textures are not being bound. I didn't have time today to make it to fill the texture table, what with debugging a few strange behaviours. The purple texture you see is not the same as the purple one in the image of the correct picture, it is in fact a pink and black warning texture that is bound when the texture that is requested cannot be found.

However, I did fix several bugs, and get a large portion of the rendering code written. It contains bugs of course, but I still have the code and have a rough idea what the problem is. I also have some leverage on these bugs and know what to do.

I will debug this problem by colouring each triangle according to the octree it belongs in. It remains to be seen why there is a rectangle being drawn, without rendering in wireframe, i cant really see which triangle is which. I will create debug textures which, when bound properly, will enable me to see where on the model the triangles should be. I will create models with specific shapes for each block.

Tomorrows objective: Debug, and post new screenshots. Get the mesh rendering properly.

I didn't procrastinate at all today. I spoke to friends from my home town, went shopping, ate a curry. Drank 2 pints of chocolate milkshake.
Next Entry Day 5:
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement