How to create a background from custom textures?
#1

I'd like to recreate this: https://www.youtube.com/watch?v=IFzL...ature=*********

What steps should I follow, provided I've already got Blender and gtatools?
Reply
#2

You can make something like this in blender... but make sure the object is enought big.



texturize by yourself, whatever you want it.

When you got the .dff and .txd file, put it into models folder
and setup into the artconfig like this..

AddSimpleModel(-1, 19379, -1001, "login_img.dff", "login_img.txd");

So you load the model when you start the server.

In your script, simply create a textdraw with the new model and show it when the player is login...

Example:

new Text:LoginScreen;
LoginScreen = TextDrawCreate(170.000000, 91.000000, "mdl-1001:loadsc0");
Reply
#3

Everything shows fine in Blender, but in-game it's just white. I'd appreciate a video tutorial — I know it's asking a lot but I've been trying to do this for a while now and haven't managed to, successfully.
Reply
#4

You can use Magic. TXD then import a background picture that you can edit with photoshop as well. Anything from logos to background pictures can be imported.

Opening the Magic. TXD you have to create a new txd with a name and import your image. Once you done that the loading part should be easy.

Note: To create the textdraw you'd have to use the name of the image that was imported inside the txd file and not the txd's name.

An example of my textdraw

pawn Код:
player_data[ playerid ][ e_PLAYER_TEXTDRAW ][ 16 ] = CreatePlayerTextDraw( playerid, 200.587890, 200.333343, "mdl-2001:logo" );
    PlayerTextDrawFont( playerid, player_data[ playerid ][ e_PLAYER_TEXTDRAW ][ 16 ], 4 );
    PlayerTextDrawColor( playerid, player_data[ playerid ][ e_PLAYER_TEXTDRAW ][ 16 ], 0xFFFFFFFF );
    PlayerTextDrawTextSize( playerid, player_data[ playerid ][ e_PLAYER_TEXTDRAW ][ 16 ], 300, 200 );
Also in one txd file you can have multiple backgrounds or textures. I'm not a pro nor know the limit but that's how I got it to work. There might be a "better way", that I don't know of.
Reply
#5

Where do I put the .txd file? In the models folder?
Do I need to create a .dff in this method, Cypress?
Reply
#6

This can be archived.
Reply
#7

Yes you put the txd in your models folder. I think a dff should be present else the model will fail to load. I used a random dff since no collisions are needed for the textdraws. I'm not sure whether this is wrong, but it works. If anyone got the right way, feel free to correct me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)