View Full Version : Texture Mapping
I am trying to texturemap a sphere. Someone was saying on this forum that this does not work with just automatic texture coordinates as it is more like the texutre is projected onto the visual part of the sphere rather than actually wrapping it around the sphere. Could anyone help with this or give any tipps please??
have u tried texture mapping ur sphere?
I cannot map the texture onto the sphere.
And bind the texture after the image is read.
/* make it the current texture */
// ----Set the parameter---- //
Suppose I have read the texture image and the name is texImage. After that, what should I do?
I have just added the line before the code above:
It look like that I need to add the coordinate, right? But I don't know how to add it.
04-17-2006, 03:15 AM
Where texture is the the texture you have generated.
If it works, but looks iffy, I have a tutorial on my site which works on texturing a sphere without the glutSolidSphere command. My tutorial will allow for you to set the texture coordinates on the sphere.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.