I have a rotation matrix. How can I get the rotation around a specified axis contained within this matrix?
I\'m writing an app that\'s going to use 3rd-party created plugins to render all kinds of 3D trickery.
I\'m using Direct3D to draw 2D elements in a C++ application of mine, and it\'d be neat if I could create rounded-rectangle GUI elements that were varying in size, but I\'m not sure how to do that in
I\'m trying to use Direct3D to render 2D graphics, as recommended by everyone since DirectDraw\'s deprecation. There really isn\'t any 3D-ness I care about, and just want to be able to do things like
I\'m doing double-buffering by creating a render target with its associated depth and stencil buffer, drawing to it, and then drawing a fullscreen, possibly stretched, quad with the back buffer as the
In Direct3D 9, I\'m trying to modify a surface thus: Given a rectangle, for each of the pixels in the given surface within the rectangle\'s bounds, each of the channels (R, G, B, A) would be multipli
I\'m trying to draw a \"targetting ring\" on the ground below a \"unit\" in a hobby 3d game I\'m working on. Basically I want to project a bright red patterned ring onto the ground terrain below the u
I am trying to render a birds eye view of a 3d environment to a texture and draw that texture as a HUD to represent a mini map as if it was a camera looking down at the game from above.I am pretty n
In shaders, which one is usually cheaper, branching (if, etc) or a te开发者_StackOverflow社区xture read?Texture read, usually. Branches are typically prohibitively expensive. Of course, so are anisotr
I have a sphere whose north pole is at (0, 0, 1) and center at (0, 0, 0). I also have a camera arbitrarily positioned in the scene and looking at (0, 0, 0). I w开发者_如何学Goant to rotate the sphere