Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Texture question and sphere question...

  1. #1
    Intern Newbie
    Join Date
    Jan 2001
    Location
    Plymouth,NH
    Posts
    40

    Texture question and sphere question...

    First, I was wonding if anyone had a solutino to this. I want to have balls that are all different colors(any color of the rainbow) and then have a pattern on them. I can't make them textured because then I would have to make that many textures. Is it possible to make part of the texture transparent so the color will show? Second is how can I make a sphere any size? Is scalling the right thing to do? I heard that it can be bad to use.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,797

    Re: Texture question and sphere question...

    Why would you want your balls to be different colors? Sounds kind of perverted to me.

    Seriously, you can use an alpha channel in your textures in order to create transparent portions of the balls. So far as setting the radius, it all depends on how you are creating the spheres. glutSolidSphere and gluSphere both let you specify a radius. If you are doing your own sphere calculations, just work the radius in there.
    Deiussum
    Software Engineer and OpenGL enthusiast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •