Page 1 of 2

TRR exporter and TRI importer MAXscripts

Posted: Mon Jun 05, 2017 4:53 am
by machf
OK, now I've finally uploaded those scripts I made a long time ago so that you can find them on the Editing section of the site. I fixed the TRR export script so that it no longer conflicts with the TPM export script, and made a version converted for use with Gmax just as hppav did with the old one.

http://www.trescom.org/editing/

After editing terrain in TresEd and saving it, you should use GUIapp to convert it to a .TRI file, then use the TRI importer to load it into 3ds Max/Gmax, then use the TRR exporter to generate a .TRR file, then again use GUIapp to create e new .wtd file from the .TRR file. That will prevent the bugs usually associated with 3rd-party terrain files, where everything appears to "sink" into the terrain because the in-game rendered terrain doesn't match with the actual terrain heights...

Alternatively, you can export the terrain as a .TPM file from within TresEd and then use the TPM importer to load it into 3ds Max/Gmax and proceed from there, but .TPM terrain files don't appear to be as optimized as .TRI ones.

Re: TRR exporter and TRI importer MAXscripts

Posted: Mon Jun 05, 2017 5:38 am
by Draconisaurus
Sounds quite useful, thanks...

Re: TRR exporter and TRI importer MAXscripts

Posted: Sat Jun 10, 2017 5:59 am
by tatu
Thanks! I should start using this instead. I guess it will work better than using the TPM fuction, as it is the "official" way. I think the official Terrain exporter also allows importation of .TRI files. I have actually never tried it.

Re: TRR exporter and TRI importer MAXscripts

Posted: Tue Jun 13, 2017 3:55 am
by hppav
Thanks for the new gmax exporter machf :) I kinda miss 3ds Max, but I've used gMax for so long that I'm used to using it by this point :lol:

Re: TRR exporter and TRI importer MAXscripts

Posted: Tue Jun 13, 2017 6:23 pm
by Draconisaurus
I don't trust my pretty-much-dirt-cheap laptop with Max at this time... Sticking to working-with/retooling existing assets (and photoshop).

Re: TRR exporter and TRI importer MAXscripts

Posted: Tue Jul 11, 2017 11:05 pm
by xelono
GUIapp?? where download this?

Re: TRR exporter and TRI importer MAXscripts

Posted: Wed Jul 12, 2017 12:52 am
by machf
It's part of the tools package released at the same time as Tres CE...

Re: TRR exporter and TRI importer MAXscripts

Posted: Wed Jul 12, 2017 10:20 pm
by Draconisaurus
...somewhere buried in the Trespasser CE thread.

Re: TRR exporter and TRI importer MAXscripts

Posted: Wed Jul 12, 2017 10:43 pm
by machf
Actually, they are in the downloads section of TresCom, "Tools" subsection.

Re: TRR exporter and TRI importer MAXscripts

Posted: Wed Jul 12, 2017 10:46 pm
by Draconisaurus
:O Well that's handy.

Re: TRR exporter and TRI importer MAXscripts

Posted: Wed Jul 12, 2017 11:26 pm
by tatu
Draconisaurus wrote::O Well that's handy.
We are not that lazy here :P

Also, as the latest CE release was a stable one, it is on the first post anyway. ;)

Re: TRR exporter and TRI importer MAXscripts

Posted: Mon Jul 17, 2017 7:04 pm
by tatu
Could you give an example where the terrain is less optimized in the TPM format?

TheIdiot did some work on our Island terrain, but for some reason that made GUIApp crash when exporting it to .TRI. However, I remade the .WTD using the TPM way and after that it worked. However, TheIdiot took a look and he couldn't notice that remaking the terrain via the TPM format made any changes to the terrain quality wise.

Re: TRR exporter and TRI importer MAXscripts

Posted: Mon Jul 17, 2017 11:59 pm
by machf
tatu wrote:Could you give an example where the terrain is less optimized in the TPM format?

TheIdiot did some work on our Island terrain, but for some reason that made GUIApp crash when exporting it to .TRI. However, I remade the .WTD using the TPM way and after that it worked. However, TheIdiot took a look and he couldn't notice that remaking the terrain via the TPM format made any changes to the terrain quality wise.
Uh... after editing in TresEd, you export as .TPM, then import it into MAX, then export it as a .TRR file, then convert it into a .WTD file with GUIapp. And THEN you can convert it into a .TRI file with GUIapp to import it back into MAX and look at it and compare it to the .TPM one.

If you edited with TresEd and then attempted to export the terrain as a.TRI file with GUIapp, no wonder it crashed... remember, TresEd doesn't save proper WTD files. GUIapp won't have problems with retail WTDs or WTDs that have been re-generated by GUIapp itself suing the method mentioned above.

Re: TRR exporter and TRI importer MAXscripts

Posted: Tue Jul 18, 2017 1:13 am
by Draconisaurus
machf wrote:remember, TresEd doesn't save proper WTD files.
Even when they are modified/resaved retail WTDs?...

Re: TRR exporter and TRI importer MAXscripts

Posted: Tue Jul 18, 2017 1:30 am
by tatu
So this method is only good for retail WTD's then I guess, not fan made ones. Or unedit GUIApp WTD generated ones.