PDA

View Full Version : Draw object at particular position



girish3110
01-05-2008, 03:03 AM
How do we draw an object,for e.g. the Utah Teapot or a sphere at a particular position on a 3D scene?

Zengar
01-05-2008, 04:40 AM
Most usual way to do it: you apply a translation matrix prior to rendering the object. You should probably have a look at glTranslate function.

girish3110
01-05-2008, 06:07 AM
Ok. I tried using it previously and I had some problems. Now it's working.