Hi all,
Im wokring through NEHE's tutorials at the moment and building a cone approximation class to play with the code and learn from the examples but iv reached a snag.
I cant get texturing the top curved part of the cone to work (i have called it a pyramid but its a cone approximation), it comes out all messed up and i have tried a few things i have hand calculated the coords on paper and it should work. But as im writing this it does not and so i dont understand why not. so if any of the opengl programmers could look at my code (to big to post so i attach the project)
I want the texture to look like it was drawn on say a piece of cloth draped over the cones shape, not just stretched round its circumfrence.
The work calculating the coordinated for the 2d texture and rendering the cone are all done in the class'es methods InitGeo(...) which does all the calculating and Render() which again as the name implies renders the shape. Its part of his lesson 6 and im using the texture he used and the same code to load it etc.
Also it was only meant to be one struct but i ended up with three of them, they are defined in rgbaColor.h
Many thanks in advance.