Original Post
Hey all, I am trying to height map the sphere I just created. I have the UV's all correct for texturing the sphere, so now I want to height map it. My code looks something like... for(int i = 0; i < vert_qty; i++) { mapcoordx = vert.u * texturewidth*4; mapcoordy = vert.v * textureheight*4; red = texture[mapcoordx+mapcoordy+0] * .30; green = texture[mapcoordx+mapcoordy+1] * .59; blue = texture[mapcoordx+mapcoordy+2] * .11; vert.x *= red+green+blue; vert.y *= red+green+blue; vert.z *= red+green+blue; //ignore alpha } however, I am not getting the correct mapping out of this loop. My the resulting vertex changes are waaaay off and dont even resemeble what should be occuring. Any suggestions as to what could be going on?