Jump to content
  • Advertisement
Sign in to follow this  
rayce

graphics question

This topic is 4847 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

how do programmers tie in images and 3d models into the actual game code? is it through a dll or something? im asking this b/c when i download old game source code(doom, quake)there are no images or models included, yet you can actually build the project and play the game. how does this work?

Share this post


Link to post
Share on other sites
Advertisement
Doom uses WAD files, which are essentially zip files - lots of individual files contained within one big file.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Data is not often tied into code. It is not a good practice to tie in data
with code. Most applications focus to be data driven and as such seperate data
definitions from code definitions. What happens is that code is inbuilt to parse
and load data from files and translate them into data that is usable by the game
itself. There are routines that will scan for files on the system or open
specific files that contain the contents. The routines to do this are located
within the source code. This is the reason you can build an executable and
dump it into a directory with the required data without requiring it in the
first place to perform a compilation. I hope this helps

Share this post


Link to post
Share on other sites
Most current games will mash most of the data into larger files (.pak, .WAD, .dat, etc.) and unpack them while the games runs. This has multiple benefits for dvelopers: Fewer files to deal with, everything is in the same place, users cannot steal/edit the graphics as easily.

Share this post


Link to post
Share on other sites
so if i were to look in a game directory on my computer would see these pak, wad, or bsp files(depending on the game)?

Share this post


Link to post
Share on other sites
Quote:
Original post by rayce
so if i were to look in a game directory on my computer would see these pak, wad, or bsp files(depending on the game)?


yup...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!