Click here to Skip to main content
12,999,867 members (56,286 online)
Rate this:
Please Sign up or sign in to 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 17-May-12 7:30am
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...
JackDingler 17-May-12 14:27pm
Good point Code-o-mat.
JackDingler 17-May-12 14:29pm
Try this tool on both machines and compare the results.
Code-o-mat 17-May-12 14:34pm
Jeremy Shin Woo 17-May-12 14:40pm
Anyway, Both machines are same family same version. Both are used same OS. User can change the directory of the texture folder. Is there any specified directory to add the Texture Folder
JackDingler 17-May-12 14:53pm
No there is no standard folder for textures.

The video drivers determine your OpenGL capabilities. Machines of the same model can have differing video cards and drivers. It's not uncommon for manufacturers to use different cards with similar performance characteristics, in the same PC model. Further, one of the machines could be customized.

If you're sure that isn't the issue, then you've set up the environments differently or you have a bug in your code.

The use of an initialized variable, is a common bug that can manifest differently on different machines. This sort of bug often shows up when switching between debug and release versions of code.

In debug, variables are set to zero. In release, they can have any value that happened to be on the stack previously.

Jeremy Shin Woo 17-May-12 15:10pm
Thank u.. There is an problem in video card. Again thanks

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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!

Visit my project: Derivative Calculator
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 17 May 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100