Jump to content
  • Advertisement
Sign in to follow this  
PetrCBR

Transparent model ?

This topic is 4879 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. I'm have many troubles for day after day with DirectX :-). I'm loading .x mesh. It's no problem, but model has "transparent" textures. All across this textures (faces) are visible too :-O. I trying to set all CULL modes, but model looks still same. What i doing wrong ?

Share this post


Link to post
Share on other sites
Advertisement
So the original mesh (authored in some other editor I presume) uses textures that have transparencies in them. These "transparent" areas are still visible when you render your mesh using DirectX. Correct?

Cull modes aren't relevent here, it would be about alpha blending if anything - D3DRS_SRCBLEND, D3DRS_DESTBLEND and D3DRS_ALPHABLENDENABLE should be the settings you want to read up on.

hth
Jack

Share this post


Link to post
Share on other sites
Quote:
Original post by jollyjeffers
So the original mesh (authored in some other editor I presume) uses textures that have transparencies in them. These "transparent" areas are still visible when you render your mesh using DirectX. Correct?

Cull modes aren't relevent here, it would be about alpha blending if anything - D3DRS_SRCBLEND, D3DRS_DESTBLEND and D3DRS_ALPHABLENDENABLE should be the settings you want to read up on.

hth
Jack


I'm tried show model without textures (not same model ... this model haven't textures) and have same result.

D3DRS_ALPHABLENDENABLE is FALSE, D3DRS_ALPHATESTENABLED is FALSE.
D3DRS_SRCBLEND and D3DRS_DESTBLEND ... i'm tried many combinations, but still same.

I'm really don't know, what i make wrong :-((.

Share this post


Link to post
Share on other sites
wait... why would you want to have alphablendenable and alphatestenable set to false if you're trying to do alpha blending?

Share this post


Link to post
Share on other sites
Quote:
Original post by Instruo
wait... why would you want to have alphablendenable and alphatestenable set to false if you're trying to do alpha blending?


I'm not to trying to do alpha blending. Model is still alphablended and i'm to trying stop this. Back vertexes of the model must be hidden.

Share this post


Link to post
Share on other sites
Your description isn't very accurate. Are you sure you're seeing actual transparency? If you've already disabled alpha blending, then perhaps you're seeing other faces because of a lack of Z buffering. Are you sure you've enabled Z buffering?

You might simply want to post a screenshot of what is going on.

Share this post


Link to post
Share on other sites
Quote:
Original post by Kippesoep
Your description isn't very accurate. Are you sure you're seeing actual transparency? If you've already disabled alpha blending, then perhaps you're seeing other faces because of a lack of Z buffering. Are you sure you've enabled Z buffering?

You might simply want to post a screenshot of what is going on.


Yes. ZBuffer is enabled (ZWriteEnable too).

How to post picture here ?

Share this post


Link to post
Share on other sites
Quote:
Original post by PetrCBR
Quote:
Original post by Kippesoep
Your description isn't very accurate. Are you sure you're seeing actual transparency? If you've already disabled alpha blending, then perhaps you're seeing other faces because of a lack of Z buffering. Are you sure you've enabled Z buffering?

You might simply want to post a screenshot of what is going on.


Yes. ZBuffer is enabled (ZWriteEnable too).

Hot to post picture here ?


Screen is here :
http://directx.pjsoft.net/wing.png

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!