bladematthewslp

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Only get black window #320

    bladematthewslp
    Participant

    Hello,

    I was able to update my AMD Radeon Graphics driver and I am now getting something besides a black window. In the chapter 14 and 15 projects, I am now getting a blue background with the frame rate and elapsed time counter. See videocast here: http://screencast.com/t/gZvpqdVMtoHA

    From my understanding, there is supposed to be a shape rendered here in the CubeDemo and TriangleDemo projects. Any idea what could be causing the shapes not to render? I tried setting the shader model to 4 in the BasicEffects.fx file as recommended earlier but the shape still did not render.

    in reply to: Only get black window #316

    bladematthewslp
    Participant

    I opened Chapter 11 this time in Visual Studio 2012, rebuilt the projects and ran the Game project. Same thing. Black screen.

    Chapters 12, 13, and 14 will not build at all after updating the Platform Toolset to Visual Studio 2012. I get several linker errors, including:

    DirectXTK.lib(SpriteBatch.obj) : error LNK2038: mismatch detected for ‘_MSC_VER’: value ‘1800’ doesn’t match value ‘1700’ in Program.obj

    DirectXTK.lib(SpriteFont.obj) : error LNK2038: mismatch detected for ‘_MSC_VER’: value ‘1800’ doesn’t match value ‘1700’ in Program.obj

    DirectXTK.lib(pch.obj) : error LNK2038: mismatch detected for ‘_MSC_VER’: value ‘1800’ doesn’t match value ‘1700’ in Program.obj

    DirectXTK.lib(CommonStates.obj) : error LNK2038: mismatch detected for ‘_MSC_VER’: value ‘1800’ doesn’t match value ‘1700’ in Program.obj

    DirectXTK.lib(VertexTypes.obj) : error LNK2038: mismatch detected for ‘_MSC_VER’: value ‘1800’ doesn’t match value ‘1700’ in Program.obj

    DirectXTK.lib(BinaryReader.obj) : error LNK2038: mismatch detected for ‘_MSC_VER’: value ‘1800’ doesn’t match value ‘1700’ in Program.obj

    RenderingGame.obj : error LNK2019: unresolved external symbol “public: void __fastcall DirectX::SpriteBatch::Begin(enum DirectX::SpriteSortMode,struct ID3D11BlendState *,struct ID3D11SamplerState *,struct ID3D11DepthStencilState *,struct ID3D11RasterizerState *,class std::function<void __cdecl(void)>,struct DirectX::XMMATRIX const &)” (?Begin@SpriteBatch@DirectX@@QAIXW4SpriteSortMode@2@PAUID3D11BlendState@@PAUID3D11SamplerState@@PAUID3D11DepthStencilState@@PAUID3D11RasterizerState@@V?$function@$$A6AXXZ@std@@ABUXMMATRIX@2@@Z) referenced in function “public: virtual void __thiscall Rendering::RenderingGame::Draw(class Library::GameTime const &)” (?Draw@RenderingGame@Rendering@@UAEXABVGameTime@Library@@@Z)

    Libraryd.lib(FpsComponent.obj) : error LNK2001: unresolved external symbol “public: void __fastcall DirectX::SpriteBatch::Begin(enum DirectX::SpriteSortMode,struct ID3D11BlendState *,struct ID3D11SamplerState *,struct ID3D11DepthStencilState *,struct ID3D11RasterizerState *,class std::function<void __cdecl(void)>,struct DirectX::XMMATRIX const &)” (?Begin@SpriteBatch@DirectX@@QAIXW4SpriteSortMode@2@PAUID3D11BlendState@@PAUID3D11SamplerState@@PAUID3D11DepthStencilState@@PAUID3D11RasterizerState@@V?$function@$$A6AXXZ@std@@ABUXMMATRIX@2@@Z)

    RenderingGame.obj : error LNK2019: unresolved external symbol “public: void __fastcall DirectX::SpriteFont::DrawString(class DirectX::SpriteBatch *,wchar_t const *,struct DirectX::XMFLOAT2 const &,union __m128,float,struct DirectX::XMFLOAT2 const &,float,enum DirectX::SpriteEffects,float)” (?DrawString@SpriteFont@DirectX@@QAIXPAVSpriteBatch@2@PB_WABUXMFLOAT2@2@T__m128@@M2MW4SpriteEffects@2@M@Z) referenced in function “public: virtual void __thiscall Rendering::RenderingGame::Draw(class Library::GameTime const &)” (?Draw@RenderingGame@Rendering@@UAEXABVGameTime@Library@@@Z)

    Libraryd.lib(FpsComponent.obj) : error LNK2001: unresolved external symbol “public: void __fastcall DirectX::SpriteFont::DrawString(class DirectX::SpriteBatch *,wchar_t const *,struct DirectX::XMFLOAT2 const &,union __m128,float,struct DirectX::XMFLOAT2 const &,float,enum DirectX::SpriteEffects,float)” (?DrawString@SpriteFont@DirectX@@QAIXPAVSpriteBatch@2@PB_WABUXMFLOAT2@2@T__m128@@M2MW4SpriteEffects@2@M@Z)

    I don’t understand why this is happening at all…

    in reply to: Only get black window #315

    bladematthewslp
    Participant

    Yes, I tried to run the TriangleDemo of chapter 14. I also tried the ModelDemo of chapter 15. I also tried the very first project in chapter 4. All of them show a black window.

    I’m using the source code and book for a DirectX class and mostly everyone else was able to load chapter 14 with no problem. So I haven’t actually done any exercises, if there are any, from the book or done anything with shaders yet. I was simply testing out the code to see if it runs on my machine.

    One thing I recall from my work with OpenGL is I had to change the GLSL version to 3.3 (I believe) from the modern 4.x something because admittedly I do have a 2 or 3 year old Hp Pavilion dv6 Intel Core i7 laptop with a dedicated 2 GBs of video memory. But I was able to get it to run after lowering the shader version. I’m not sure if HLSL has shader versions like that (perhaps that’s what Shader Model versions are), but there may be something I need to adjust in the code to compensate for that. I just don’t know what it could be.

    I’m including a screenshot of the project properties. I didn’t change anything, but perhaps upon further evaluation you may notice something I need to modify here:

    Chapter 15 ModelDemo Project properties:
    http://screencast.com/t/yTpIbqbKUi8K

    in reply to: Only get black window #313

    bladematthewslp
    Participant

    I set the string back to “fx_5_0”. I also played around with the vs and ps version numbers in BasicEffect.fx, swapping back and forth between vs_4_0/vs_5_0 and ps_4_0/ps_5_0. None of which worked.

    I checked my DirectX setting and according to other documentation, my DirectX11-compatible graphics card should be able to support Shader Model 5.

    I witnessed another classmate fire-up chapter 14’s solution on his Windows 7 machine with Visual Studio 2013, set the Cube Demo as the startup project, and ran the project without any problems. Full text and pictures. For some reason, mine isn’t working.

    in reply to: Only get black window #311

    bladematthewslp
    Participant

    Hello, I changed the code in the BasicEffect.fx file to have “vs_4_0”.
    I also changed the shader model in the D3DCompileFromFile function to “”fx_4_0”.

    When I run the project now, I get the following error:
    http://screencast.com/t/o130JVoi

    When I rebuild the project, I do get some warnings, which are:

    FXC : warning X4717: Effects deprecated for D3DCompiler_47
    c:\program files (x86)\windows kits\8.1\include\um\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800

Viewing 5 posts - 1 through 5 (of 5 total)