Jump to content

[Help] Modify terrain, flat


Fduuuu

Recommended Posts

  • Administrators

A flat terrain eh, not a great lead. What exactly are you trying to achieve? Flattening terrain that originally had lots of relief would require you to push the verts down, on (IIRC) editable poly with 3ds Max, you can push/pull verts but that may not be what you're looking for. Perhaps you're looking for heightmapping? 

Please elaborate more on what you're trying to achieve, @Fduuuu

Link to comment

bwa95bT.png

Sorry, i wanna flat this place for example to map a house. I see that i can push verts in 3ds max but, what more i need.. just import .dff file and then change it in gta3.img, right?

 

Or fix this little mountain too

 

n8h02PD.png

 

Thanks for your fast reply !

Edited by Fduuuu
Link to comment
  • Administrators

Yeah I'd probably push verts down to balance the relief of the model for the house to properly sit on, but that'd be done on a case-case scenario all depending on the shape of the house's bottom. You can also push down faces or edges.

At last, you'll have to adjust the collision for the modified terrain to collide properly. I've made a thread on collisions at: 

If you go with importing the Rockstar default collision of the terrain (recommended) you'll have to match the vertices of the collision mesh to the game mesh. I would use 'Snap to Vertex' to move the collision verts into the game mesh verts positions. 

As an alternative you could duplicate the game mesh and name it 'col_terrainName', then do the collision materials for the sand, dirt, grass and what not. Use 'Select by Material' to quickly select all faces that represent sand or grass and then apply the respective collision material.

For replacing files you could use an MTA script, or do as you said, replace in gta3.img. If you do gta3.img, you'll have to replace the collision inside the collision archive (which likely contains 20+ other collisions). I use Steve-M's COL Editor for that. If you go with MTA script, all you'll need is a single collision file and a single model file (optionally TXD file if using custom textures).

Edited by Tut
Added bits of info
  • Like 1
Link to comment
  • Administrators

I usually browse community resources site to find simple scripts as I don't do any coding myself. If you don't find anything, I'd refer you to scripting section https://forum.multitheftauto.com/forum/71-scripting/ or the #scripting channel on MTA discord https://forum.multitheftauto.com/topic/95008-multi-theft-autos-official-discord-server/ to get help

 

Link to comment
  • MTA Anti-Cheat Team
On 23/09/2019 at 20:35, Fduuuu said:

Perfect, thanks a lot! . Which MTA script do you recommend to replace .col .dff and .txd files?

engineImportTXD
engineLoadTXD

engineLoadDFF
engineReplaceModel

engineLoadCOL
engineReplaceCOL

Just click and use the code examples from these functions on wiki, no need to screen share anything, it's pretty simple..

  • Like 1
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...