• Advertisement
  • Popular Tags

  • Popular Now

  • Advertisement
  • Similar Content

    • By isu diss
      How do I fill the gap between sky and terrain? Scaling the terrain or procedural terrain rendering?

    • By Jiraya
      For a 2D game, does using a float2 for position increases performance in any way?
      I know that in the end the vertex shader will have to return a float4 anyway, but does using a float2 decreases the amount of data that will have to be sent from the CPU to the GPU?
       
    • By ucfchuck
      I am feeding in 16 bit unsigned integer data to process in a compute shader and i need to get a standard deviation.
      So I read in a series of samples and push them into float arrays
      float vals1[9], vals2[9], vals3[9], vals4[9]; int x = 0,y=0; for ( x = 0; x < 3; x++) { for (y = 0; y < 3; y++) { vals1[3 * x + y] = (float) (asuint(Input1[threadID.xy + int2(x - 1, y - 1)].x)); vals2[3 * x + y] = (float) (asuint(Input2[threadID.xy + int2(x - 1, y - 1)].x)); vals3[3 * x + y] = (float) (asuint(Input3[threadID.xy + int2(x - 1, y - 1)].x)); vals4[3 * x + y] = (float) (asuint(Input4[threadID.xy + int2(x - 1, y - 1)].x)); } } I can send these values out directly and the data is as expected

                             
      Output1[threadID.xy] = (uint) (vals1[4] ); Output2[threadID.xy] = (uint) (vals2[4] ); Output3[threadID.xy] = (uint) (vals3[4] ); Output4[threadID.xy] = (uint) (vals4[4] ); however if i do anything to that data it is destroyed.
      If i add a
      vals1[4] = vals1[4]/2; 
      or a
      vals1[4] = vals[1]-vals[4];
      the data is gone and everything comes back 0.
       
       
      How does one go about converting a uint to a float and performing operations on it and then converting back to a rounded uint?
    • By fs1
      I have been trying to see how the ID3DInclude, and how its methods Open and Close work.
      I would like to add a custom path for the D3DCompile function to search for some of my includes.
      I have not found any working example. Could someone point me on how to implement these functions? I would like D3DCompile to look at a custom C:\Folder path for some of the include files.
      Thanks
    • By stale
      I'm continuing to learn more about terrain rendering, and so far I've managed to load in a heightmap and render it as a tessellated wireframe (following Frank Luna's DX11 book). However, I'm getting some really weird behavior where a large section of the wireframe is being rendered with a yellow color, even though my pixel shader is hard coded to output white. 

      The parts of the mesh that are discolored changes as well, as pictured below (mesh is being clipped by far plane).

      Here is my pixel shader. As mentioned, I simply hard code it to output white:
      float PS(DOUT pin) : SV_Target { return float4(1.0f, 1.0f, 1.0f, 1.0f); } I'm completely lost on what could be causing this, so any help in the right direction would be greatly appreciated. If I can help by providing more information please let me know.
  • Advertisement
  • Advertisement
Sign in to follow this  

DX11 Compile Effects11_*.sln

This topic is 2236 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey.

I want to use a complete effect file, and from what I read about loading effect files, I need the library Effects11.lib to do this.
Next, I found out, I have to compile this library myself (as stated here: http://msdn.microsof...3(v=vs.85).aspx , Section "Requirements").

So I pay a visit to the DirectX SDK directory ( which is in my case located at "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)") and open .\Samples\C++\Effects11\Effects11_2010.sln , as I am using Visual Studio 2010.

Then I just try to compile, but I get a bunch of errors (Should I get errors at all, when compiling Microsoft's Sources???), see the complete output listed below.



1>------ Erstellen gestartet: Projekt: Effects11, Konfiguration: Release Win32 ------
1>Der Buildvorgang wurde am 10.03.2012 01:49:21 gestartet.
1>InitializeBuildStatus:
1> Aktualisieren des Timestamps von "Release\Effects11.unsuccessfulbuild".
1>ClCompile:
1> d3dx11dbg.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> d3dxGlobal.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectAPI.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectLoad.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectNonRuntime.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectReflection.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectRuntime.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1>
1>Fehler beim Erstellen
1>
1>Verstrichene Zeit 00:00:01.33
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========


While I don't understand these completely, my investigation has shown that I was missing the Windows 7 SDK. Ouch. So I downloaded it, still in the hope these errors might vanish. No luck. Being on a x64 System, I additionaly gave the x64 WINDOWS 7 SDK a try, nothing improved.

So what is it, I'm missing? Can anyone help me here? Or can anyone point me to the compiled library?

Maybe my system information can be helpful here:
IDE: Visual Studio 2010;
OS: Server 2008R2 SP1;

Share this post


Link to post
Share on other sites
Advertisement
Copy that Effects11 folder to Visual Studio 2010 Project folder or you will need to run VS 2010 will elevated privilege; then try to compile it again and did you set the path to Dx 11 header files in your project?

Share this post


Link to post
Share on other sites
I finally got it working.
Not quite the way you suggested, but here's how:

I reinstalled the Windows sdk. That is, I first removed all Windows SDK components, then reinstalled it using the x86 package.
Then I opened the Effects11_2010.sln and modified the include and library paths to explicitely provide the Windows SDK path before the DirectX SDK path.

And somehow it worked.
Thanks for your efforts anyway.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement