Sign in to follow this  

[SlimDX] DrawPrimitive draw nothing.

This topic is 2850 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

Hi all! After my changes there are no more world box drawing in my application. I compared both old (worked) and new versions in PIX. The conclusions is next: Calls is the same in both versions:
1135	<0x06AA3ED8> IDirect3DDevice9::SetTransform(D3DTS_WORLD, 0x0018E148)	100627531711					
1136	<0x06AA3ED8> IDirect3DDevice9::SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE)	100627540092					
1137	<0x06AA3ED8> IDirect3DDevice9::GetTextureStageState(0, D3DTSS_COLOROP, 0x0018E174)	100627550428					
1138	<0x06AA3ED8> IDirect3DDevice9::SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG1)	100627562441					
1139	<0x06AA3ED8> IDirect3DDevice9::SetSamplerState(0, D3DSAMP_ADDRESSU, D3DTADDRESS_CLAMP)	100627575292					
1140	<0x06AA3ED8> IDirect3DDevice9::SetSamplerState(0, D3DSAMP_ADDRESSV, D3DTADDRESS_CLAMP)	100627587863					
1141	<0x06AA3ED8> IDirect3DDevice9::SetRenderState(D3DRS_LIGHTING, FALSE)	100627597082					
1142	<0x06AA3ED8> IDirect3DDevice9::SetStreamSource(0, 0x06B5F8A0, 0, 24)	100627611330					
1143	<0x06AA3ED8> IDirect3DDevice9::SetFVF(D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1)	100627620270					
1144	<0x06AA3ED8> IDirect3DDevice9::SetTransform(D3DTS_WORLDMATRIX( 1 ), 0x0018E148)	100627632003					
1199	<0x06AA3ED8> IDirect3DDevice9::SetTexture(0, 0x06B4B4B0)	100627640105					
1200	<0x06AA3ED8> IDirect3DDevice9::DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2)	100643254659					
1255	<0x06AA3ED8> IDirect3DDevice9::SetTexture(0, 0x06AA78D0)	100643394342					
1256	<0x06AA3ED8> IDirect3DDevice9::DrawPrimitive(D3DPT_TRIANGLESTRIP, 4, 2)	100660485899					
1311	<0x06AA3ED8> IDirect3DDevice9::SetTexture(0, 0x06B4A9C0)	100660558255					
1312	<0x06AA3ED8> IDirect3DDevice9::DrawPrimitive(D3DPT_TRIANGLESTRIP, 8, 2)	100674645799					
1367	<0x06AA3ED8> IDirect3DDevice9::SetTexture(0, 0x06AA3C80)	100674719831					
1368	<0x06AA3ED8> IDirect3DDevice9::DrawPrimitive(D3DPT_TRIANGLESTRIP, 12, 2)	100691262995					
1423	<0x06AA3ED8> IDirect3DDevice9::SetTexture(0, 0x06AA3D28)	100691333116					
1424	<0x06AA3ED8> IDirect3DDevice9::DrawPrimitive(D3DPT_TRIANGLESTRIP, 16, 2)	100705478489					
1425	<0x06AA3ED8> IDirect3DDevice9::SetTexture(0, 0x06AA3DD0)	100705555314					
1426	<0x06AA3ED8> IDirect3DDevice9::DrawPrimitive(D3DPT_TRIANGLESTRIP, 20, 2)	100705563416					
1427	<0x06AA3ED8> IDirect3DDevice9::SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE)	100705579899					
1428	<0x06AA3ED8> IDirect3DDevice9::SetRenderState(D3DRS_LIGHTING, TRUE)	100705604762					
1429	<0x06AA3ED8> IDirect3DDevice9::SetSamplerState(0, D3DSAMP_ADDRESSU, D3DTADDRESS_WRAP)	100705619848					
1430	<0x06AA3ED8> IDirect3DDevice9::SetSamplerState(0, D3DSAMP_ADDRESSV, D3DTADDRESS_WRAP)	100705633257					
1431	<0x06AA3ED8> IDirect3DDevice9::SetRenderState(D3DRS_CULLMODE, D3DCULL_CCW)	100705645829

In 1312 call old version draws the front world box side but new one not. If we have a look to the Mesh tab in PIX we can see that the vertices has the same data as well as old and new version even in PostVS tab. The differance is "Viewport" view which is located above the PreVS, PostVS tabs in PIX. In old version there is the line (triangle's edge) in Viewport there is nothing in new one. Note that World and View matrices is the same in both verssions. But Projection matrix has a differences: #------#-------#-------# |_item_|__old__|__new__| #------#-------#-------# |__M33_|___1___|1.001_| |__M43_|___50__|302.59| #------#-------#-------# [help] please!! [Edited by - user88 on February 25, 2010 3:44:49 AM]

Share this post


Link to post
Share on other sites

This topic is 2850 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this