Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 309633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:45:34+00:00 2026-05-12T07:45:34+00:00

I am writing iphone application where in I need to rotate cube. The rotation

  • 0

I am writing iphone application where in I need to rotate cube.
The rotation on vertical and horizontal axis is working fine.
Also, rotating cube from bottom right to top left and from top left to bottom right is working fine.(I am using glrotateef(angle, 1.0, 1.0, 0.0) to rotate from top left to bottom right).

The issue here is, I want to rotate from bottom left to top right and from top right to bottom left. And I could not get the solution.
I tried different approaches like

glRotateef(angle, -1.0, -1.0, 0.0)
glRotateef(angle, -1.0, -1.0, 0.0)
etc..
All of them are not working.
Please guide me on this (what is the exact rotation I need to use).
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:45:35+00:00Added an answer on May 12, 2026 at 7:45 am

    Did you try glRotatef(angle, -1.0, 1.0, 0.0) or glRotatef(angle, 1.0, -1.0, 0.0)?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am writing a simple application for iphone wich displays a rotating cube. I
I am writing an iPhone application that needs to record audio from the built-in
I am writing an iPhone application where the user receives multiple messages from different
I'm writing an iphone application and need to show a progress bar that shows
I'm currently writing an iPhone application which gets some data from the user and
I have a children's iPhone application that I am writing and I need to
I'm writing an iPhone application which you need to authenticate at the beginning. Therefore
I am writing an iPhone application, and need to save the state of my
I'm writing an iphone application that pulls xlsx file from the server, manipulates with
I'm currently writing an application for the iPhone, and I need to retrieve data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.