Cool Graphics

Developed or developing a new product in PureBasic? Tell the world about it.
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.

If you want to see a cool graphic fireworks display written in PB, go here:
http://www.reelmediaproductions.com/pb/
and look in the "Applications" section.
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 Rings.

very impressive Paul.Its cool to add it for explosion effects on a R-Type Clone.

Note to all users: This code uses the Sprite3D-Routine.If you have some older gfx cards it cannot work.
At the first start i see nothing(Black Sprite on Black Background)
It was the parameter in the Sprite3DBlendingMode()
So i have to play with the Sprite3DBlendingMode and test with other values.
it works with Sprite3DBlendingMode(2,4) perfectly

Its a long way to the top if you wanna .....CodeGuru
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 THCM.

Hi Paul,

the source looks promising, but my screen is blank. I've got Windows 2000 Prof. SP3 with a Geforce 4 4200. Do you have an Idea?

Greetings, THCM!

The Human Code Machine / Masters' DesignGroup
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.

Blank screen for me too (WinXP + Geforce3) until I removed the Sprite3DBlendingMode(0,2) line.

What's that command for anyway? according to the help number 2 in the Sprite3DBlendingMode command corresponds to #D3DTOP_SELECTARG1

what does that mean?
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.
Blank screen for me too (WinXP + Geforce3) until I removed the Sprite3DBlendingMode(0,2) line.

What's that command for anyway? according to the help number 2 in the Sprite3DBlendingMode command corresponds to #D3DTOP_SELECTARG1

what does that mean?
Do what Rings says and try different values for the blending. Not all 3D cards respond the same.
The numbers I used give a very nice additive blend on 3 different cards here. Try other numbers like (2,7)... Depending on your card, you will eventually find a cool blending effect. (that is why I included the source)
Post Reply