Jump to content

Custom Textures / 3D Text


HighFlyer

Recommended Posts

Hello there,

I am converting my project from SA-MP into MTA as MTA offers obviously much more functionality than SA-MP :P I do however have a slight dilemma on how to overcome a certain part of this "project". I have got custom mapped motorways, but the trouble is with signs. In SA-MP, there's the function Create3DTextLabel which just puts the text on a sign.

Now, in MTA, there's two ways to do it from my point of view, and since it's functionality is wide, I'd prefer the first way. The first option is to replace sign textures. But if I am not mistaken, each sign has only a single texture (i.e cxrf_desertsig is a green sign, containing a single TXD file for the sign, rest TXD's is for different layers i.e posts that the sign stands on and so on). However, the sign can't be obviously just a one sign, I have to have at least 20/30 different signs.

So here's my question as it stands, would it be possible to add more textures into the TXD file of the sign and replace the model with the replacement functions? For example, there would be single DFF/model, but different textures attached to it. Is it possible? Or is there anyway to duplicate the signs? Adding new models into gta3.img? Won't that crash the game or MTA? Perhaps copying the cxrf_desertsig and calling it desertsig2.txd and .dff or something?

The other way is of course to add dxDrawText over the model and display it, but I suppose it's kind of useless, when MTA can do much more than that.

I'd appreciate any suggestions/help from you.

Regards,

HighFlyer

Link to comment

Damn, looks pretty tidy, sorry for not seeing that, I've only started my personal "scripting adventure" if you like with Lua. I might use that, thanks a lot.

Any idea about the first option though? It would certainly be useful for overhead signs that I'm planning to texturize.

Link to comment
just use 3ds max Studio to make a DFF and a TXD and then export them to mta :B that´s my way to do it in 3D :B

Use adobe illustrator and make a vectoriel text then export the shape to 3ds max and extrude it and DONE !

Use Text tool in 3DS Max to save export from Illustrator. That's not the most efficient way, to have actual 3D model of the text. It's better to have custom texture on a flat model (plane). That way, you can change it just by changing texture.

Link to comment
just use 3ds max Studio to make a DFF and a TXD and then export them to mta :B that´s my way to do it in 3D :B

Use adobe illustrator and make a vectoriel text then export the shape to 3ds max and extrude it and DONE !

Use Text tool in 3DS Max to save export from Illustrator. That's not the most efficient way, to have actual 3D model of the text. It's better to have custom texture on a flat model (plane). That way, you can change it just by changing texture.

I've just got some idea: dxDrawText on render target, and then draw that render target texture on top of model texture.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...