Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 08 Jul 2012
Offline Last Active Today, 03:11 PM

Topics I've Started

Getting ASSIMP Working/Building

Yesterday, 10:22 AM

I've been trying to get ASSIMP working in my OpenGL4 project (Visual Studio 2013 as the IDE) and despite attempts at various methods it just doesn't want to cooperate.  The first method I tried was downloading the Windows binary files http://sourceforge.net/projects/assimp/files/assimp-3.1/ and setting it up the way I've set up numerous other libraries for use in my project http://puu.sh/aZ7Ak/a76c24e558.png http://puu.sh/aZ7B7/9ff180171f.png .


This resulted in an odd error that would pop up when running the project that's attempting to use ASSIMP functions and data structures. http://puu.sh/aZ7m6/18ee88b7b4.jpg .  Not only is assimp.exe on my computer, but the only files that should be required (to my knowledge...unless ASSIMP is different somehow) are the .dll, .h (and sometimes some implementation files), and .lib files (which I put into respectively into the bin, include, and lib folders referenced in that screenshot above).


Since that didn't work, I then tried to build it myself using CMake (as researching that issue didn't turn up enough relevant information to fix the error).  I downloaded the zip file that they have for use in CMake (again, via http://sourceforge.net/projects/assimp/files/assimp-3.1/ )  I've used CMake before so I thought this wouldn't be a problem but the build fails, so I went to their website and explicitly followed their instructions http://assimp.sourceforge.net/lib_html/cmake_build.html but the build still fails.  One thing of note is that they mention "Point it to the location of the assimp source code. The UI should now look like the screenshot above" but this doesn't occur for me. http://puu.sh/aZ8Gj/0c97c99d42.png .  Regardless of what I do (I have even tried specifying those values myself), I end up with the same error http://puu.sh/aZ8Yh/dc12f15480.jpg .


The text error message seems to indicate a problem with their CMakeLists.txt file itself (CMake Error at CMakeLists.txt:725 (INSTALL): install TARGETS given no ARCHIVE DESTINATION for static library target "assimp") though I'm not entirely sure.


Any suggestions?

Industrial Strength Hash Table

12 March 2014 - 12:26 PM

I've been enjoying the coding horrors forum for a while, so I decided to post a snippet of code that I found in a large c++ project that I'm (unfortunately) a part of.  Normally I wouldn't poke fun at code like this, but I couldn't resist this one.



#pragma once

#include "Includes.h"

template<class T>

class Dictionary



    std::vector<std::string> keys;

    std::vector<T> values;




        keys = new std::vector<std::string>{};

        values = new std::vector<T>{};




        delete[] keys;

        delete[] values;


    std::vector* Values() { return &values; };

    std::vector* Keys() { return &keys; };

    size_t size() { return keys.size(); }

    void Add(std::string _key, T value)





    void Remove(std::string _key)


        for (size_t i = 0; i < keys.size(); i++)


            if (keys.at(i) == _key)


                keys.erase(keys.begin() + i);

                values.erase(values.begin() + i);





    T Get(std::string _key)


        for (size_t i = 0; i < keys.size(); i++)


            if (keys.at(i) == _key)


                return values.at(i);



        return nullptr;



XNA Access Violation Exception

30 April 2013 - 09:38 PM

System.AccessViolationException was unhandled
  Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
       at Microsoft.Xna.Framework.Audio.AudioCallbackDispatcher.IsEventRegistered(EventType type)
       at Microsoft.Xna.Framework.Audio.AudioCallbackDispatcher.UnregisterEvent(EventType type)
       at Microsoft.Xna.Framework.Audio.KernelMicrophone.ShutdownCaptureEngine()
       at Microsoft.Xna.Framework.Audio.MicrophoneUnsafeNativeMethods.ShutdownCaptureEngine()
       at Microsoft.Xna.Framework.Audio.AudioRendererShutdownHandler.AppExitingEventHandler(Object sender, EventArgs args)

Every now and then, I get a System.AccessViolationException when closing the program and all the information I'm given is above.  I suppose it isn't really an issue as if the program crashes when I'm closing it, so it probably isn't the absolute end of the world (compared to it crashing during run time).  But I still would prefer for this to not happen.  Unfortunately, I don't know what's directly causing it, and I'm not sure it'd be helpful to post my audio manager classes either since the problem seems to be within the framework itself.


Any ideas?

Getting Started with OpenGL

15 April 2013 - 09:42 PM

I'm looking to purchase a book that will help me learn OpenGL (with C++).  I've looked into a few but there seem to be some mixed opinions about said books, so here I am - asking for advice.


This book shouldn't assume I know everything there is to know about 3D math, and should be a "learning book" instead of a "reference book."  And before someone suggests a website (which is fine if it's a great resource), the reason I'm looking for a book is simply a learning preference.


If this is the entirely wrong approach, then feel free to steer me in the right direction.

Legal Questions

03 February 2013 - 11:26 PM

I develop my own games for the purpose of building up a portfolio that will end up getting me a job after college.  Now, my problem is that I don't do my own art/music/sound, so I rely on open source stuff generally.  More specifically, I get art/music/sound from many, many different sources and I'm not always sure if it's considered open source or not.  SO:


For a non-profit strictly-portfolio game where I will provide the source code upon request, is it legal to use open source images/sound/music (without giving credit - I don't want to get slammed for missing someone in the credits).


Also, if you modify an existing image, sound or music file, is it now your work?  Their work?  Partly both?  How does that work?  What if you completely replicate it from scratch?  Is it still considered their work?