Correct Texture Generation

I’m aware that perhaps this is not the bast place to ask such an “ADVANCED” question but I’ll ask it anyway :

Let’s say that I have a really complex mesh (complex in terms of poly count & geometry ). The ideea is to generate Correct Texture Coords ( if possible have OpenGL generate them for me ). I want to be able to have planar mapping, cylindrical & spherical ( I’ve managed to generate textures that look like metal reflections but this time i want to spheremap a WOOD texture )

Regard,
Clau
( I might be foolish but I’m eager to learn )