How to check which 3D Blend Modes are available

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by chr1sb.

Hi all,

me again - still struggling to understand the Sprite3DBlendingMode() function properly.

I want to use additive blending in my program for special effects, by using Sprite3DBlendingMode(0,7) (or maybe it should be (7,0) or (7,7)? I don't know which is the 'correct' way because they all have the same effect on my GeForce3)

But when I test my program on my old PC with Voodoo3 graphics the 3D sprites which are supposed to be blended are drawn as solid black - I guess this is because the the D3DTOP_ADD texture-blending operation is not supported.

So, what I'd like to do is check if D3DTOP_ADD texture-blending is supported - presumably by somehow calling the Direct3D GetDeviceCaps function.

Is this possible to do in PB? Or maybe I'm just not using the Sprite3DBlendingMode() function correctly?

Any help relating to the Sprite3DBlendingMode() function will be appreciated.


chr1sb
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

Blending seems to have different effects on different graphics cards. For example, my FireWorks demo works fine on every computer here and each has a different video card... but some that download it have reported that the screen is blank. And of course when they played around with the numbers it worked for them.

Unfourtunately it seems like a hit and miss thing.

When testing settings... on my old Voodoo card most of the blending looks the same and on my GForce2 every setting looks different.
Post Reply