Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 28 Oct 2002
Offline Last Active Dec 06 2014 09:22 PM

Topics I've Started

MSVC std::vector and aligned data

03 October 2011 - 08:12 PM

I switched to the DirectXMath library when I switched to D3D11, and I'm running into this issue of Microsoft's std::vector implementation being incompatible with aligned data types. Looking around the 'Net it looks like the standard fixes are to avoid using std::vector, use a custom allocator, patch vector::rebind vector::resize to take a const reference, or a combination of the latter two measures. But all the relevant pages I found were from 2008 or older.

So, what does the GD.net community suggest? And does anyone have a custom aligned allocator, or do I need to learn to write my own?

D3D11 Device and DeviceContext

02 October 2011 - 12:13 AM

I'm working with D3D11 and it's fun and all, but I don't really understand Microsoft's decision to split the D3DDevice into device and device context. I just don't see the benefit. This is (at least) partly because I've never really grokked what a context is supposed to represent. The pattern appears to be that that the device is used to create other D3D objects, and then the device context is used to manipulate them. How is that better than keeping it all together?

Blender->assimp coordinate troubles

20 September 2011 - 04:54 PM

I made a test model in Blender, exported it to an X file, and loaded it in my game. It works, but it's orientation is wrong. After playing with the exporter's Left/Right-Handed and Rotate X 90 Degrees settings, and assimp's ai_ConvertToLeftHanded flag, no combination resulted in correct orientation. So then I tried loading the BLEND file directly, Which also loaded with the wrong orientation, and after studying all these incorrect results I came to the realization that at some point in the process, the X and Z coordinates are getting swapped. That's the only explanation I can find for the results I'm seeing.

So, has anyone else encountered this, and is there an easy asset-chain fix, or am I going to have to swap X and Z coordinates in my load routine?

unresolved external symbol _IID_ID3D10ShaderReflection

14 July 2011 - 08:08 PM

So I'm trying to play with shader reflection, and I'm getting this weird unresolved external linker error for IID_ID3DShaderReflection. I'm obviously not including the right LIB file, but I'm including d3dcompiler.lib, which seems (?) like it should be the right LIB. MSDN says D3DReflect requires d3dcompile_xx.dll, so I'm not sure.

I'm kinda stuck on this one. Any assistance would be super neato-keen.

Applying MSVC 2010 Express Custom Build Tool to multiple files

12 July 2011 - 02:14 PM

Is there an easy way to set multiple files in MSVC 2010 Express to use the same Custom Build Tool without manually setting it each time I add a new file that requires it to the project?