... .fx file code and call the code above. will it draw twice? both of non-textured and textured. I wonder. if you used my fx file and that code, yes, it would draw twice, ... codes (why on earth do you call it effectDiffuseVariable if it is a pointer to a 2D texture?), i'd call it just once outside the switch. Your DrawLight technique doesnt bother about the texture. Unneeded code.
... before calling this code? D3D10_TECHNIQUE_DESC techDesc; g_pTechnique->GetDesc( &techDesc ); for( UINT p = 0; p < techDesc.Passes; ++p ) { g_pTechnique->GetPassByIndex( p )->Apply(0); g_pd3dDevice->DrawIndexed( 36, 0, 0 ); } and also i have question, if i follow your .fx file code and call the code above. will it draw twice? both of non-textured and textured. I wonder.
... in tutorial7 are about using texture to draw on the cube.... that the first cube using texture, the second is not. but the texture shown on the second one. whats the problem perhaps?... the Pixel Shader applies the texture to it. If you want ... a second cube without any texturing you need to write another ...a pixel shader which isnt using texture for rendering. please see the ...
...> in tutorial7 are about using texture to draw on the cube. ...cubes that the first cube using texture, the second is not. but the texture shown on the second one. whats the problem perhaps? ...in the Pixel Shader applies the texture to it. If you want to... a second cube without any texturing you need to write another ... technique and a pixel shader which isnt using texture for rendering....
i'm new in developing dx10. in tutorial7 are about using texture to draw on the cube. i tried to make my own code like the tutorial does. i create 2 cubes that the first cube using texture, the second is not. but the texture shown on the second one. whats the problem perhaps? sorry my bad in english but thanks in advance :) .
...com> wrote: If my Sampler Texture is a D3DFMT_A8. float4 Output...the correct value from Sampler texture. As DirectX SDK says "If...the source texture contains fewer than four components, defaults are placed...components. Defaults depend on the texture format as shown in the...following table: Texture Format Default Values D3DFMT_R5G6B5, D3DFMT_R8G8B8, D3DFMT_L8, D3DFMT_L16, D3DFMT_R3G3B2...
If my Sampler Texture is a D3DFMT_A8. float4 Output = tex1D( Sampler, index ); what will be the content of Output.a, Output.r,Output.g,Output.b. In which component I will get the correct value from Sampler texture.
...", I still cannot create a texture using D3DPOOL_MANAGED. Vista Enterprise SP1 and ...in D3DPOOL_SYSTEMMEM. When preparation of the texture in this surface was completed, ... in order to quickly change the texture's content? Thank you in advance!...now when Vista is recognized), managed textures work fine. But they don't...problem that an update of the texture is significantly more time consuming ...
Hello, does anybody know if there are general problems creating textures with D3DPOOL_MANAGED attribute under Vista? With XP, all runs as expected. The same code and very similar graphics hardware/driver (ATI HD38xx series, 512MB Video RAM) under Vista cause an error, meanwhile D3DPOOL_DEFAULT works. HRESULT hRet = D3DXCreateTexture(m_pD3DDevice/*valid D3D9 oder D3D9Ex Device*/, ...
... see my video playing ok and the window having the correct size (video dimensions 512 x 288) but the video is only displayed with half its height and the top half is black. What can be the reason for this? The dimensions of the video? Any ideas how to avoid this as I really need these dimensions? Any better solutions for using the avi as a texture? Thanks in advance for your help!