How to render HAIR
Hi All,
i want render Hair in Direct3D the same MAYA, can? pls see link :
, anybody have ideas,
think, can share with me, thanks very much.
David,
[Edited by - thuong on June 18, 2007 2:04:13 AM]
Looks like a few triangles with a hair texture on them, and alpha at the end. Have you tried anything like that?
Hi Evil Steve,
Thanks very much
I had try enable alpha transparent, blending but it bad, can you help me, how to set alpha transparent and alpha blending good?
David,
Thanks very much
I had try enable alpha transparent, blending but it bad, can you help me, how to set alpha transparent and alpha blending good?
David,
thuong,
Can you show us a screenshot of how it looks "bad". Maybe then we can provide better suggestions.
Can you show us a screenshot of how it looks "bad". Maybe then we can provide better suggestions.
Hi honayboyz,
Thanks very much,
Following is capture image from my rendering:
[Edited by - thuong on June 17, 2007 11:05:19 PM]
Thanks very much,
Following is capture image from my rendering:
[Edited by - thuong on June 17, 2007 11:05:19 PM]
From that picture, it looks like you have alpha testing enabled, but not alpha blending.
Copy&Pasted from a tutorial I found with google:
Copy&Pasted from a tutorial I found with google:
m_pDirect3DDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,true); //alpha blending enabledm_pDirect3DDevice->SetRenderState(D3DRS_SRCBLEND,D3DBLEND_SRCALPHA); //source blend factorm_pDirect3DDevice->SetRenderState(D3DRS_DESTBLEND,D3DBLEND_INVSRCALPHA); //destination blend factorm_pDirect3DDevice->SetTextureStageState(0,D3DTSS_ALPHAARG1,D3DTA_TEXTURE); //alpha from texture
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement