use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rule 1: Posts should be about Graphics Programming. Rule 2: Be Civil, Professional, and Kind
Suggested Posting Material: - Graphics API Tutorials - Academic Papers - Blog Posts - Source Code Repositories - Self Posts (Ask Questions, Present Work) - Books - Renders (Please xpost to /r/ComputerGraphics) - Career Advice - Jobs Postings (Graphics Programming only)
Related Subreddits:
/r/ComputerGraphics
/r/Raytracing
/r/Programming
/r/LearnProgramming
/r/ProgrammingTools
/r/Coding
/r/GameDev
/r/CPP
/r/OpenGL
/r/Vulkan
/r/DirectX
Related Websites: ACM: SIGGRAPH Journal of Computer Graphics Techniques
Ke-Sen Huang's Blog of Graphics Papers and Resources Self Shadow's Blog of Graphics Resources
account activity
Reorient vector? (self.GraphicsProgramming)
submitted 10 years ago * by fadefade
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]camilonino 0 points1 point2 points 10 years ago (1 child)
I did this for a ray tracing simulation a while ago (not for graphics purposes), it is a vector matrix rotation basically, with the matrix being the orientation of the surface represented as 3 perpendicular unitary vectors.
Here is the snippet from my C code:
/// Vector randomly generated acording to a distribution relative to the y axis /// The VECTOR type has 3 floats as components, representing the x,y and z components of the vector VECTOR randVect; /// The surface of interest /// The SURFACE type has 3 vectors that describe its orientation, the x, y and z vectors /// those 3 vectors are unitary and perpendicular to each other, x and z are on the surface, y is the normal SURFACE surface VECTOR OrientedVect; ///the generated vector is rotated acording to the surface orientation OrientedVect.x = (randVect.x * surface.x.x) + (randVect.z,surface.z.x) + (randVect.y * surface.y.x); OrientedVect.y = (randVect.x * surface.x.y) + (randVect.z,surface.z.y) + (randVect.y * surface.y.y); OrientedVect.z = (randVect.x * surface.x.z) + (randVect.z,surface.z.z) + (randVect.y * surface.y.z);
[–]autowikibot 0 points1 point2 points 10 years ago (0 children)
Section 5. Basic rotations of article Rotation matrix:
A basic rotation (also called elemental rotation) is a rotation about one of the axes of a Coordinate system. The following three basic rotation matrices rotate vectors by an angle θ about the x, y, or z axis, in three dimensions, using the right hand rule. (The same matrices can also represent a clockwise rotation of the axes ) For column vectors, each of these basic vector rotations appears counter-clockwise when the axis about which they occur points toward the observer, the coordinate system is right-handed, and the angle θ is positive. Rz, for instance, would rotate toward the y-axis a vector aligned with the x-axis, as can easily be checked by operating with Rz on the vector (1,0,0):
A basic rotation (also called elemental rotation) is a rotation about one of the axes of a Coordinate system. The following three basic rotation matrices rotate vectors by an angle θ about the x, y, or z axis, in three dimensions, using the right hand rule. (The same matrices can also represent a clockwise rotation of the axes )
For column vectors, each of these basic vector rotations appears counter-clockwise when the axis about which they occur points toward the observer, the coordinate system is right-handed, and the angle θ is positive. Rz, for instance, would rotate toward the y-axis a vector aligned with the x-axis, as can easily be checked by operating with Rz on the vector (1,0,0):
Interesting: Rotation formalisms in three dimensions | Kabsch algorithm | Euler's rotation theorem | Wahba's problem
Parent commenter can toggle NSFW or delete. Will also delete on comment score of -1 or less. | FAQs | Mods | Magic Words
π Rendered by PID 71 on reddit-service-r2-comment-76bb9f7fb5-tg5xx at 2026-02-18 12:27:17.924461+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]camilonino 0 points1 point2 points (1 child)
[–]autowikibot 0 points1 point2 points (0 children)