Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ OpenGL
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 8:30am
Comments
JackDingler at 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 at 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 at 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 at 17-May-12 14:21pm
   
BOth are used same OpenGL GLUT libraries.
Code-o-mat at 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 at 17-May-12 14:27pm
   
Good point Code-o-mat.
Code-o-mat at 17-May-12 14:34pm
   
Thanks.
JackDingler at 17-May-12 14:29pm
   
Try this tool on both machines and compare the results.
 
http://www.realtech-vr.com/glview/
Jeremy Shin Woo at 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 at 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 at 17-May-12 15:10pm
   
Thank u.. There is an problem in video card. Again thanks

1 solution

Rate this: bad
good
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
  Permalink  
Comments
JackDingler at 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
0 Maciej Los 310
1 OriginalGriff 285
2 Afzaal Ahmad Zeeshan 200
3 Sergey Alexandrovich Kryukov 195
4 BillWoodruff 180
0 OriginalGriff 6,499
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,193
3 Manas Bhardwaj 4,657
4 Maciej Los 4,120


Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 17 May 2012
Copyright © CodeProject, 1999-2014
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