The MASM Forum

General => The Campus => Topic started by: kroz on May 30, 2012, 12:26:45 PM

Title: DIB flicker problem
Post by: kroz on May 30, 2012, 12:26:45 PM
Hi. I've been doing masm for several months now, and i've just come across DIB.
I read sheep's dib tuts and i tried coding a little demo test. It worked well until I
tried to create a black strip at the bottom by using BitBlt,hWnd,etc,etc,BLACKNESS and the BmpButton function in the masm library.
Then it began to flicker. The only way to stop flickering seems to be to stop BitBlt, and use a normal button, instead of bitmap.
Could anyone please help? thanks :)
Title: Re: DIB flicker problem
Post by: dedndave on May 30, 2012, 12:50:02 PM
i am a bitBlt confused   :P

what you show us is a console app - with no source   :redface:
flicker isn't a big problem in console mode
and - we can't see how you are using BitBlt without disassembling your exe
Title: Re: DIB flicker problem
Post by: xandaz on May 30, 2012, 11:28:36 PM
   it's fixed kroz. No redraw window. just InvalidateRect excluding about 40pxls from bottom. Thanks. You're the second person i help this morning. It's kinda going well.
Title: Re: DIB flicker problem
Post by: xandaz on May 30, 2012, 11:30:20 PM
   also i forgot to mention that you're demo looks pretty good. Later
Title: Re: DIB flicker problem
Post by: dedndave on May 31, 2012, 12:11:11 AM
i don't know what the heck i was looking at   :redface:
i downloaded the zip and unzipped it - then, i must have opened some other folder   :lol:

sorry about that
Title: Re: DIB flicker problem
Post by: kroz on May 31, 2012, 11:51:03 AM
@xandaz : Thanks mate :) fixing it up now...
@dedndave : that's alright ;)
Title: Re: DIB flicker problem
Post by: satpro on June 09, 2012, 01:22:01 AM
kroz (+ zandaz fix),


Nice demo.  Got the tingles thinking about the c-64...
Title: Re: DIB flicker problem
Post by: xandaz on August 12, 2012, 04:58:12 AM
   hi ppl. Been away for a while. Just like to say it feels good to be back.
   Also, i liked a lot what you did with the bitmap font kroz. It's kinda tricky. Nice work.
Title: Re: DIB flicker problem
Post by: hfheatherfox07 on August 13, 2012, 02:11:41 AM
@Kroz What did you use to get the image data? is it just hutch's Bin2Dib? or do you have something else?
Title: Re: DIB flicker problem
Post by: hfheatherfox07 on August 13, 2012, 03:40:48 AM
Never mind Sorry ...I was having a Brain Fart moment   :redface:  ...I saw the images Folder LOL
Title: Re: DIB flicker problem
Post by: hfheatherfox07 on February 08, 2013, 03:21:27 PM
Hi Kroz
Do you have sheep's dib tuts and attachments
No place on the net has them   :( , he made 3 tuts
Thank you !
Title: Re: DIB flicker problem
Post by: kroz on February 08, 2013, 07:41:03 PM
hfheatherfox07 : quite right. It was pretty difficult to get hold of this. I got these tuts thanks to a guy who backed them up on a DVD
                           

*** PLEASE SPREAD THESE !!! ***

enjoy
Title: Re: DIB flicker problem
Post by: hfheatherfox07 on February 08, 2013, 08:13:10 PM
Thank you so much!!! :biggrin:
This are so hard to come by , actually impossible
Thank you again :biggrin:
Title: Re: DIB flicker problem
Post by: hfheatherfox07 on February 16, 2013, 11:12:19 AM
@Kroz
What did you use to convert the goldyfont.bmp.palette and goldyfont.bmp.picture to .asm
Bin2dib gives me a different result ?
Edit
What I mean by result is the db numbers inside , it still works !
Title: Re: DIB flicker problem
Post by: kroz on February 17, 2013, 02:02:27 PM
Use BMP2RAW http://www.filedropper.com/256bmp2raw
cheerz :) then use Bin2Dib on both .pallete and .picture files
Title: Re: DIB flicker problem
Post by: hfheatherfox07 on February 18, 2013, 06:32:20 AM
Hello ,
Since this whole thread is based on the -sheep- dib tuts ,I will post my question here:

Does any body know how the sine function is meant to be used here???

include sinus.asm

Thank you ?
Title: Re: DIB flicker problem
Post by: dedndave on February 18, 2013, 01:07:53 PM
it isn't   :P

he started with a "wavy" text program and simply forgot to comment out the INCLUDE
he will probably make use of it in the next few tutorials
Title: Re: DIB flicker problem
Post by: hfheatherfox07 on February 18, 2013, 06:13:28 PM
Thanks dedndave :)
You are right !
I found an example of what I think he used :)
This was missing a lot of stuff ....
No new tuts from this guy; last was in 2006....I think.

Title: Re: DIB flicker problem
Post by: dedndave on February 18, 2013, 10:43:42 PM
it may be based on original code by Siekmanski
he has a few sine-wave text demos
Title: Re: DIB flicker problem
Post by: kroz on February 19, 2013, 08:06:10 PM
@hfheatherfox:the idea is to modify the text-blitting function so t only blits a char, and then blitting individual chars from text array to the corresponding y-pos on the sine table. :)
Title: Re: DIB flicker problem
Post by: Siekmanski on February 19, 2013, 11:10:39 PM
Here is a sinusscroller example using DirectDraw7.
Title: Re: DIB flicker problem
Post by: Siekmanski on February 19, 2013, 11:17:06 PM
Another one.
It's a html file encoder I made for a friend of mine.

Title: Re: DIB flicker problem
Post by: hfheatherfox07 on February 21, 2013, 05:18:19 AM
@Siekmanski
Thanks I have that from here :
http://www.masmforum.com/board/index.php?PHPSESSID=786dd40408172108b65a5a36b09c88c0&topic=16710.30

I understand the ASCII table value now lol

Title: Re: DIB flicker problem
Post by: hfheatherfox07 on February 21, 2013, 05:53:20 AM
@hfheatherfox:the idea is to modify the text-blitting function so t only blits a char, and then blitting individual chars from text array to the corresponding y-pos on the sine table. :)

That makes sense, I realized that the Y position needs to correspond to the sine table .... I was not successful LOL

I will play with it some more....