Advertisement

11.03.2002 at 07:45PM PST, ID: 20389434
[x]
Attachment Details

OpenGL - Rotating around a point

Asked by SuperMario in 3D Game Programming

Tags: around, opengl, point, rotate

Hi everyone,
I have a cube defined in GL_QUADS that I want to rotate at a distance of nRadius from the origin (0, 0, 0) about the y-axis.

I don't want it to rotate around it's local y-axis, I actually want it to "orbit" the origin at a distance of nRadius units.

How can I accomplish this? I have tried using glRotatef but I must be missing something!

Thanks so much,
-DanStart Free Trial
[+][-]11.03.2002 at 08:01PM PST, ID: 7404306

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.04.2002 at 12:02AM PST, ID: 7404659

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.04.2002 at 08:31PM PST, ID: 7408838

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.04.2002 at 11:51PM PST, ID: 7409121

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.05.2002 at 12:27AM PST, ID: 7409178

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.05.2002 at 08:06PM PST, ID: 7413033

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: 3D Game Programming
Tags: around, opengl, point, rotate
Sign Up Now!
Solution Provided By: UncleSquirrel
Participating Experts: 4
Solution Grade: A
 
 
[+][-]11.06.2002 at 03:40PM PST, ID: 7417193

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.09.2002 at 06:53AM PST, ID: 7428410

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32