So I've walked through what we've done in class. I think I have the general idea but I'm running into problems. If I can get the right values to print out that should mean I can put them in my struct for my VBO. Should be a piece of cake, but I'm having two major problems.
First, I'm not exactly sure where I should be writing the code to make this happen. The print statements I'm making are in DisplayMesh, like we did in class but it feels inappropriate to put everything there. I'm thinking about just creating a new .cpp file and doing the work there. I'll have to make sure I use all the same includes and mimic some of the loops and variable initializations.
Second, I've figured out how to get the control points mapped out so I can get the coordinates and the norms from that. I'm having trouble figuring out how to get the UV coordinates to print. It looks to me like there is a large switch statement dependant upon a couple of different modes. I'll have to continue to mess around with this until I get it figured out. I think I'll scour a couple of other blogs and maybe even pose the question on the boards if I don't find anything soon.
back to work!
No comments:
Post a Comment