hi all,
like the topic says, I cannot seem to stop fading to/from black from flickering, it looks perfect if I fade to/from white.. I've seen this problem in numerous games but I've also seen it done without the flicker.. I've tried several techniques, similar results.. the fade function in Overloaded does exactly the same thing. any suggestions? cheers.
rlc.
Argentum does that in it's intro, without any flickering. If no one can help you here, you may want to send an email to the guys at ionside or post in the Argentum forum, asking how. Carp might know himself.
Are you sure it's not your device?
Shot in the dark here, but are you using double buffering? I've seen not having it responsible for flickering in cases likes yours.
Can't help much more than that.
Hi, thanks for your replies guys.
Not my device, works perfect in most games like Argentum, FIFA2002.. Fade From/To White is perfect.. its black thats the problem, I get a slanted flickering line going across the display.. and I've always used double buffering..
I've tried doing it using both alpha and subtraction.. same annoying flicker.. I might add, my cross-fader works perfectly.. its just bloody black! hehe.
When it comes to graphics in Argentum, I am the one to consult (Carpe is the über gameplay programmer). I don't remember doing anything special.
My alpha routine is set to use 256 steps (size of a uchar), and I work with channelvalues ranging from 0 to 255 (uchar again). So basically I am calculating it as truecolor first, and then I throw the channels together into a 16 bit color using bitshifts. But I think that is the general way of doing it. Think very few people are actually working with the actual 32 steps per channel. We are all too much brainwashed with truecolor values.
Anyways...one thing that could be causing your flickering is that you are using the iPAQ 36xx which has a 12 bit screen. In Argentum all game source images are before put into the game dithered down from 32 bit (at which I create them) to 12 bit and then I save them as 256 color images (to save storage space). Generally this makes gradients look better than if it was a true color bitmap I displayed, since I dither the colors down to what the actual screen is using.
Now if this makes fading look better I don't know, but I wouldn't be surprised.
When you mentioned you see a slanted line, that was a giveaway to the problem. You are performing a rotation from your back buffer to the display surface each frame on iPaq devices.
This is going to pronounce any tearing effect much more than if you were writing to the buffer in a contiguous manner. Do a search in the archives and you'll find a post about a year ago where I was developing a fast back-to-front blit routine and tried a number of schemes. I abandoned it because the tearing was more than could be tolerated.
Digby,
You're absolutely right, I am doing exactly that. I've found your postings and reading them now, I don't feel so frustrated now. :-) the "tearing" as you put it is less noticable when fading to bright colours.. maybe I'll stick with that..
Thanks for your insight anyway!
Well we have a internal framebuffer that is portrait 240x320 in Argentum. And blit it to videomemory using the x-pitch and y-pitch values. But we don't get any tearing...
(Ok my routine is VERY optimized)
it is?:)
well we will need to debug it and check it out:)
talking about it.. anyone knows where to get good arm debugger and .lib "unpacker"? I want to check intel's graphic lib and maybe argentum to see what kind of optimizations you can do:)
There is an easier way (and you can get there original comments too!!!). All you have to do is dress in all black, and break into Intel, and take a copy of their source. As long as you don't get caught, you should be ok. While you are at it, could you pick me up a few of their Pentium V's?
Why don't you try IDA Pro Disassembler? There's a trial version available from their site:
http://www.datarescue.com/idabase It supports loads of cpu cores as well as ARM.
An addition to this posting, I don't think you get ARM support in the trial, hmm.. maybe you best buy it then ;-)
Sure you do. If you break into the correct room, than the witness should no all about the arm code (assuming that he/she isn't part of the cleanup crew). And, you can have your lawyer ask him what you want to know.