Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 21 May 2004
Offline Last Active Aug 11 2013 10:16 PM

Topics I've Started

Help setting up VS2012 DirectX 11 project on Windows 8

10 July 2013 - 05:21 PM

I just started reading the book "Introduction to 3D Game Programming with DirectX" and  I'm having a really hard time trying to run a sample program in the first chapter on my machine.  The chapter talks about setting up the sample project with the DirectX SDK and VS2010.  However, my environment is Windows 8 and VS2012.


After reading online, I found that the DirectX SDK is no longer needed on Windows 8 - for Metro style applications - but I'm trying to run the program as a desktop application.  On the forums for the book, the author posted some instructions to get the programs to run on Windows 8.  I followed those, and I'm getting the following message:





So far I've tried quite a few things and nothings seems to work.  I think the problem has to do with the color.fx file.  The complete project is at the following bitbucket repository:




If anyone could help me get this to run I would really appreciate it.

Configuring VS 2012 with DX11 on Windows 7

10 February 2013 - 11:09 AM

If anyone could me help with this, I would really appreciate it.  What are the necessery steps to get VS2012 to work with the DX11 June SDK?


I started reading the book "3D Game Programming with DirectX 11" yesterday.  The book uses vs2010, but I have a license of vs2012 and would rather use the latter instead.  I followed the instructions given by the author in a blog post.  The problem is that I can build an example solution, but the program crashes once I run it.

Java Scanner problem

11 March 2008 - 04:45 PM

I'm a little rusty on Java because I haven't used it in a few months. And I'm having a problem with Scanner objects. If I create multiple Scanner objects initialized to the same InputStream will that cause both scanners to behave as if they were the same? The constructor signature from the documentation is: Scanner(InputStream source) Constructs a new Scanner that produces values scanned from the specified input stream. I have an InputStream object that I want to count how many lines it has so I can create an array. For this I use a Scanner object. Then once I know how many lines there are I read the file again to get the data.
public static boolean connected(InputStream network)
	String aLine = null;
	Scanner fileIn = new Scanner(network);
	Scanner readData = new Scanner(network);
	// Determine the number of elements in the file
	int size = 0;
	// The entire file is read first to determine the number of elements
	// This avoids having to construct an array of a very big size and thus wasting space
		size += 1;
	// Everything good up to this point.
		// Here it doesn't read anything

		aLine = readData.nextLine();
	return false;

Maybe the problem is that I'm treating the InputStream object as a file. Is that the right way to think about it?

How do you start with XNA?

21 February 2008 - 07:21 AM

Greetings, I've been programming since my senior year of high school, but I don't know anything about game development other than the most general stuff. XNA sounds like a really good platform for beginners, and I would like to try making my own game. What are some good resources to start out with XNA? I prefer books, tutorials, videos, etc. I already have Visual Studio and even though I haven't programmed in C# I don't believe its going to take me long to pick it up. My background is in C++, Java. Also my math skills are solid. All I need is a place to start. And yes I know I can research all this through Google and this site, but there are many of you that can help me by condensing it to a few paragraphs. Thanks in advance.

Conservation of energy

17 October 2004 - 08:42 AM

I'm currently trying to solve this problem where a 85kg trampoline artist jumps vertically upward from the top of a platform with a speed of 5.5m/s ----- * <- artist | | 2 m high between the artist and the trampoline | ----- <- trampoline How fast is he going as he lands on the trampoline, 2m below? I'm using the formula for conservation of energy, but my algebra is giving me some problems. 1/2mv^2 + mgy1 = 1/2mv^2 + mgy2 m = mass v = speed/velocity g = gravity (9.8) y = height For my refernce frame I chose y1 to be 2 and y2 to be 0 I know that mass cancels so I end up with: 1/2(5.5)^2 + (9.8 * 2) = 1/2v^2 + 0 but I don't see I to derive it to solve for v Any help would be greatly aprreciated. [Edited by - arroyjose on October 17, 2004 3:25:38 PM]