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 8908225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:07:31+00:00 2026-06-15T03:07:31+00:00

So I have been here before asking about this issue but no one has

  • 0

So I have been here before asking about this issue but no one has been able to answer my question thus far. So I made a video that demonstrates the issue.

I have so far checked and rechecked my math files, so has two of my college professors, I have checked my shaders, and I am just using a simple pass through shader.

I have create a video of the issue happening, I will describe a little of my process.

I have set initial values of my rotations to, this pushes it to the point where the issue appears.

rotX = 0.0f;
rotY = -22.0f;
rotZ = -62.0f;

These values ensure that I do not have to rotate the object at run time, these values are where the problem occurs. As you can see in the video the cow will start to rotation without any place in the code actually telling it to. I output the rotations matrices and rotations values to my log file and they are all normal.

http://www.youtube.com/watch?v=LB7_zftalT8

So I have never seen this before ever, anywhere. If anyone has seen something like this let me know. I have not posted any code because there are far to many possible issues, however I can provide code snippets on demand, or provide access to my source svn.

I have spent three weeks debugging this issue, I have at least 10 other sets of eyes look at this issue and review my code.

The only issue floating around that I haven’t been able to remove as an issue is memory corruption, I hope you have better luck.

Edit:

Code Samples:
http://pastebin.com/hRSvEYAZ

I use quaternions for my rotations, I create them with axis angles. I then multiple my rotations together and create my 4×4.

Edit:

I have tried the answer provided by MadCoreTom, it did not help, I have also continued to take a look at memory and I cannot see any issue.

Edit:

So I have removed the normalization calls from my quaternions, now I only normalize the axis when I create my quaternion from an axis angle. I have also rewritten my toMatrix3 for my quaternion to see if that helps, it hasn’t.

I also moved my updating the rotations to inside my key press, I intend to provide more code soon as well.

  • 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-06-15T03:07:33+00:00Added an answer on June 15, 2026 at 3:07 am

    Alright so I solved my issue. There was a floating point error covering up the actual issue.

    So once I fixed that, not using the method provided by MadcoreTom though. What I ended up doing was only normalizing the the axis, and never normalizing my quaternion during rotations.

    The real issue was I was storing my angle and accumulating it, this was causing the issue.

    Now I just pass in the change in rotation, create my quaternion from the axis/angle change, then I multiply this to my quaternionF.

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

Sidebar

Related Questions

This question has been asked here before . The accepted answer was probably obvious
There have been many debates about this topic already here, but none of them
I think my question has been asked here before, I did read them but
Ok guys I know this question has been asked before but I am very
Question has been asking before, but I am still a bit at a loss
I'm aware that similar questions have been answered here before: postscript - overlay one
i know this is basic but somehow i have been stuck here for some
I have been asked this questions before but this time i want to know
I have been searching here for some time but haven't been able to find
There has been discussion here before about the correct way to rethrow an exception.

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.