• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.


This topic is now archived and is closed to further replies.

Guest Anonymous Poster


6 posts in this topic

But, if you searched the web, you have a couple of options:
(sorry I don't have any links available)

A file called avidd95.exe from microsoft that only works
with 8-bit DD images. Description: "Direct Draw Example
for 320x240 and smaller AVI".

Get the multimedia win32sdk (the ones with the audio and
video directories) from microsoft and convert the AVI examples
to DirectX.

Look for the files called ClassAVIPlayer.zip and avisurface.zip.
These are programs written by individuals for AVI and DirectX
on the web. Used to be on this site I think.

This is one way to do it for any 16-bit screen:

1. Store your AVI as 16-bit *uncompressed* frames. This way
you don't need to use any codec to decode the frames, and you
can directly blit the image to the screen. The price you pay
is large files. If the images are bitmap, save them as upside-
up instead of upside-down so you don't have to do any additional
flipping while blitting your frames.

2. Q: How do you save your AVIs as uncompressed 16-bit, upside-up
A: Either write out the AVIs yourself or find a program to do
it for you.

3. Save your AVI with small dimensions, and then blit stretch each
frame to the screen, if you want to reduce the size of your files.

Q: How do you blt stretch DD surfaces?
A: If it is not supported, you need to write it yourself.

If you have problems getting the example AVI programs (mentioned above)
to work, is probably because they call a codec decompressor to handle
the frames, and your computer doesn't know how to handle it. That's why
I say forget codecs and save your AVI with uncompressed frames.

4. Do you even need AVIs for animation? No, you don't. Just create
a single bitmap with animation cells, load them into DD surfaces,
and blit them to the screen one at a time.


Share this post

Link to post
Share on other sites

WELL. I HAVE AN ARTICLE THAT THEY HAVEN'T POSTED HERE YET, called "Working With AVI Files". It's on my website:

Dream Design

Now this article was written with Microsoft's original AVIFile interface in mind. That's the easiest and fastest interface to decompress video and audio sequences. I have two sample codes showing the rendering into DirectDraw, and a complete royalty-free wrapper class.

I would recommend DirectShow if you intend to synchronize game animation over video (although one of my samples does that anyway), or if you have high quality movies and require the fastest frame rates. The AVIFile interface is an excellent alternative to use while you're learning DirectShow (which has a higher learning curve).

Email darrennix@msn.com anytime.


Share this post

Link to post
Share on other sites
I just want to add that the whole point of using AVIs is to take
advantage of compressed animation. The reason why I recommended
using uncompressed images is that it will guarantee you it will
work on any machine. I don't really like the idea of using
uncompressed AVI images, but I feel like I am forced to use them.

So, my question is, how would you handle this if you wanted to use
*compressed* AVI images? I understand that codec decompressors are
stored as DLL files in your window's system directory. Is it
legal to redistribute these DLLs with your game and install them
yourself to insure compatibility? If not, it sounds like the only
way to have compressed AVI images and insure compatibility is to
come up with your very own codec decompressor. And I don't like
using DirectShow either.



Share this post

Link to post
Share on other sites
What's the best way to play AVI's.. I've
seen this question been asked before, but
with no answer.. I want to show a logo
before I go into the game.. It needs to
be full screen though.. The logo right now
is 640x480, which is fine for going into
DirectX.. What's the best way to do this?

Share this post

Link to post
Share on other sites
If you want to garentee handling a specific AVI compression format supply the codec filter.

How to know what file supports what filter, and how to register it? I know how to hand files with the exstension .ax but the standard ones are handled differently.

But what I do know is if you use an Intel Indeo compression format then just supply the Intel Indeo installation which I beleave to be freely distrabutable. Where to get it is a different matter.

As for the the easyest way to code the video into an application especially to a Direct Draw surface and Direct Sound buffer use Direct Show's multimedia streaming archtecture. If you don't beleave me take a look at the tiny examples at: http://www.microsoft.com/directx/dxm/help/ds/mms/Sample_Code_mms.htm

82 lines for a complete application that plays a video to the primary surface!



Share this post

Link to post
Share on other sites