Use texture coordinate generation or write a shader that assings texture coordinates to your teapot vertices or store the model together with its texture coordinates.
There are two texture methods : Normal Mapping or Displacement Mapping.
You do not understand what you’re talking about.
First, there is fundamentally precisely 1 texture method. Access the texture given texel coordinates X.
Secondly, what matters in terms of the resultant look is what the fragment shader does with the result. A texture can be interpreted as an image, a specular reflectance map, a diffuse reflectance map, a value and vector to displace the pixel, the normal to use in calculating lighting, a shadow map value for determining whether a light is in shadow of the light source, and any number of other methods (lookup tables, etc).
So your assertion of two methods is both too few and too many. There are plenty of ways to interpret a texture, but only one way to access it.
However, considering that you have not mastered the concept of texture mapping and texture coordinates, it is probably best for you to, for the present time, only deal in image textures. That is, for each point along the surface, there is a mapping to a position on an image that should be used as the base color (before lighting) of the rendered object.
Yes, but I used glVertex3f and vertex coordinates to get teapot. It could be another 3d model not teapot.
If I get texture coordinates for a 3d model, I can use it for texture mapping.
glTexCoord2f
So I need to know how I can get texture coordinates for a 3d model which I know vertex coordinates.
How can I get texture coordinates for a 3d model?
(I used 3ds max for 3d model)
Senem, texture coordinates are a part of the model, just as vertex coordinates are. For complex models, you cannot just derive them, they have to be created by an artist. In your case, the 3ds model may or may not contain texture coordinates. It is does not, you will have to find an artist who would create them (or do it yourself).