PDA

View Full Version : wierd opengl texture scaling



javadlux
09-15-2003, 07:04 PM
hi. i have this wierd problem in opengl. i have this box that i apply a texture to, but the texture comes out stretched up and down. in otherwords, the bottom of the face isn't the bottom of the texture. i have some 3rd party code that loads a .3ds file of the cube, and before using glTexCoord i check and the texture coords are correct. however, the texture still comes out stretched. when i use glGet with current_texture_coords the values are different than what i put in. i get values like -187463800 something that would expect to see in printf("%d") if the number was a float, however i am sure that the numbers i am putting in are the correct type. could you please help me? if you want the project (msvc++6) get it at www.geocities.com/cplusplusproject/ (http://www.geocities.com/cplusplusproject/)
download stolen.zip (stolen is the name of the game) thank you!