Jump to content

  • Log In with Google      Sign In   
  • Create Account

sas_x86

Member Since 17 Nov 2010
Offline Last Active May 18 2012 10:24 PM

Posts I've Made

In Topic: HLSL Pixel Shader returns (0,0,0,0)

15 May 2012 - 09:13 AM

Can you check in pix that your matrices are definitely being set?

May I also ask why Output.Position and Output.Position2D are identical? Seems a bit of a waste of space and resources...

Hello.
My matrices are set. I can see it in Mesh window of Pix (Pre-vertex shader, Post-Vertex shader and Viewport is correct).
Output.Position and Output.Position2D are identical because i thought that after vertex shader i can't use a Position field in the Pixel Shader.

In Topic: Cannot find texture in my effect file

13 February 2012 - 11:29 PM

Have you tried just using the GetSamplerIndex with the constant name?

thanks a lot.
I add this unpleasant code
handle = pdxVertexConstants->GetConstantByName(NULL, var_name);
if (strcmp(var_name, "xBillboardTexture") == 0)
{
  HRESULT res = localDevice->SetTexture(0, baseTexture);
  return res;
}

In Topic: Cannot render scene with scale

21 November 2010 - 07:50 PM

Thanks for the help. Where can I read about why it is multiplied in order world, view, projection?

In Topic: Cannot render scene with scale

17 November 2010 - 06:40 PM

Thank a lot for answers. I start with small translation and it is works fine.

PARTNERS