Lesson 20: How to use RFTexture packer to import images and textures into your video game

Okay, so you have made a texture, or several textures and you want to import them into the game. How do you do that? It is really quite easy. But just as a review I want to make sure that you have made the textures in a way that they will pour nicely, they are square in a power of two like 128x128 or 256x256 pixels, and you have saved them in .bmp format and 256 color mode.

If all this is done you are ready to get them in your game.

Reality Factory needs its graphics to be in a format called .txl or (texel) and it has a program that will take your bitmap files and turn them into .txl files. This program is called RF Texture Packer and it is really easy to use.


RF Texture Packer is a program that converts .bmp files to .txl files (which are what your level needs to draw graphics in the game)

Using Windows Explorer you need to hit the start button to bring up your program files. Then select Reality Factory | tools | RF Texture Packer and the Texture packer program comes right up. It looks like this:

Now here is an image for you to get into your Reality Factory Game:

Right click on this water image and select "Save Picture As" then pull down the menu and select .bmp not jpeg.

Save this image onto your computer somewhere you can easily find it like on your desktop.


Now using windows Explorer navigate to where you saved this picture and drag it

Find the file you want to move into RF Texture packer and single click then drag and drop it right over to the Texture Packer window.

This image shows texture pack and windows explorer both open on my desktop. I simply dragged the file over to the texturepack application and dropped it right in. When I then clicked on the file in tpack the picture popped right into the screen.




WIth this image highlighted in TPack save it into a reality factory folder. I suggest that you create a new folder called myimages and save it there. This will make it easy to find. Make sure you give the file a name and that it is saved as a .txl file.

Okay so now the graphic or graphics you made are saved into the Reality Factory game. There is only one more thing you have to do in order to actually use them in your game.

Now How do You work with this new Picture in your Game?

This is real easy. All you do is when you have the game design desktop open you simply pull down the Project then select Level Options; Hit the browse button then go to your myimages folder and inside it click on the graphic you imported. And Voila you are done. Your graphic is now inside the texture tab and you can use it normally.

But wait a minute! There is only one graphic and you want to import lots of them. This is easy, when you are using tpack you simply drag over as many images as you want. When you save it to the myimages folder all of these images are packed up into a single file. Then when you choose Options | level options and browse to that file all of the images pop into the Reality Factory game editor.

Okay, Let's Review


In this chapter of the tutorial you learned about graphics, textures and tiles. How to create them so they are seamless and what sizes and formats you should save them in.

You have made some textures yourself and imported them right into your game. WOW. You might not realize it but you have accomplished quite a lot. This is a very important step in making video games.

The next Big step in your learning how to make video game is to make and import models. But that is some serious stuff. You should review all of this texture part of the tutorial and make some more textures, import them and see how they look. Get good at this then you should move on to the modeling with milkshape tutorial.

This is the end of the Reality Factory Tutorial. For now! I recommend you move on to the Milkshape tutorial and learn how to make 3d Models. If you want to see certain topics covered in Reality factory, or more lessons contact me using the contact page :)


Latest Articles

Free Game making programs - to help you make games without spending money.

Writing quests for video games. Tips, ideas and techniques

A look at video game design - This shows you the process of how a game is designed and I take you from idea to game.

What is the most important thing you need to make a video game? It isn't what you think

Who do you contact if you want to get a job in the game industry? I have advice and more.

Video Game Design - What is it and how is it done?

Kids Make Video Games: A Guide for kids of all ages in game making.

A look at Assassin's Creed II - From a game makers perspective. This game is remarkable and there are some great lessons to be learned from it when it comes to making video games

Into the Looking Glass: A History of video games including a video. How did it all start?

A look at the various Game Design Software Packages - Help finding the one that's right for you

Free Resources for making video games. If your budget is Zero these resources are for you!

Three New Lessons in the Milkshape 3d Animation Tutorial: Animate, Link skeleton to skin, and animate both

So You have a great idea for a video game! What do you do now? - Some solid advice on turning an idea into reality

AMD New Chipset and Processor breaks the barrier in gaming realism - games that look as good as movies are coming

How to write a video game players guide - Writing a guide is an easy way to start learning about how games are made.


For absolute beginners

All Materials, unless otherwise stated are Copyright©2000-2014
Kalif Publishing

xml sitemap