Skip to main content
gamedev.net
🔒 Locked

Too Much Work?

Started by Shotokan Apr 19, 2001 at 6:56 AM 5 replies 300+ views
Original Post
Shotokan
Shotokan
I got sort of a problem here. Well, its sort of a good problem. I''m still learning C and C++ but yesterday my sisters friend gave me like 7 or 8 3D programs and this book on how to get started in each program with an example on how to make people, creatures, and the like. Thing is, I havent learned all of what C has to offer, same with C++, same with Directx. I''m currently reading 4 different books right now: C: how to program, C++: how to program, Tricks of the windows game programming gurus, and Code Complete. I even have a C/C++ reference book I glance at occasionally. But now, I have all this cool 3D software that i can learn, but damn it, i havent even made a game yet. I dont know if im going about learning game programming the wrong way or what. Even though i have nothing but time on my hands because school is out, and i only work 20hrs a week at my pitiful job. Am I juggling too many things at one time?
Roach
Roach
Yep! Sounds to me that you are juggleing too many things at once!! First get a good background in C or C++ - then go learn OpenGL or DirectX - then go on to start programming games.

One step at a time!!

Roach
Shotokan
Shotokan
Thanks for the advice roach. One step at a time you say? Lotta stuff to read...well, back to work!

Oh, and a question about jpegs and bitmaps. I counted the colors on this picture I have, and it says 63,299 unique colors for the bitmap, and 63690 for the jpeg. If the jpg is compressed, shouldnt it have less colors than the bitmap?
KalvinB
KalvinB
You have to program something to learn how to program. It might as well be a game and there is no "wrong" way to program. There are inifficient ways of doing things but they aren''t wrong. If it works it''s good. The idea is to do things inificiently and then gradually learn how to make it better and faster.

It really just depends on your learning style. I don''t read whole books. If I need something I look up just what I need.

I wouldn''t recommend using DirectX if you''ve never programmed before since graphics just waste time at this point. Make simple games with text and don''t read tutorials on how to make them. You''ll never learn how to program if you can''t solve problems on your own.

Ben
http://therabbithole.redback.inficad.com
Roach
Roach
KalvinB,
I disagree with your advice. I believe it is better to learn GOOD programming skills first - before you get in the bad habbit of being a hack! Yes to be a programmer you do have to program - but I think you should learn to program right - and not be a hack. Learn good techniques - help out the guy that will eventually have to maintain your code!!
I am in industry - Raytheon to be exact - Here you have to cross every ''t'' and dot every ''i'' - the standards here are very strict - but they make you become a good programmer. The problem with game programmers today is that there very good artistically, but are hacks when it comes to coding (uncommented code, global variables all over the place, and TONS of memory leaks)(sorry for the generalization of game programmers, there are exceptions to this rule!) - you cant have that kind of stuff for Radars (which I work on) and missle guidence systems, etc.
Good programming practices make bugs easier to find, allow for much easier upgrades, etc. If you don''t get into the habbit now of programming cleanly then it will be a pain to re-learn the stuff when you do have to program it cleanly(for a project, commersial software, etc). So learn the right way once - rather than having to relearn it again and again!

Thanks
Roach
Raytheon Systems CO.

Ironblayde
Ironblayde
quote:
Original post by Shotokan

Oh, and a question about jpegs and bitmaps. I counted the colors on this picture I have, and it says 63,299 unique colors for the bitmap, and 63690 for the jpeg. If the jpg is compressed, shouldnt it have less colors than the bitmap?


Image compression does not work by expressing an image in fewer colors; rather, it works by finding a way to compact the data while changing the image as little as possible. Lossless compression algorithms compress image data such that it can be exactly reconstructed when it is decompressed. An example of such a compression algorithm is the one used in .PNG files. Hence, if you save a .BMP as a .PNG and count the colors in each, the result will be the same.

The other type of compression is called lossy compression, which is what .JPG uses. Basically, it makes slight changes in the image data to make it more ''friendly'' for the compression algorithm, so it is able to compress to a greater degree. This is one reason .JPG can compress photorealistic images into such small files. Since .JPG uses lossy compression, however, it does change your color data, and so the number of colors appears differently. Usually, the number of colors will increase since whatever the algorithm is changing certain pixels to probably doesn''t occur again in the image.

This is some image programs allow you to set an accuracy rating on .JPG files. Larger accuracy forces the algorithm to make fewer changes, so your image is preserved more closely, but the files will be slightly larger. Smaller accuracy values let .JPG encoding take more liberties with your image. Hence, the file will be smaller, but the image will be more distorted.

Since it uses lossy compression, .JPG is not usually a good idea for games, unless you''re using it for something photorealistic. More ''artistic'' type images should have their exact color data preserved, and thus .PNG is probably your best option. Hope this helps-

-Ironblayde
 Aeon Software

Down with Tiberia!
"All your women are belong to me." - Nekrophidius
"Your superior intellect is no match for our puny weapons!"
Shotokan
Shotokan
Thanks Roach, KalvinB, and Ironblayde.

I have yet to actually program anything of my own yet, only the examples and exercise reviews from the books I have.

The books I have actually to tell you and give examples of good and bad programming practices. I also have a copy of Code Complete, so I cant go wrong can I :-)

Also, about the .jpg, .png, and .bmp information.....damn...you really know your stuff. Thanks for the info and advice you guys.

Shotokan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.