Jump to content

  • Log In with Google      Sign In   
  • Create Account

Richards Software Ramblings



Pathfinding 1: Map Representation and Preprocessing

Posted by ericrrichards22, 30 December 2013 · 630 views
C#, SlimDX, DirectX11 and 2 more...
This was originally intended to be a single post on pathfinding, but it got too long, and so I am splitting it up into three or four smaller pieces. Today,we’re going to look at the data structures that we will use to represent the nodes of our pathfinding graph, and generating that graph from our terrain class.

When we were working on our quadtree to de...


OutOfMemoryException - Eliminating Temporary Allocations with Static Buffers in Effect Wrapper Code

Posted by ericrrichards22, 13 December 2013 · 413 views
C#, SlimDX, DirectX 11, Memory
I came across an interesting bug in the wrapper classes for my HLSL shader effects today. In preparation for creating a class to represent a game unit, for the purposes of demonstrating the terrain pathfinding code that I finished up last night, I had been refactoring my BasicModel and SkinnedModel classes to inherit from a common abstract base class, a...


Refactoring Rendering Code out of the Terrain Class

Posted by ericrrichards22, 12 December 2013 · 362 views
Terrain, SlimDX, C#, DirectX 11 and 2 more...
Howdy, time for an update. I’ve mostly gotten my terrain pathfinding code first cut completed; I’m creating the navigation graph, and I’ve got an implementation of A* finished that allows me to create a list of terrain nodes that represents the path between tile A and tile B. I’m going to hold off a bit on presenting all of that, since I haven’t yet manag...


Terrain Tile Picking in 3D

Posted by ericrrichards22, 05 December 2013 · 566 views
C#, SlimDX, DirectX 11, Terrain and 1 more...
Typically, in a strategy game, in addition to the triangle mesh that we use to draw the terrain, there is an underlying logical representation, usually dividing the terrain into rectangular or hexagonal tiles. This grid is generally what is used to order units around, construct buildings, select targets and so forth. To do all this, we need to be able t...





December 2013 »

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Latest Visitors

PARTNERS