When trying that i get this error:
.\Sphere.cpp(42) : error C2662: 'Sphere::gluQuadricTexture
Conversion loses qualifiers
Main Topics
Browse All TopicsI know this is a pretty simple thing but i have been struggling with it, i know how to texture map a square etc, but im not sure how to create or imput the coordinates to texture map a shere. this is what im trying to do:
any help would be appreciated, thank you.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Still nothing, the texture im using is just one from nehe, i was using my own but i swapped it as i thought it could be that, it seems the texture still isnt loading. I am recieving this error
\documents\visual studio 2005\projects\jupiterrisin
c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen'
you can ignore this warning, it just says that in the future this function will not be there anymore. but that is not the cause of the problem.
can you set a breakpoint, where the fopen-call is and see if it succeeds?
feel free tp post the code here and i'm gonna try it. please put the texture then as well.
uhmm this is the result
- File 0x00000000 {_ptr=??? _cnt=??? _base=??? ...} _iobuf *
_ptr CXX0030: Error: expression cannot be evaluated
_cnt CXX0030: Error: expression cannot be evaluated
_base CXX0030: Error: expression cannot be evaluated
_flag CXX0030: Error: expression cannot be evaluated
_file CXX0030: Error: expression cannot be evaluated
_charbuf CXX0030: Error: expression cannot be evaluated
_bufsiz CXX0030: Error: expression cannot be evaluated
_tmpfname CXX0030: Error: expression cannot be evaluated
- Filename 0x00428348 "C:UsersGrahamDocumentsVis
67 'C' char
Business Accounts
Answer for Membership
by: ikeworkPosted on 2008-04-08 at 13:28:17ID: 21309260
when you create your GLUquadric-object, you have to tell glu to create texture-coords for the object with:
mentation/ specs/man_ pages/hard copy/ GL/ht ml/glu/qua drictextur e.html
D, texturesphere[0]); s,1000,100 0);
void gluQuadricTexture( GLUquadric* quad, GLboolean texture )
http://www.opengl.org/docu
GLUquadric *quadratic = gluNewQuadric();
gluQuadricTexture( quadratic, true ); // << add this line after creating the quadric
..
// rendering is just like this then
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2
gluSphere(quadratic,_Radiu
ike