Tagged Questions
5
votes
1answer
110 views
What does HLSL's tex2D return at (0,0)?
I'm trying to understand the mapping of texels to pixels, especially in the context of pixel shaders. I already found out the following:
When I define a standard quad with vertices at integer ...
3
votes
1answer
140 views
Vertex Buffer Sharing between DirectX11 and Directx9
In my d3d9 engine i want to take benifit of compute shader of d3d11. So firstly I created a vertex buffer in d3d11 with D3D11_BIND_UNORDERED_ACCESS and then tried to create the d3d9 vertex buffer ...
1
vote
1answer
64 views
Whats the point of this LPDIRECT3DDEVICE9 reference?
I'm going through the DirectX 9 MSDN documentation
Which lead me to something rather peculiar, do you need a class reference in DirectX 9?
Can someone tell me what the point of the class ...
1
vote
2answers
117 views
how to set image resource path for D3DXCreateTextureFromFileEx method?
I try to merge all the image resources to a folder called resource. So, set image path as "resource/" but my directX framework only works if I compile at VS 2010. If I run from the debug folder it ...
1
vote
0answers
114 views
2D Camera transformation sidescroller
i am currently trying to dive into 2D programming with DirectX, especially bulding a tile based sidescroller. I have worked with some chapters from a book (Advanced 2D Game Development) but always ...
1
vote
2answers
143 views
How to blend the sprite into background?
I try to blend the character into game but I still cannot remove the blue color in the sprite sheet and discover that the white area of sprite is semi-transparent.
Before that, the color ...
1
vote
1answer
82 views
How can I compile SM 3.0 effects in D3D11 in SlimDX?
var bytecode = ShaderBytecode.CompileFromFile("shaders\\testShader.fx", "fx_5_0", ShaderFlags.None, SlimDX.D3DCompiler.EffectFlags.None, null, null, out str);
var effect = new ...
1
vote
1answer
117 views
Texture Shaders vs. Pixel/Fragment Shaders?
My question is a simple one.
Functionally, practically, and performance-wise, what are the differences between using a D3DX Texture Shader, and using a Pixel/Fragment Shader rendered with a full ...
1
vote
2answers
148 views
DirectX How to Gernerate Vertices for Diamond Shape and Render it?
How to generate vertices for 3D Diamond Shape in DirectX?
EDIT:
I am creating an application which receive DIAMETER, CROWN, GIRDLE and PAVILION as parameter and render a model of diamond according to ...
-2
votes
1answer
70 views
How to use D3DXIntersectTri function to find intersected point?
How to calculate direction for D3DXIntersectTri function to find intersected point? And after getting the result in Distance how to get that coordinate(XYZ)?
0
votes
2answers
173 views
D3DXCreateEffect Performance
Current performance analysis shows that D3DXCreateEffect is called many times with different shaders. Between each call, the D3DCompile DLL is being loaded and unloaded. Is there an easy way to keep ...
-1
votes
1answer
194 views
How to Render Cylinder with built in function D3DXCreateCylinder in Directx9 with Delphi-Xe2 and JEDI? [closed]
I'm new to Directx and i want to render Cylinder using "D3DXCreateCylinder" function.
I using Delphi Xe2 and JEDI for DirectX9.
0
votes
2answers
477 views
Using DirectX9 within Visual Studio 2012 in Windows 8?
Asking the question here simply because my PC is down for the count for a while and wasn't able to stave a curiosity before that happened.
I picked up a few books about programming Games in DirectX, ...
0
votes
1answer
306 views
How can I render multiple windows with DirectX 9 in C++?
I'm trying to render multiple windows, using DirectX 9 and swap chains, but even though I create 2 windows, I only see the first one that I've created. My RendererDX9 header is this:
#include ...
1
vote
1answer
279 views
2D Matrix Transformation (with a Player and Ground)
I have a simple game that I'm trying to do for learning purposes, but Matrices are a bit hard, especially in DirectX.
I currently have a tilesystem that renders tiles at the screen and a character ...