Jump to content
  • Advertisement

betawarz

Member
  • Content Count

    7
  • Joined

  • Last visited

Community Reputation

106 Neutral

About betawarz

  • Rank
    Newbie
  1. Hi all,   I'm using D3D11 and VS2012.   I've read that VS2012 can automatically compile FBX files during the build phase, similar to HLSL files. I haven't been able to find any documentation on how to do this, though. What build action do I set for the FBX files?   Also, what function or functions should I look up on MSDN / Google that relate to loading the compiled FBX file? A tutorial or stackoverflow link, etc, will work. I just have nothing to go on at the moment, so I don't even know what to Google for. My searches haven't turned up anything.   Thanks
  2. I'm learning how to program games using C++ and D3D11. I've got a basic 3D application that I re-factored from one of the simple tutorials; the one with a single spinning cube. I'm about to write a basic object manager, and pull the code for the cube out into an object class.   Now, I've been reading about object managers and game objects, etc. I've read two different takes on it.   Each game object is responsible for updating and drawing itself. So each object has its own draw method that the object manager would call. Game objects only contain the information needed to draw itself; the object manager actually handles the drawing logic using that information. I'm familiar with the first method, because it's pretty simple to wrap my head around. I've seen it used in quite a few examples and stuff. I'm trying to grok the 2nd way, though. Wouldn't the draw function of the object manager need to iterate over each object, and depending on the type do specific stuff? This would result in a pretty massive draw function with a bunch of if-else branches based on the object type. Is that good? I know it consolidates all the drawing logic into one area, so it's not spread out over many different object classes, so I could see that being a bonus.   Just looking for some advice on which method to go with, I guess. Thanks!
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net 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!