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

Gollum

HELP!!! Photoshop killing my bitmaps!

9 posts in this topic

Ok, this is bizarre. I am an extreme newbie, and I am working my way through Lamothe''s latest Gurus book. I am up to example 7_10, which loads a bitmap to the screen (a picture of the starship Enterprise). After a couple of weeks of slogging through the book, I am very excited to be putting graphics of any sort on the screen. Imagine my frustration at being stuck now. I tried replacing the name of the bitmap (in 7_10.cpp) with one I had created, and compiled. Didn''t work. I tried a bunch of other things to narrow down the problem, until finally, I tried copying the precompiled executable and the bitmap from the CD to my local drive. I run it, it works fine. Then, I open the bitmap in Photoshop 4.0, save it under the SAME NAME without making ANY changes, and run the executable. It errors out. This is very frustrating. I made no changes to the code or the bitmap. I am assuming (from what little I know of how bitmap files are put together) that Photoshop encodes the bitmap in such a way that Lamothe''s code doesn''t work? But that would be absurd, b/c _everybody_ uses Photoshop. Any help would be greatly appreciated. It''s example 7_10 from Tricks of the Windows Game Programming Gurus. - Chris the distraught newbie
0

Share this post


Link to post
Share on other sites
I''ve never used Photoshop or Lamothe''s book, but having said that the first thing I would check is if Photoshop is saving the file as a bitmap (as opposed to another, proprietary, format) and that the bitmap is being saved with the same colour depth as before (e.g. if it was an 8-bit palletized bitmap and you saved it as a 24-bit bmp, the code may realize this and produce an error). Anyhow, hopefully someone who uses the Lamothe book will see your post and help you out. Good luck.
0

Share this post


Link to post
Share on other sites
Oh, yeah, let me be clear:

The file on the cd was bitmap8.bmp (all lowercase).

I opened it in Photoshop 4.0, and it imported its own palette. I then saved it, wihtout changing the name, as a .bmp file, in 8 bit Windows format, without checking the RLE compression box.

:-) Still doesn''t work tho. *sigh*

What do you folks use to create graphics?

-Chris
0

Share this post


Link to post
Share on other sites
If your on chapter 7, maybe you could help me with chapter 6 - how do you get the DDURFACEDESC2 variable to register with VC++ - it picks up DDSURFACEDESC, as long as I don;t put the 2 on the end. This is fustrating me now, and I have included all the necessary headers and libraries and put them in the VC++ lookup directories.
Other than that - I can''t help you with your Photoshop problem, because I don''t own it. I''d suggest another test with something like Windows paint - you never know what Photoshop might be doing optimising things...

Cheers,

-Mezz
0

Share this post


Link to post
Share on other sites
I use photoshop for my graphics, but I have heard that time to time photoshop fudges up the bmp format.

Try opening it with mspaint and resaving it, this fixes any problems that photoshop introduces.

If you still have the bug then it is something else
Maybe the example program can''t handle different width/height.

Atavist
0

Share this post


Link to post
Share on other sites
IIRC LaMothe''s code only handles bitmaps with dimensions that are powers of two...



Mason McCuskey
Spin Studios - home of Quaternion, 2000 GDC Indie Games Fest Finalist!
www.spin-studios.com
0

Share this post


Link to post
Share on other sites
You can''t Photoshop files because Photoshop calculates bmp files sizes diffirent than t3dlib(i think that was the reason)
You could change the Load_Bitmap_File function or save the image in some other graphic program (like PSP) after you draw it in Photoshop
0

Share this post


Link to post
Share on other sites
Yea photoshop adds a few extra bits onto the end of your bitmap files for some odd reason. It causes all hell to be raised when you try loading the bitmaps in your apps. The best way to fix this is to just load the photoshop bmp files into MS Paint, and then save them again.
0

Share this post


Link to post
Share on other sites
to mezz did you add the line
#define INITGUID
to your project ?
0

Share this post


Link to post
Share on other sites
In Lamothe''s old Window Game Programming you couldn''t load in a bitmap saved in RLE form. I am guessing Photoshop saves in guess what... RLE form. Use Paint Shop Pro and save in RGB form.
0

Share this post


Link to post
Share on other sites