direct3d
Decomposing a rotation matrix
I have a rotation matrix. How can I get the rotation around a specified axis contained within this matrix?[详细]
2023-02-03 13:15 分类:问答App using 3D & 3rd-party plugins - forward compatible OpenGL or Direct3D?
I\'m writing an app that\'s going to use 3rd-party created plugins to render all kinds of 3D trickery.[详细]
2023-02-03 12:19 分类:问答Drawing Rounded Rectangle in DirectX/3D for 2D
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[详细]
2023-02-02 05:38 分类:问答2D graphics with Direct3D
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[详细]
2023-02-01 23:44 分类:问答Texture from Surface in DirectX 8.1
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[详细]
2023-02-01 08:04 分类:问答Darkening part of a surface in Direct3D 9
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[详细]
2023-02-01 07:37 分类:问答Projecting a targetting ring using direct3d
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[详细]
2023-02-01 02:53 分类:问答Render to texture for mini map, dirextX
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[详细]
2023-01-29 08:00 分类:问答Branch vs Texture Read
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[详细]
2023-01-28 11:12 分类:问答Rotate a sphere so that its pole heads towards the camera
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[详细]
2023-01-25 23:27 分类:问答