how do I make a cool sphere + make normals on it

I started working on a 3d engine some time ago and after a while, after I implemented the basic objects(cubes,polygons), I wanted to make a sphere. It was all good until I started implementing the lights.
I noticed that the sphere was badly lighted and didn't resemble the spheres made with the "auxSolidSphere()" function.
My questions are: What is th best way to mke a sphere(and an algorithm for it) and how to efficiently light it

P.S. I work in OpenGL

Comments

  • Hi,

    For sphere - you can use gluSphere and use quadrics. Secondly you can write your own code to render a sphere and calculate vertex or face normals whichever suits your requirement.

    : I started working on a 3d engine some time ago and after a while,
    after I implemented the basic objects(cubes,polygons), I wanted to make a sphere. It was all good until I started implementing the lights.
    : I noticed that the sphere was badly lighted and didn't resemble the spheres made with the "auxSolidSphere()" function.
    : My questions are: What is th best way to mke a sphere(and an algorithm for it) and how to efficiently light it
    :
    : P.S. I work in OpenGL
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion