Jump to content

  • Log In with Google      Sign In   
  • Create Account


Richards Software Ramblings



Camera Picking in SlimDX and Direct3D 11

Posted by ericrrichards22, 01 September 2013 · 403 views
C#, SlimDX, Direct3D 11, Picking
So far, we have only been concerned with drawing a 3D scene to the 2D computer screen, by projecting the 3D positions of objects to the 2D pixels of the screen. Often, you will want to perform the reverse operation; given a pixel on the screen, which object in the 3D scene corresponds to that pixel? Probably the most common application for this kind of...


A Look-At Camera in SlimDX and Direct3D 11

Posted by ericrrichards22, 30 August 2013 · 261 views
C#, SlimDX, Direct3D 11 and 1 more...
Today, we are going to reprise our Camera class from the Camera Demo . In addition to the FPS-style camera that we have already implemented, we will create a Look-At camera, a camera that remains focused on a point and pans around its target. This camera will be similar to the very basic camera we implemented for our initial examples (see the Colored C...


Hardware Instancing and Frustum Culling using SlimDX and Direct3D 11

Posted by ericrrichards22, 28 August 2013 · 332 views
C#, SlimDX, Direct3D 11, Culling and 1 more...
One of the main bottlenecks to the speed of a Direct3D application is the number of Draw calls that are issued to the GPU, along with the overhead of switching shader constants for each object that is drawn. Today, we are going to look at two methods of optimizing our drawing code. Hardware instancing allows us to minimize the overhead of drawing ident...


An FPS Camera in SlimDX

Posted by ericrrichards22, 23 August 2013 · 323 views
SlimDx, C#, DirectX 11, FPS and 1 more...
Up until now, we have been using a fixed, orbiting camera to view our demo applications. This style of camera works adequately for our purposes, but for a real game project, you would probably want a more flexible type of camera implementation. Additionally, thus far we have been including our camera-specific code directly in our main application classes,...


Geometry Shader Billboards with SlimDX and DirectX 11

Posted by ericrrichards22, 16 August 2013 · 481 views
SlimDX, C#, DirectX 11 and 2 more...
When I first learned about programming DirectX using shaders, it was back when DirectX 9 was the newest thing around. Back then, there were only two stages in the shader pipeline, the Vertex and Pixel shaders that we have been utilizing thus far. DirectX 10 introduced the geometry shader, which allows us to modify entire geometric primitives on the har...


Planar Reflections and Shadows using the Stencil Buffer in SlimDX and Direct3D 11

Posted by ericrrichards22, 13 August 2013 · 393 views
SlimDX, DirectX 11 and 4 more...
In this post, we are going to discuss applications of the Direct3D stencil buffer, by porting the example from Chapter 10 of Frank Luna’s Introduction to 3D Game Programming with Direct3D 11.0 to C# and SlimDX. We will create a simple scene, consisting of an object (in our case, the skull mesh that we have used previously ), and some simple room geo...


Alpha-Blending Demo

Posted by ericrrichards22, 12 August 2013 · 306 views
C#, SlimDX, DirectX 11, Blending
Last time , we covered some of the theory that underlies blending and distance fog. This time, we’ll go over the implementation of our demo that uses these effects, the BlendDemo. This will be based off of our previous demo, the Textured Hills Demo , with an added box mesh and a wire fence texture applied to demonstrate pixel clipping using an alpha map...


Blending Theory

Posted by ericrrichards22, 10 August 2013 · 322 views
C#, DirectX 11, SlimDX and 2 more...
This time around, we are going to dig into Chapter 9 of Frank Luna’s Introduction to 3D Game Programming with Direct3D 11.0 . We will be implementing the BlendDemo in the next couple of posts. We will base this demo off our previous example, the Textured Hills Demo . We will be adding transparency to our water mesh, a fog effect, and a box with a wire...


Using a Texture Atlas for Animation

Posted by ericrrichards22, 08 August 2013 · 402 views
C#, SlimDX, DirectX 11, Texturing and 2 more...
We’re going to wrap up our exploration of Chapter 8 of Frank Luna’s Introduction to 3D Game Programming with Direct3D 11.0 by implementing one of the exercises from the end of the chapter. This exercise asks us to render a cube, similar to our Crate Demo , but this time to show a succession of different textures, in order to create an animation, simi...


Textured Hills Demo

Posted by ericrrichards22, 06 August 2013 · 433 views
C#, SlimDX, DirectX 11, Terrain and 1 more...
This time around, we are going to revisit our old friend, the Waves Demo , and add textures to the land and water meshes. We will also be taking advantage of the gTexTransform matrix of our Basic.fx shader to tile our land texture multiple times across our mesh, to achieve more detail, and use tiling and translations on on our water mesh texture to create...






August 2014 »

S M T W T F S
     12
3456789
10111213141516
17181920 21 2223
24252627282930
31      

Latest Visitors

PARTNERS