View Full Version : Eight ball
Eclipix
05-07-2002, 07:34 PM
so i am rendering an eight ball as a sphere, but i do not know how to put the white cirlce and the number 8 on it. Any advice?
nexusone
05-08-2002, 04:11 AM
Best way would be to make a texture map.
Then use a paint program to put a white circle with a 8 on a black background.
Then just map the texture to your sphere.
http://www.opengl.org/discussion_boards/ubb/smile.gif
Originally posted by Eclipix:
so i am rendering an eight ball as a sphere, but i do not know how to put the white cirlce and the number 8 on it. Any advice?
Eclipix
05-08-2002, 06:07 AM
Yes, that I have already tried, but when i texture the sphere, it textures each quad on the sphere, so i end up with a sphere with a hundred little textures.
mphanke
05-08-2002, 06:31 AM
Have you computed the texture coordinates?? OpenGL does that for you on this simple object, look into the API-docs to find the right funcs. I don't use them, but I know they exist!
Greets,
Martin
nexusone
05-08-2002, 07:53 AM
Are you using TexParameter?
And the settings TEXTURE_WRAP_S, TEXTURE_WRAP_T and the setting CLAMP
TexParameter( texture , TEXTURE_WRAP_S
, CLAMP)
TexParameter( texture , TEXTURE_WRAP_T
, CLAMP)
http://www.opengl.org/discussion_boards/ubb/smile.gif
Originally posted by Eclipix:
Yes, that I have already tried, but when i texture the sphere, it textures each quad on the sphere, so i end up with a sphere with a hundred little textures.
jpummill
05-08-2002, 11:51 AM
The texture mapping tutorial at Nate Robins web site might help clear up some of your problems.
http://www.xmission.com/~nate/tutors.html
Good luck.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.