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

Guest Anonymous Poster

Some questions about 8-bit mode...

7 posts in this topic

I used the allow256 (or whatever the exact syntax is) flag...so shouldn't I be able to use these?
0

Share this post


Link to post
Share on other sites
The first 10 en last 10 colors are reserved for windows....that's what I know.

And further, it's VB so I don't know

------------------
Dance with me......

0

Share this post


Link to post
Share on other sites
As long as you define the PC_NOCOLLAPSE inside you palette entries and use DDPCAPS_ALLOW256, you have the full range to use with no problem.

Try using this method to create the palette:

/*
lpdd
= DirectDraw Interface
lpddpal
= DirectDraw Palette Interface
lpddsprimary
= DirectDraw Primary Buffer Interface
*/

PALETTEENTRY pal[256];

memset(pal, 0, sizeof(PALETTEENTRY) * 256);
for(i=0;i<256;i++) {
pal[i].peRed = i;
pal[i].peGreen = i;
pal[i].peBlue = i;
pal[i].peFlags = PC_NOCOLLAPSE;
}

lpdd->CreatePalette(DDPCAPS_8BIT |
DDPCAPS_INITIALIZE | DDPCAPS_ALLOW256,
pal, &lpddpal, NULL);

lpddsprimary->SetPalette(lpddpal);

Jim

0

Share this post


Link to post
Share on other sites
__So, you're trying to map a different value of gray to each of the 256 colors. I think you might have a samll problem.
__When running in ture 8-bit color there are only 262,144 colors to work with (an 18-bit pallette.) If I'm correct, you'll see banding in gradients.
__Does anyone know more about how this works in Windows?

[This message has been edited by SonicSilcion (edited October 06, 1999).]

0

Share this post


Link to post
Share on other sites
If you use the windows palette manager, then it would try to dither it or something to make it look right.

In his case, he couldn't get a full white color, but rather a grayish one when using palette register 255 that he setup previously to a white value.

The thing that I don't know is, with DOS, you have to scale the 8bit value down to 6bit, but I guess DirectX does that automatically when you try to set an 8bit value.

Jim

0

Share this post


Link to post
Share on other sites
When I do a bltcolorfill, it look fine (white), but when I try to changed the font color to 255...it is still a greyish color. Are fonts restricted in their color? Or should I ideally be able to set it as any color?

Oh, btw, setting the font to 0 (black) will work just great...

0

Share this post


Link to post
Share on other sites
I've been playing around with 8-bit mode, and I've got a few questions. First off let me just say that I was playing with a palette that was made by just looping from 0 to 255 and assigning the 0-255 value to each red, green, and blue value. So I basically made a grey-scale palette. Also, I'm using VB 5.0 if that molds your answer any...

1) When I'm calling a function that requires a color value, do I give it a 0-255 value representing an entry in my palette? I did this and it seemed to work, but I just want to make sure I'm not doing it wrong.

2) When I set the backbuffer's forecolor property, I get mixed results using the method in number 1. When I set the color to 0 (black in my palette) it will have black text, yet when i use 255 (white in my palette) I get a grayish color. Any ideas why this happens?

3) How could I go about using a bitmap that has 256 total pixels, each pixel having a particular color i want in my palette, and use that to make a palette in DirectX?

0

Share this post


Link to post
Share on other sites