Jump to content
  • Advertisement

Archived

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

hairycoconuts

.jam file extensions?

This topic is 6056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have been browsing through the projects on the nehe website and have noticed that there are alot of .jam files. 1) What are they? 2) What do they do? 3) Have they got ne relevence to OpenGL programming? 4) Are they commonly used? 5) Are there any tutorials telling you how to use them? Thankz alot guys been a great help ----------------------- This space is for sale -----------------------

Share this post


Link to post
Share on other sites
Advertisement
They are bitmaps with the extensions changed. Get a hexviewer/editor to look at new file types or just change their extensions to recognised ones like bmp or txt. The first two bytes of bitmaps are ''BM''. Change the extensions of the *.jam files to *.bmp and open them with any image viewer capable of handling bitmaps (just about everything) and you''ll see what I mean. *.dat is another popular renaming notation.

I imagine it is a crude way of protecting your artwork but it may be that by doing this it is easier to know which files are meant for which projects - finding and recognising *.jam files, especially when they have numerical names is probably a lot simpler than *.bmp

Share this post


Link to post
Share on other sites
Any file can be saved as a .jam -- remember the filename (including extension) has no bearing on the contents of a file... a .bmp extension is most likely a bitmap, but it could be anything (perhaps a Blue Man Productions data file?).

Share this post


Link to post
Share on other sites
Okay.... this has been asked before.

.jam files are simply bitmap files renamed by nehe for no particular reason other than j.a.m are his initials.

Jeff A Molofee

They are no different from bitmap files.... they simply have the extension changed.
(Most programmers do this at one time or another.. like when u make your first program that can read in zip files, and you rename the zip extension to your initials or the first 3 letters in your name.. its just for fun.. nothing major.. just adds a little extra bit of uniqueness to say its yours.)

As for your question

"is it possible to save a jpg as a .jam?"
The answer is YES. BUT.
Yes.. its possible to save any file as a .jam file.
BUT.. programs that currently read in bmp files using .jam extensions wont obviously be able to read in a jpg posing as a jam file. ( unless u add some code getting it to read in the header, then allocate the texture appropriately ).

Hope this helped.....

~Cobra~

Share this post


Link to post
Share on other sites
U guys are so cleaver!

Thankz a bunch! Can i ask another stupid question?


Would it be possible to code a whole game out of c++, graphics and opengl? (As well as a few music files)

could you tell me averagly how much a game programmer would get paid?

AND...
What is a *.tga file. I heard it was a graphics file but can''t seen to find a program that creates them or presentes them?


Thankz a buch for your help, one day i hope to be dealing out the solutions.

Cheers


-----------------------
This space is for sale
-----------------------

Share this post


Link to post
Share on other sites
Why even bother trying to convert .jpg or bmp files to .tga?

Are they smaller and is it that they can only be used in .exe programs?


Very confused!


Cheerse




-----------------------
This space is for sale
-----------------------

Share this post


Link to post
Share on other sites
quote:
Would it be possible to code a whole game out of c++, graphics and opengl? (As well as a few music files)



Ummm yes
You''ll find that''s generally how its done *grin*

Just grab urself a copy of MSVC++ 6.0 , Learn the C and C++ programming languages, and get an art/modelling program and you can make a whole game.

All u need is 1) code 2) media ( media = music/graphics/models/maps ) and ur done

quote:
Why even bother trying to convert .jpg or bmp files to .tga?



Well... .tga files are actually normally bigger than .jpg files. but they have the added bonus of having the ability to add alpha channels or masks right into the files themselves. (instead of having to mask a certain colour in code e.t.c which isnt nearly as nice).

Hope this cleared something up for ya

~Cobra~

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!