#10 Scrolling Optimized MNG's show Scrolling in Output

open
5
2012-08-15
2005-08-25
Tom Speirs
No

Hi all.

First of all thanks for this fantastic library.

I have a project that uses libmng (http://gameex.net)

I was previously using a very old library pre built for
visual C++. However I want to use the latest version of
LibMng so added the offiicial files. My application,
(actually the DLL my application uses) compiles fine,
and 'almost' works as before. However, I am guessing
the MNG's I am using have some kind of scrolling
compression or optimization.The MNG files open and
read etc fine, but when I blit the output to my windows
DC the MNG files that have scrolling sometimes scroll
or move around in the output DC, leaving the background
colour behind. I've also tried several versions back, so I
am pretty sure its not a bug your end.

I am really at a loss while this is happening. Can anyone
help. I am happy to donate $50 or more for a working
solution if you want it or will take it.

Thanks in advance.
Tom Speirs

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Hello again, I temporarily resolved the issue above by using
    the DLL and the contributed MSVC lib file. Unfortunatly with
    the release of final release of .net framework 2. For
    some 'unknown but verified' reason, if .net framework 2 final is
    installed the contributed MSVC lib does not work.

    I have hence gone back to compiling libmng with my library to
    its own DLL. I am still having the same issue. My mng code
    is fine as it works with the DLL, and I can also confirm this is
    only an issues with heavily optimised MNG's

    Basically the MNG's I need to use, have some kind of
    scrolling optimization, and the MNG moves around in the
    output with the scroling. The MNG's are captures from
    games. So if the game scrolls left the output also scrolls left,
    leaving a background color behind. If the game then scrolls
    right the output will then scroll to the right and come into the
    display again. Is there some kind of configuration or include I
    need to work with these optimized MNG's. Can someone
    please help.

    Many thanks in advance,
    Tom Speirs
    tom@tomspeirs.com

     
  • Tom Speirs

    Tom Speirs - 2005-11-09

    Logged In: YES
    user_id=975708

    Hi,

    I hope someone can help me with this. Currently this means
    my application will not work if .net framework 2.0 is installed.
    I am providing the source code as an attachment. As you can
    see its pretty basic stuff and is based on one of the sample.
    It works fine when I use the DLL with the contirbuted lib, but
    not if Framework 2.0 is installed (I am not even using
    Framework 2.0 Somehow is installs something that makes
    my app not load mng.dll)

    If I try to add the Libmng source code to the project, I can get
    it compile fine, but have the issue.
    I attach one of the MNG's that has the problem.

     
  • Tom Speirs

    Tom Speirs - 2005-11-09

    Source code - Just my basic CPP and H File.

     
  • Tom Speirs

    Tom Speirs - 2005-11-09

    Logged In: YES
    user_id=975708

    I attach a MNG file that has the isuue with my code.

    EDIT: Was too big to upload. The file is on my web space
    here:

    http://tomspeirs.com/64street.zip

    And another one here:

    http://tomspeirs.com/19xx.zip

     
  • Gerard Juyn

    Gerard Juyn - 2005-11-09

    Logged In: YES
    user_id=32419

    The image you've supplied works fine in various MNG display
    applications. I'm afraid you will have to check your own code.

     
  • Tom Speirs

    Tom Speirs - 2005-11-09

    Logged In: YES
    user_id=975708

    I appreciate your very busy but do you have some other
    ideas?
    My code does work fine when I use the DLL and another older
    MSVC specific library, I only have the problem when I use the
    Libmng code in my project and include it.

    It really is not an issue with my code, I am pretty sure I would
    get exactly the same thing with the included MSVC example.

    My code is practically identical, and very basic, its only DLL
    for handling MNG playback. It has to be an issue with how I
    am compiling, a configuration setting or issue/conflict with
    MSVC. As I said works fine with the DLL. Only difference is I
    remove the reference to the DLL and add the Libmng source
    files to my project, unchanged. Then I get the issue.

    Sorry to be pain, but do you think you could have another
    closer look at this issue?

    Sorry if unappropriate but my project is semi commercial, and
    I am prepared to pay you consultancy costs if you can help
    me.

    Many thanks in advance.
    Tom
    tom@tomspeirs.com.

     
  • Gerard Juyn

    Gerard Juyn - 2005-11-10

    Logged In: YES
    user_id=32419

    Hmm. Perhaps it has to do with compiler-options regarding
    field-alignment. Eg. align on 1-, 2-, 4- or 8-byte
    bounderies. I'm not sure how this would affect the libmng
    code. I don't know MSVC at all. It could be that you are
    forcing some mis-alignment which gets worse with each frame.
    Strange but not unthinkable.

    You may also want to try this question on the PNG/MNG
    discussion lists:

    https://lists.sourceforge.net/lists/listinfo/png-mng-implement

    There are more knowledgeable people with MSVC experience
    there that may have run into this problem before and would
    know where to fix your compiler-options or whatever else the
    problem may be....

    I appreciate your offer to pay for help, but I am currently
    just too busy with other items. MNG is on the bottom of the
    pile, I'm afraid.

     
  • Tom Speirs

    Tom Speirs - 2005-11-24

    Logged In: YES
    user_id=975708

    Hi again,

    Sorry to bother you, I've sepnt many days trying to solve
    the problem, I get the same issue with all the samples and
    when compiling the DLL with Visual c++ 7.

    I've come to the conclusion it has to be a VC issue.

    Could you tell me what compiler is used for the win32 DLL,
    so I can try converting my code and compiling with that??

    Also, I am not using CMS, would that affect this possibly
    or not (a lot of MNG's still play fine)

    Thanks again,
    Tom.

     
  • Tom Speirs

    Tom Speirs - 2005-11-24

    Logged In: YES
    user_id=975708

    Got it working. I downgraded to libmng version 1.07 and its
    working perfecty now. I thought I tried other vesions, but
    obviously not. Seems to be an bug/issue with 1.09 and
    possibly 1.08.

    You might want to look at it when you have time.

    Thanks,
    Tom

     
  • Tom Speirs

    Tom Speirs - 2005-11-24

    Logged In: YES
    user_id=975708

    Hi, can you give me your paypal ID, I'd like to donate a
    few dollars, as I have been getting a few donations for my
    project.

    Cheers.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks