PDA

View Full Version : masking and performance



homer_simpson0
01-28-2009, 10:10 PM
ok i'm making a 3d space game, I added a cockpit picture to be drawn on top of the background, i used masking with blending,but i realized it significantly lowers fps rate.

any alternate ideas on how to render a cockpit on top of the background scene?

game could be downloaded here:
http://compsci.ca/v3/download.php?id=6241
controls :wsad ,arrow keys, Esc button

ZbuffeR
01-29-2009, 02:46 AM
What is your video card ?
If it is limited in fillrate, a full screen blended quad can indeed reduce performance.
What time per frame do you spend, before and after the cockpit ?

Using alpha testing + blending can make faster the completely transparent parts.
Or use opaque textured polygons without blending.

homer_simpson0
01-29-2009, 11:55 AM
yep loading a transparent .tga file as my texture and alpha testing did the job
thank you