All Questions
Tagged with rotational-matrices c
6 questions
1
vote
1
answer
1k
views
Rotate around a point other than origin?
This is more math-y than programming-y but how can I improve this rotation matrix to accept a point at which to rotate around? There's the axis, which specifies the nature of the rotation, but there's ...
0
votes
0
answers
493
views
Objects rotation in 3D space - Ray tracing
I’m working on a ray tracing project in C. I have troubles to handle the rotations of objects. All the intersections are done in the world space, and I don’t want to use an object space.
For the ...
1
vote
1
answer
1k
views
Calculate Rotation Matrix to align Vector (1,1,1) to a vector
I want to get rotation matrix R that calculate a vector [x,y,z] from vector [1,1,1]:
R*[1,1,1]=[x,y,z]
knowing x,y,z, I try to calcute rotation matrix like said here: https://math.stackexchange.com/...
1
vote
1
answer
2k
views
Raytracing Rotations
I'm currently coding a simple raytracer in C. Everything is working fine, except for the rotations. I'm trying to rotate my objects (cylinders in that matter). The cylinders rotates, but the shading ...
1
vote
2
answers
970
views
Rotation Matrix Shrinks Objects?
Is my math wrong? The user is supposed to be able to input an angle in degrees, and it rotate the matrix respectively. Instead, it shrinks the object and flips it... calling
glmxRotate(&modelview,...
1
vote
1
answer
836
views
I need to translate 3d points relative to a triangle as if the triangle was somewhere else
I posted this on twitter a while ago but seeing how none of my followers appears to be a math/programming genius, I'll try my luck here as well. I got here because I found this which might contain ...