IDirect3DQuery9::GetData() fails to return S_OK on multi-core CPUs
Tue, 22 Apr 2008 01:01:00 -0700
I'm using the following code to wait for my scene to be fully rendered before
using IDirect3DSwapChain9::Present() to display it on the screen. This
normally works fine but I've noticed that on some multi-core CPUs it will
occasionally get stuck in the loop because IDirect3DQuery9::GetData() never
returns S_ ...
|
Spotlight & directx
Mon, 21 Apr 2008 07:46:05 -0700 (PDT)
Hello everyone!
I created the model in 3D max, converted it .X mesh.
In my program (directx 9) I use lightening, textures.
With directional lights and point lights everything seems ok.
But when it comes to spotlight...some polygons are dark, when
they definitelly shouldn't be.
I have set fallof to 1.0
...
|
Rotating two D3DXCreateCylinders together
Sun, 20 Apr 2008 06:42:53 -0700 (PDT)
Hello all,
I have drawn what are two cylinders with the pointed tips facing away
from one another.
I would like to be able to rotate them together in the one rotation.
Is this possible?
The code for drawing the two objects is below:
//Draw Cylinder
D3DXMATRIX cylinder, cylinder2, cylinderRotate, ...
|
Screen to World and Vice versa co-ordinate convertion
Sat, 19 Apr 2008 16:32:15 -0700 (PDT)
In directX9 how to convert screen co-ords to World model and vice-
vers?.
So given x,y how to find the x,y,z in the world.
And given x,y,z how to find x,y on screen.
thanks! ...
|
How to build a release exe that doesn't need d3dx9_35.dll
Thu, 17 Apr 2008 09:51:24 +0200
I have made several very small applications (<100KB) that use DirectX 9. I
usually distribute them to people via email in a zip file, where the
receivers often have limits on mailbox sizes.
The problem is, that on their machines, even if they have installed the
latest DirectX version, my program still comp ...
|
Question about passing parameters to shaders
Wed, 16 Apr 2008 23:19:59 +0800
I have these lines in an fx file
#define MAX_LIGHTS 4
float4 lightDirections[MAX_LIGHTS] : LightDirections;
float4 lightColors[MAX_LIGHTS] : LightColors;
bool lightEnables[MAX_LIGHTS] : LightEnables;
Can someone tell me what format the data passed to ID3XEffect::SetValue
needs to be to match ...
|
Are there training classes available for DirectX?
Mon, 14 Apr 2008 16:21:01 -0700
How does one go about learning DirectX? I would prefer going to a week long
class. Are they available?
--
ScottyO ...
|
|
|
simple 3D engineering graphics drawing
Mon, 14 Apr 2008 08:17:03 -0700
Hi,
I am trying to create a drawing of artificial horizon based on input values
of pitch (i.e. nose up/down) and roll (tilted to left/right), basically
somewhat like a cockpit display. The display should show the "terrain" plane
at the bottom half, with "parallel" lines running from "me" to the "infinite
di ...
|
drawing a sphere in directx 10
Sun, 13 Apr 2008 21:40:01 -0700
hello, i am trying to draw a sphere by subdivision. But before that I should
be able to draw a sphere by normal methods.
The problem I'm facing is that till a few days back I've been programming in
openGL and there, one can easily draw a sphere by giving vertices as
glVertex3f()... but here one has to give ...
|
ID3DXFont::DrawText Italic Problem
Sun, 13 Apr 2008 07:23:01 -0700
When using DrawText with an italic font I often see the last letter being
clipped.
I've tried using DT_NOCLIP but this does not help.
I've noticed using C#, managed DirectX and Direct3D.Font does have this
problem (I hope this indicates a solution or workaround is possible).
Thank for you help.
Phil. ...
|