Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

210 Neutral

About m3t4lukas

  • Rank
  1. Hello again,   I patched it up by storing the yaw seperately in my player class. I hope anyone has an swer to this for me to have it the "clean" way.   Happy Hacking Lukas
  2. Hey guys,   I may have encountered a bug, but I'm not sure, maybe this is the way quaternions work.   I try to calculate the models roatation based on the camera angle, the angle of the analog stick, the model angle and the time. So far my code works out well as long as my model keeps being rotated between 0 and 180 degrees (counterclockwise, along y-Axis, y-Up). To get the ModelInstance's rotation (still along y) I use Quaternion quatRotation = new Quaternion; modelInstance.transform.getRotation(quatRotation); float rotation = quatRotation.getAxisAngle(new Vector3 (0f, 1f, 0f)) % 360f; but rotation is always between 0f and 180f. Even if I'd expect (because I see it on my display) the value to be e.g. -6f it still is 6f. So basically the rotation gets mirrored along x-Axis.   Do I do anything wrong or is this a bug within libGDX?   Thanks in advance Lukas
  3. m3t4lukas

    get a vertex B from vertex A and Quaternion

    Thanks again Álvaro,   I do have one querstion regarding your formula. What does the interpret_imaginary_part_as_3D_vector function do?   Thanks a lot so far :) Lukas
  4. m3t4lukas

    get a vertex B from vertex A and Quaternion

    Hi,   thanks for the quick reply. Here are the formular I know which I would use (assuming y-up): vertexB.x = vertexA.x + (cos(yaw * PI / 180) * radius) vertexB.y = vertexA.y + (sin(pitch * PI / 180) * sin(yaw * PI / 180) * radius) vertexB.z = vertexA.z + (cos(pitch * PI / 180) * sin(yaw * PI / 180) * radius) so how do I calculate such a thing (which is a spherical movement) with a quaternion?   Greetings Lukas
  5. Hello guys, I have a problem with my third person camera. I want to find out the position of the camera and the position of the look at spot. I know how to calculate this with ?, ? and ? angles but I really don't have a clue how to calculate verticex B based on a vertex A, a quaternion and a distance between vertices A and B.   It would be great if anyone could provide formulars or point the direction to go.   Greetings Lukas
  6. m3t4lukas

    Reflection on Uneven Planes

    Thanks a lot :) Sounds to me to be runtime intensive especially for objects reflecting each other...
  7. m3t4lukas

    Reflection on Uneven Planes

    So I will first have to create an environment Map of the Environment?
  8. Hey guys,   I have searched through the internet the wole day now but I could not find an answer to that big question. What about reflection on uneven planes?   Of course for reflection on even planes like a standard mirror you can mirror along the plane, turn on stencilbuffer, turn off depthbuffering and draw all again, but what about convex or concave surfaces (e.g. a car chasey)?   Thanks in advance Lukas
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!