Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I drew a wireSphere using Opengl.Then I added texture to it. It show in this machine. But I don't show the texture in another machine. It show only the wire sphere without texturing. I can't imagine the reason.Please help me..
Posted
Comments
JackDingler 17-May-12 14:05pm    
There's not much information to go one here.

Did you copy your texture files?
Do you have hard coded paths?
Does the second machine have an OpenGL version that supports the calls you are making? (ie: a display card with a supported driver?)
Jeremy Shin Woo 17-May-12 14:09pm    
Absolutely. I copied the hole project with its texture files.
Yes, It is a hard coded path.
Yes. It does. It show the wire Sphere in 2nd machine
JackDingler 17-May-12 14:18pm    
Do you depend on any third party libraries/ DLLs that might not be installed on the other machine?
Jeremy Shin Woo 17-May-12 14:21pm    
BOth are used same OpenGL GLUT libraries.
Code-o-mat 17-May-12 14:21pm    
As far as i know texturing with wireframe rendering isn't supported by all video cards, maybe that's your problem...

1 solution

Texturing problems are often caused by textures with a width/height that is not a power of 2 - especially in OpenGL. I experienced this myself, even on modern hardware. Try a texture size such as 1024x1024!
 
Share this answer
 
v2
Comments
JackDingler 17-May-12 14:26pm    
OpenGL 2.0 and above, no longer requires that textures be a power of 2.

Of course there's no guarantee that a driver will adhere to the standard. So this is worth checking.

512X512 is better as many older cards can't handle larger textures.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900