Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

712 Good

About bakery2k1

  • Rank
  1. bakery2k1

    A few days in Vancouver

    The main disadvantage of being British and living in New Zealand is the long flight required to visit friends and family. An upside of this, however, is the ability to stop over en-route with no cost increase over flying "direct" - allowing cheap overseas trips to many varied destinations. Next time my partner and I visit the UK, we will be spending a few days in Vancouver, Canada. We're currently trying to decide how to spend our time there. What are the "must see/do" attractions in Vancouver? Does anyone have any recommendations for other places to visit, perhaps which are below the radar of the Lonely Planet guides? Is there anywhere particularly recommended for eating? Finally, any tips on getting around without a car?
  2. Quote:Original post by Mike.Popoloski If you would be so kind as to file an issue on our issues page, I'll be sure to get a look at it soon. Done (#382). Quote: Also, your use of vectors as matrix rows made me think to add some construction methods to Matrix to build matrices from vectors. I've also added an issue for this (#383), including a suggestion to add methods for the reverse (Matrix => Vector) conversion as well. Thanks very much for your help; keep up the good work!
  3. I'm updating a DX9 project of mine which was originally built against the November 2007 version of SlimDX to use the latest (November 2008) release. I was pleased with how straightforward it was to obtain a successful build, however once that was achieved the graphics displayed were clearly incorrect. My code uses a "float3x3" variable in an effect and sets its value by calling BaseEffect.SetValue, passing in an instance of Matrix. With the older SlimDX, the variable in the effect received the upper-left 3x3 section of the matrix. Using the latest SlimDX, the variable in the effect is different. I believe this stems from svn revision 686, where the function called on the underlying pointer when passing a Matrix to BaseEffect::SetValue changed from ID3DXBaseEffect::SetMatrix to ID3DXBaseEffect::SetValue. Are these new semantics a bug in SlimDX, or by design? Should I be able to set a float3x3 by passing a Matrix, or should I replace this effect.SetValue("matrix", matrix); with something like this? Vector3[] matrixRows = { new Vector3(matrix.M11, matrix.M12, matrix.M13), new Vector3(matrix.M21, matrix.M22, matrix.M23), new Vector3(matrix.M31, matrix.M32, matrix.M33) }; effect.SetValue("matrix", matrixRows);
  4. bakery2k1

    Types of Software Testing

    Quote:Original post by stonemetal List of types of tests in order of increasing size: unit: smallest unit that can be tested separately. integration: test units working together. systems: Full up app testing. Thanks, that agrees with what I've seen elsewhere. Quote:the example given could be unit testing if it is the encrypt/decrypt function. It could be integration testing if it is testing something larger than a unit say testing the ssl library. it could be systems testing if it is testing the gpg command line app. OK, let's flesh out the example a little. The program's main purpose is to perform encryption/decryption, but it also has a fancy GUI and support for other features related to encryption, for example a random password generator. Our test is not concerned with any of these additional features, it merely tests the encryption engine at the centre of the system. However, doing so involves the use of several units - file access classes, memory management classes as well as the core encryption class. According to the generally accepted definition, therefore, this would be an integration test? In fact, I'm fairly confident that the answer to that question is "yes" - rather than not knowing the answer, I think I just dislike it. Although we are testing the "integration" between the file access classes and the encryption class, we're doing a lot more - we're testing the core of the application in a real world setting. Consider adding support for a second encryption algorithm to the program. As well as unit testing the new encryption class, would you not want to test it exhaustively using the test-data generator? Isn't the chance of an error in "integration" pretty low on the list of reasons to run this "integration test"?
  5. Unit testing is the testing of a single "module" within a program, for example a single class. At the other extreme, I see system testing defined as the testing of an entire system, or of "behavior which is a property of an entire system". How would you classify tests lying between these two poles? For example, in Steve McConnell's "Code Complete", he describes testing an encryption program: "I set up a test-data generator that fully exercised the encryption and decryption parts of the program. It generated files of random characters in random sizes. [...] For each random case, it generated two copies of the random file, encrypted one copy, reinitialized itself, decrypted the copy and then compared each byte in the decrypted copy to the encrypted copy. If any bytes were different, the generator printed all the information I needed to reproduce the error." Clearly this test involves several parts of the system, so is not a unit test. However the entire system is not being tested, indeed it would be possible to perform this test without the entire system being present. What would you call tests of this nature?
  6. bakery2k1

    Can anyone recommend a simple bug tracker?

    Thanks everyone, I considered all of the suggestions here plus a few others and eventually decided on Trac. It is very customisable and I have been able to set it up to closely match my way of working. It's also nice to have support for Subversion integration, something I never even considered initially. Quote:Original post by superpig Something being 'web-based' shouldn't matter... Maybe "web-based" wasn't the best way to explain why I didn't want to use Google Code or similar; rather I cannot use it since it is open to the public (via the web) and I need something private.
  7. bakery2k1

    Compiler can't #include dmusici.h

    The August 2007 DirectX SDK (which can be downloaded here) was "the final release of the DirectX SDK that will contain the following components: DirectMusic".
  8. bakery2k1

    I hate vc++ 2008 ! [resolved!]

    You can either copy the folder or just the files within. Copying the files themselves may even be preferable, since that will allow them to be found on Windows 2000 systems. However, if you are going to copy the contents of the folder, make sure you copy everything - the manifest file is required as well as the DLLs.
  9. I have several hand-written lists of bugs and features that I need to fix/implement in my current project. I feel I could do with something a little more formal and a little easier to keep track of than scraps of paper. So, does anyone know of a simple issue tracker I can use to store the list of "work to do" on my current project? I really don't need anything too complicated and, as it's just me working on the project, I'd like something which works on my local machine; I don't need anything to be available on a web server or anything like that. I'd just like to be able to store a list of items, each with a current status and priority, and to be able to navigate easily by filtering and perhaps by search. Google Code's issue tracker (e.g. here) looks like it would do the job well, but is no good to me since it's web-based. Is there any software that is designed for this purpose, or should I just make do with Excel or even Notepad?
  10. Quote:Original post by Demirug If you already have Vista and the DirectX SDK you can just try one of the Direct3D 10 samples. If it run not slow (Reference Rasterizer) you hardware is compatible. All of the Direct3D 10 samples from the latest SDK crash for me. However, they seem to be requesting Direct3D 10.1 support (D3D10_FEATURE_LEVEL_10_1). If I change this to 10_0 or try samples from the August 2007 SDK, they run, albeit with some artifacts. So, it seems my hardware does in fact support D3D10 but my (admittedly ancient) drivers could do with an upgrade. Quote:The other way is to check which GPU you system contains. I have an NVIDIA Quadro NVS 140M. Unfortunately, not being a gamer's card, information on its Direct3D capabilities is hard to find.
  11. Quote:Original post by Demirug Direct3D 10 needs compatible hardware and Windows Vista. Is there an easy way to find out whether my hardware supports Direct3D 10?
  12. I assume you are building your project using the "Any CPU" platform in Visual Studio? If so, this will cause your application to load into the 32-bit CLR on a 32-bit machine, and the 64-bit CLR on a 64-bit machine. On a 64-bit machine you will thus get a 64-bit process, into which the 32-bit MDX DLL cannot be loaded - causing your "bad image format" exception. You need to mark your project as "x86", to force it to load into the 32-bit CLR even on a 64-bit machine.
  13. bakery2k1

    using SDL with visual c++ 2008

    Quote:Original post by agm_ultimatex I don't see the c/c++ folder in the properties to change the Runtime Library. The "C/C++" "folder" will only appear once you have added a C or C++ source file to the project.
  14. Quote:Original post by dingojohn so I added [SDK installation directory]/include to the directories to look in. Problem solved. Did you add this directory above or below the other include directories? It needs to be at the top of the list. This is because some header files are included in both the DirectX SDK and the normal Windows SDK, with the DirectX SDK versions being newer. Visual Studio will search the include directories from the top down, and will stop once a header of the correct name is found. You want that to be the newer DX SDK version of the header.
  15. bakery2k1

    Case expression not constant?

    OK, then the error message tells you what's wrong: "switch expression of type 'const char *' is illegal". You'll have to come up with a different solution, avoiding a switch according to the returned string. Maybe use a chain of if/else if/else or a data structure such as a map. Alternatively, if the returned string is always "X", "Y" or "Z", you could try a switch according to its first character.
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!