P. Avery
  • Member for 9 years, 4 months
  • Last seen more than 1 year ago
2 answers
1 votes
6k views
How do I handle DirectX mouse events?
3 votes

If you're using win32 then you can handle mouse and keyboard events using RawInput. Info can be found on MSDN. You would handle windows messages for raw input devices in the window process. For ...

View answer
2 answers
3 votes
2k views
Implementing Geometry Instancing in DirectX
Accepted answer
2 votes

What you'll wind up doing David is creating a vertex buffer to hold the different transformation matrices for each instance of grass. You will need a vertex declaration that has your standard 'grass' ...

View answer
1 answers
1 votes
252 views
How do I toggle color writes in SlimDX 11/Direct3D 11 with FeatureLevel 10?
1 votes

I found the answer in this thread which says: States are immutable in D3D10. Once created you cannot modify the properties for the state; the Description is essentially read-only, and we allow ...

View answer
2 answers
3 votes
475 views
Rasterization Rules and States
1 votes

Conservative rasterization is a fix for this problem. Thanks to Nathan Reed's comments, in preparation for the generation of a lightmap, I dilate the uv coordinates and recalculate they're associated ...

View answer
2 answers
0 votes
277 views
How to write an adjacency algorithm that compares position data?
1 votes

Here is my implementation of Zehelvion's suggestion. An octree wasn't necessary but his suggestion helped to formulate the following method: private static int[] GenerateAdjacency(Vector3[] positions,...

View answer
1 answers
1 votes
764 views
How do I take Direct3D9 full screen using SlimDX?
Accepted answer
1 votes

The problem was due to the nature of controls found in Windows Forms. From MSDN: A control can be selected and receive input focus if all the following are true: the Selectable value of ControlStyles ...

View answer
1 answers
0 votes
434 views
Determining desktop bounds by D3D9 adapter
Accepted answer
1 votes

The desktop bounds, or 'WorkingArea' of the adapter can be found using the Screen(System.Windows.Forms.Screen) class. First you must have the handle of the device window(System.Windows.Forms.Form) ...

View answer
1 answers
0 votes
341 views
SlimDX and Parsing .X Files
Accepted answer
1 votes

Ok figured out the problem...The template strings in the XFile object do not include the standard templates(eg. Frame, Mesh, MeshMaterial, MeshNormals...etc). In order to register those templates you ...

View answer
2 answers
0 votes
1k views
How to draw multiple shapes in one draw call?
0 votes

maybe instancing is what you want...you can instance a collection of vertices( a single vertex or many vertices, a mesh for example ) many times. This is done in software before the draw call...see ...

View answer
3 answers
4 votes
153 views
Propel entities at some angle (depending on explosion's position)
0 votes

You should look into 'impulse force' since you are using physics...Impulse is calculated as force * time...or mass * change in velocity...if your particles are motionless before the explosion, an ...

View answer