Alpha Blending Messed Up
Hey guys. I've done this so many times before, and
not once has it turned out like this.
[image]
The left is the one with alpha, the right one is opaque.
My blending is set to SRC: SRCALPHA, and DEST: INVSRCALPHA.
I enabled depth testing.
My model was imported from 3DS Max, and I disabled culling.
Please help. Thanks.
yes i have tried both.
disabling z would make it less although still messed up.
and i don't know why i would have to sort it.
when i worked with beginner tutorials when i was just starting out on directx,
i never had to sort anything. and it worked fine.
any other suggestions? thanks.
disabling z would make it less although still messed up.
and i don't know why i would have to sort it.
when i worked with beginner tutorials when i was just starting out on directx,
i never had to sort anything. and it worked fine.
any other suggestions? thanks.
well with backface culling, it only shows the front faces.
with frontface culling, it only shows the back faces.
and i would like to see both. that's why i'm using blending.
with frontface culling, it only shows the back faces.
and i would like to see both. that's why i'm using blending.
It will look better (cheap man's sorting, not perfect but good) if you:
1 Set backface culling to only show the back faces
2 Draw the object
3 Set backface culling to only show the front faces
4 Draw the object again
1 Set backface culling to only show the back faces
2 Draw the object
3 Set backface culling to only show the front faces
4 Draw the object again
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement