Cylindrical Texture Mapping

posted in noaktree leaves
Published October 22, 2007
Advertisement
I'm building a class that dynamically generates a 3d cone. It has functions for computing normals, tangents, etc. I've gotten to texture coordinates and have decided to use a cylindrical mapping algorithm because the general structure of the cone will eventually be modified using noise functions.

Here is my first attempt in OpenGL. It's ugly, but I thought I'd post it to show progress. u,v coordinates are calculated per vertex and I think I'm missing vertices. I guess I wasn't thinking about texturing when I created the geometry. So much for having an optimal cone structure. [rolleyes]



[edit]I'm just sitting here looking at this. I'm pretty sure I DID generate enough vertices. There must be something wrong with my cylindrical mapping alg. Oh well, I'll get back to it tomorrow.
Previous Entry Daemon (novel)
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!
Profile
Author
Advertisement
Advertisement