• 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.

Archived

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

PigHeaded

Good Graphics in DirectDraw

9 posts in this topic

Hello, I have a problem and I''m not sure if I should ask it here or in the DirectX forum. I have a small demo program that just displays bitmaps(BMPs). This program is a DirectDraw program set for 800x600x16bit. I created my images in PhotoShop 5.0 and saved them as 24bit bitmaps. As an example I created a small sky image using a simple gradient image from blue to white. When I try to display this image in my program it "bands" the colors. If I set my program to 32bit, it works fine. The problem I have is I need good looking graphics in 16bit mode, No paint program I know of can create 16bit images. How do others create good looking art work for a 16bit game? Is there a way I can set the palette in PhotoShop for 16bit 5-5-5 colors? Thanks in advance, PigHeaded
0

Share this post


Link to post
Share on other sites
There is no 16-bit BMP format, your kinda stuck that way. But there is a 16-bit Targa format (.tga) that photoshop can work with, you would have to write your own Targa file loader though.

One person said that the games industry is "a transfer of funds from the rich to the lucky"
0

Share this post


Link to post
Share on other sites
Try to copy your bmp - image to a surface by using the GDI. The GDI converts it to 5-5-5 or wathever is used. Afterwards use blt or bltfast to bring it to the screen!
0

Share this post


Link to post
Share on other sites
Thank You all for your suggestions, but nothing has worked. I have tried a TGA file Loaded, a PSD file loader, a GDI BitBlt copy, and the ddutil. but I still get the same "bars across the images when I display them. I am at a loss now. I can go back to 32 bit where everything works fine but that''s realy not an option in the long run. Could some one try to create a simple ddraw app that displays a single 640x220x16 bit bitmap. Create the bitmap using Photoshop and make it a gradient fill. And then let me know if you also get the same color bars across your screen? I''ve tried this on two different computers using different programs to display the bitmaps, but they allways turn out the same way in 16bit mode. Any more ideas?

Thanks,

PigHeaded
0

Share this post


Link to post
Share on other sites
I''m wondering if this''ll help you? I''m not exactly sure of what you mean, but it sounds almost the same.


http://www.flipcode.com/cgi-bin/knowledge.cgi?showunit=65


A polar bear is a rectangular bear after a coordinate transform.
0

Share this post


Link to post
Share on other sites
quote:
Original post by PigHeaded

I can go back to 32 bit where everything works fine but that''s realy not an option in the long run. Could some one try to create a simple ddraw app that displays a single 640x220x16 bit bitmap. Create the bitmap using Photoshop and make it a gradient fill. And then let me know if you also get the same color bars across your screen




How about changing your display to 16bpp and viewing that gradient in Photoshop, taking out the ''middleman'' of DirectDraw? If you see the bands appearing in Photoshop when you''re in 16 bit colour, you know it''s a limitation of the colour depth of the display and not the programming. In which case, it can''t be helped. You might want to look into dithering the graphics or something like that.
0

Share this post


Link to post
Share on other sites
For 16 bit conversion there''s a freeware program cslled UltraPaint. Search on the Web for "upaint1b.zip"
It says it''s a full paint program but it''s just basic.
But it does convert.

ZoomBoy
A 2D RPG with skills, weapons, and adventure.
See my character editor, Tile editor and diary at
my Web-site
0

Share this post


Link to post
Share on other sites
hello again,

Armitage:

That question is exacly what my problem is. The only problem with the response is that he did not give a code example of how to fix the problem. I spent some time looking for a dithering function, but just came up with bits and pieces of very useful information that should allow me to create my own function. I just can''t see any other way around this problem. Does any one else have this problem working with a 16 bit DDraw program?

Kylotan:
I have set the display to 16bpp but Photoshop shows the image correctly, but I opened the image in MS Paint and Paint Shop Pro and the image has the bands. Now one of the problems appears to be the video card. It is a 555 card, the card I have at home is a 565 card. My home system has less banding. So I am assuming that 555 cards are part of the problem. I am currently working on a dithering function. So when I load my images I will check to see if the card is a 555 card and if it is, I will run the image through the dithering function. I have no idea why PhotoShop shows the image correctly and I can''t though.

ZoomBoy:
I looked at the site for Ultra Paint and I am in the process of downloading it now. I noticed it can create a 16 bit image. I will try to create a radiant image with the program and see how well it can display the image. Thanks for the idea.
0

Share this post


Link to post
Share on other sites
I believe there are some articles on Gamasutra on dithering, you might wan''t to take a look at them...



"I think, therefore I am...I think"
0

Share this post


Link to post
Share on other sites