Results 1 to 5 of 5

Thread: Looking For DIB / DirectX (Examples, Tutorials, ect.)

  1. #1

    Thread Starter
    Hyperactive Member wiccaan's Avatar
    Join Date
    Apr 2004
    Location
    127.0.0.1
    Posts
    475

    Looking For DIB / DirectX (Examples, Tutorials, ect.)

    Hello everyone. Ive been messing with some mASM lately, just something to do to pass the time over the summer. I made a few programs, nothing major. Just a few things Ive made in VB and decided to try to convert to ASM to see if they would work.

    All of which have worked pretty well so far. I'm looking for some help with some animation things. From what I can see, the used API deals with DIB and DirectX. I cant find any working tutorials for what Im trying to accomplish though.

    There are many programs on the net that use what Im trying to do, but just no tutorials, example codes, ect on the subject / issue. I'm asking if anyone has any info on this subject, if they could help me out.

    What Im trying to do is something like this:
    http://72.29.82.57/gtrainfiles/SWAT....RN.FANAION.ZIP

    The graphics effects that are used are what Im trying to learn how to do. Starfields, scrolling text loaded from a bitmap font file, moving pictures ect. I know how to do the music, using BASSMOD which works great.

    I've searched the net for the past week trying to find anything on any of these things. But the most I could come up with is DOS run .COM programs. I'm trying to do this in a single form, such as the example above, like painting to a picture box, or a created reserved section of the form.

    Any help on this would be greatly appreciated.

    - Wiccaan
    If my post was helpful please rate it

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Looking For DIB / DirectX (Examples, Tutorials, ect.)

    Icezellions tutorials which come with the MASM package have some good animation starters using the API. Theres also a few OpenGL examples in the package.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3

    Thread Starter
    Hyperactive Member wiccaan's Avatar
    Join Date
    Apr 2004
    Location
    127.0.0.1
    Posts
    475

    Re: Looking For DIB / DirectX (Examples, Tutorials, ect.)

    Ive already looked at his site. Ive had his site bookmarked for years now actually lol.

    The exmaples he has only show full screen demo's. Im looking for how to do it in a window, but Im unsure how to achive this in ASM.

    Every site that Ive found that would have had an example has been shut down cause they are extremely old. And I cant find a site that has what any of those ones had on it. Everything seems to be in full screen or not ASM. =/
    If my post was helpful please rate it

  4. #4
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Looking For DIB / DirectX (Examples, Tutorials, ect.)

    The basic idea is still the same in other languages though. As long as you know the value to set to the device to make it windowed, its the same in all languages.

    Look at some C++ examples, as they are the closest in comparison. You should be able to understand how its done.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  5. #5

    Thread Starter
    Hyperactive Member wiccaan's Avatar
    Join Date
    Apr 2004
    Location
    127.0.0.1
    Posts
    475

    Re: Looking For DIB / DirectX (Examples, Tutorials, ect.)

    Well, I started looking for some other basics to get started on this. I figured out how to use DIB'ing with MASM. Using CreateDIBSection, BitBlt, ect. But, the only thing is I dont know how to do the starfield things within MASM onto the created section surface.

    Beings that all the examples Ive seen in C++ use arrays and structs for the Star info, I dont know how to do correctly / fully convert that to MASM. Ive been looking everywhere for an example using DIB and Bitblt within MASM, but its like impossible to find lol.

    Im looking for other effects to, pretty much anything using Bitblt to a created DIB surface within a window, to try to make some cool effects and such. Without the need of DirectX / OpenGL, or full screen / dos.
    If my post was helpful please rate it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width