Jump to content

  • Log In with Google      Sign In   
  • Create Account


ozkill

Member Since 28 Sep 2009
Offline Last Active Aug 20 2012 04:12 AM

Posts I've Made

In Topic: error X3025 and D3DXSHADER_ENABLE_BACKWARDS_COMPATIBILITY

31 July 2012 - 01:57 AM

thank you for reply.
but i understand why that error happen.
I want to know why this error does not appear with D3DXSHADER_ENABLE_BACKWARDS_COMPATIBILITY flag.
i want to know correlation between error X3025 and ps_1_x.

In Topic: Is impossible to make DXT1 Render Target?

14 April 2011 - 08:53 PM

thank you all !!!!!!!

god bless you

In Topic: problem of Vertex Buffer Declarations for Mesh instancing at DX9

18 March 2010 - 01:37 PM

dear MJP.
very very thank your answer.

Is this just demonstration? Damn...
That page make me confused talk like it possible.

your says give me belife what to do.
and your post "inferred rendering" at blog is very useful to my work.
very thank. bless u :-)

[Edited by - ozkill on March 18, 2010 8:37:22 PM]

In Topic: problem of Vertex Buffer Declarations for Mesh instancing at DX9

18 March 2010 - 05:16 AM

dear JohnnyCode.
Really really Thank for yor answer.
but, It is not the appropriate answer to my question.
I guess you have misunderstood my question.
My intent was not "How to use Vertexdeclaration to maching with Shader"

I knew that Vertexdeclaration and Shader Usage should match.
That is why I have doubts.

I have been using to only one Declaration pair with Shader. and I have no problem of H/W instancing use method of "Instancing " in DX sample (March 2009)
but "Efficiently Drawing Multiple Instances of Geometry (Direct3D 9)" in DX document show peculiar way.
This is link :
http://msdn.microsoft.com/en-us/library/ee418549%28VS.85%29.aspx

They make duble D3DVERTEXELEMENT9 instance. one is information of stream 0 (g_VBDecl_Geometry). and other one is information of stream 1 (g_VBDecl_InstanceData). but, For H/W Mesh instancing, Both g_VBDecl_Geometry and g_VBDecl_InstanceData is needed all at once 'cause It need stream 0 and 1.

I put stream data 0 and 1 in a D3DVERTEXELEMENT9 instance was used. It works...
But document show way use two Declaration instance. My wondering is How this possible.
How to set duble D3DVERTEXELEMENT9 instance to Device?

Does they lie to me? Please advise. plz plz plz ...

In Topic: Failed to create driver indexbuffer

15 December 2009 - 03:10 PM

why not? :-D


m_pd3d->GetDeviceCaps(D3DADAPTER_DEFAULT , D3DDEVTYPE_HAL , &m_d3dcaps );
...
// get screen information
HRESULT hr;
hr=m_pd3d->GetAdapterDisplayMode( D3DADAPTER_DEFAULT, &m_d3ddm );
...
DWORD BehaviorFlags=D3DCREATE_FPU_PRESERVE |
(QueryFeature(RQF_HARDWARETNL) ? D3DCREATE_HARDWARE_VERTEXPROCESSING : D3DCREATE_SOFTWARE_VERTEXPROCESSING);
D3DDEVTYPE d3dDevType = D3DDEVTYPE_HAL;
BehaviorFlags |= D3DCREATE_PUREDEVICE;
...
UINT AdapterToUse = D3DADAPTER_DEFAULT;

for( UINT Adapter = 0; Adapter < m_pd3d->GetAdapterCount(); Adapter++ )
{
D3DADAPTER_IDENTIFIER9 Identifier;
HRESULT Res = m_pd3d->GetAdapterIdentifier( Adapter, 0, &Identifier );
if( strstr( Identifier.Description, "PerfHUD" ) != 0 )
{
AdapterToUse = Adapter;
d3dDevType = D3DDEVTYPE_REF;
break;
}
}

if( FAILED( hr = m_pd3d->CreateDevice( AdapterToUse, d3dDevType, hWnd, BehaviorFlags, &m_d3dpp, &m_pd3dDevice ) ) )
{
SAFE_RELEASE(m_pd3d);
return false;
}


video card is radeon X1950 PRO now.
Alpha Test fail only happen on ATI.
when i run on NVIDIA, no problem.
ATI sucks!

thx.

PARTNERS