|
|
View previous topic - View next topic |
Author |
Message |
entivore Bjørn's Arctic Bitch of the Frozen North
Joined: 20 Jul 2002 Posts: 86 Location: michigan, usa
|
Posted: Tue Oct 15, 2002 6:26 am Post subject: Translucency |
[quote] |
|
Reading from video memory is a big no-no, but to make certain things look really really good you have to combine colors. For example, giving a character a black aura (or any color aura). I wish to have these auras, and maybe a few explosions or other such effects but I dunno how to do it without a major engine overhaul. I've tried having a screen size buffer, drawing to it, and then blitting it all at once but it slows things down quite a bit, especially after I upgraded my tile drawing to blit from video memory to video memory.
I had some ideas, but none seem practical enough.
#1 - Limit the background in situations where translucency would arise (for example, an all blue or all black background, then just have a graphic for each background)
#2 - Instead of half colors, simply make the aura out of a swiss cheese pattern with lots of no-draw pixels, like this:
* * *
* *
* * *
#3 - Just read from video memory and hope it doesn't slow down too much
Well anyway, anyone have any more suggestions or comments? _________________ *Only in darkness can one truely shine*
|
|
Back to top |
|
|
janus Mage
Joined: 29 Jun 2002 Posts: 464 Location: Issaquah, WA
|
Posted: Tue Oct 15, 2002 6:28 am Post subject: |
[quote] |
|
A few vram reads/writes is never too bad, you just don't want to be doing fullscreen vram manipulation. If your code is optimized enough it'll work fine.
|
|
Back to top |
|
|
Tenshi Everyone's Peachy Lil' Bitch
Joined: 31 May 2002 Posts: 386 Location: Newport News
|
Posted: Tue Oct 15, 2002 5:07 pm Post subject: |
[quote] |
|
- Read from Video Ram once, generate a table of values, read from then on from the table? _________________ - Jaeda
|
|
Back to top |
|
|
DrunkenCoder Demon Hunter
Joined: 29 May 2002 Posts: 559
|
Posted: Wed Oct 23, 2002 9:59 pm Post subject: |
[quote] |
|
A long long time ago, during a summer many many months ago, there was a Alphablending thread anyway the results was something like:
80FPS on PIII 600MHz while doing fullscreenblends in 800x600
then memorybandwidth became the performancehog so almost anything should be acceptable. _________________ If there's life after death there is no death, if there's no death we never live. | ENTP
|
|
Back to top |
|
|
|
Page 1 of 1 |
All times are GMT
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|