Traxx Java port (JTraxx)

Forum for discussing work in progress
Post Reply
User avatar
Kmaster
MTM2 Engineer
Posts: 1370
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Traxx Java port (JTraxx)

Post by Kmaster »

Edit: you can check the latest version here: http://forum.mtm2.com/viewtopic.php?p=58157#p58157

I wanted to show you guys what i've been working on lately. It's basically a Java version of Traxx, migrated with AI help, including some improvements and changes to fit the Java framework. While Traxx 1.5 is already pretty good and a replacement might not be necessary, i did this more as a learning personal project and maybe in the near future have an online JS MTM2 track viewer/editor, all based on Traxx (And hell, maybe CPR, Hellbender/TV/Fury3 level support). There's work left to do, but rendering is almost finished (hardest part no doubt) and file format utilities and keyboard navigation is working. Currently i'm fine tuning the UI, and next is the editors themselves. right now is just a wireframe track viewer

Image
Image
Image
Last edited by Kmaster on Sat Apr 25, 2026 1:52 am, edited 2 times in total.
User avatar
KF2416
Member
Posts: 41
Joined: Thu Sep 22, 2022 10:50 pm
Location: Somewhere in Canada
Contact:

Re: Traxx Java port

Post by KF2416 »

It looks neat.

BTW, will you add some new features like "Saving track as MTM1 track" and "Giving you a choice to pick Drag type when making a MTM1 track"? That would be cool.
The monster truck garage of KimikoFan2...

Image

Impact Monster Championship playlist:
https://www.youtube.com/playlist?list=P ... _NZQT6712_

The Monster Truck Community Server (feel free to join if you want):
https://discord.gg/SxwBuTRAJA

"I'm Army Armstrong. Are you ready for Microsoft's Monster Truck Madness?"
-Army Armstrong, 1996
User avatar
Fila
Member
Posts: 1462
Joined: Mon Jul 02, 2001 2:01 pm
Location: Lost in Translation
Contact:

Re: Traxx Java port

Post by Fila »

Oh that's really cool. Having a higher resolution traxx would be great.
User avatar
Kmaster
MTM2 Engineer
Posts: 1370
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Traxx Java port

Post by Kmaster »

Fila wrote:Oh that's really cool. Having a higher resolution traxx would be great.
indeed, while currently the render is inspired in Traxx software render, in the future we can move onto using openGL.
TDPProduction wrote:It looks neat.

BTW, will you add some new features like "Saving track as MTM1 track" and "Giving you a choice to pick Drag type when making a MTM1 track"? That would be cool.
sure, complete MTM2 feature set is my main goal, then MTM1. let me know your requests.
User avatar
Kmaster
MTM2 Engineer
Posts: 1370
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Traxx Java port

Post by Kmaster »

I'm releasing an alpha version of JTraxx (0.5) it's a fully featured track viewer for MTM2, supporting both SIT (thru POD files) and TXX (Traxx format) files. It follow many of the Traxx original UI design cues while adding more options, a fully resizeable 3D view, extensive increase in draw distance, a top-down Map view (like the early TrackView), switchable object and ground box grids, zoom, water tint option, exact camera control and detailed scene control.

Image
Image
Image

What's missing from original Traxx:
-Editor tools (terrain editor, texture editor, scene editor, ground box editor) interactive 3D view, texture viewer, model viewer, TXX file saving, special tools, POD export, SIT cloning, art and model extractor, terrain bitmap tools, MTM1 track support.

Feature requests:
-Performance improvements
-Drag track type support
-Embedded POD tools
-Model texture transparency
-JSON Preferences storage
-Better render lighting
-Proper naming for enum lists (e.g. music track names, object types)
-Color selection for all grids
-Configurable navigation

Long term:
-Javascript port for online use
-CPR, TV, Fury3, Hellbender map support
-OpenGL support
-Export to new formats

Download: https://drive.google.com/file/d/11fUo1w ... 0NShI/view
App format: Java 17
How to run: Download a Java 17 or newer JRE (https://www.oracle.com/java/technologie ... 26-windows). If you have Windows and downloaded the .EXE installer, you probably have the JAR files already associated to the Java runtime, so you can just double click the JAR file. But the safest method (assuming you properly installed Java) is running the jar file from the command line/Terminal/Powershell/etc:

Code: Select all

java -jar jtraxx-0.5.5.jar
User avatar
Kmaster
MTM2 Engineer
Posts: 1370
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Traxx Java port (JTraxx)

Post by Kmaster »

Cart Precision Racing track support

JTraxx v0.6.0 now includes CPR track support.

With -some- prior knowledge and the magic of agentic AI (and lots of debugging) I managed to reverse engineer a lot of stuff regarding CPR tracks.

So the main thing is that CPR has more precision than MTM/MTM2 (16 bits vs 8 bits) and getting the terrain height, texture alignment and object position right was kind of a pain (the magic of 16bit precision trying to be rendered in a 8bit system). Also, some of you already know that CPR have a separate road layer (would be nice if MTM2 had it) and lighting and alignment required specific routines, but final product looks pretty good for starters. I'm still missing the walls on the road layer and model z-pos is not exact due to loss of precision, but that would go in another iteration.

Image
yes that's 16 textures per cell! No idea why is defined as track type 2 (rumble in MTM2)
Image
Australia
Image
Vancouver
Jpez1432
Member
Posts: 102
Joined: Sun Apr 17, 2005 8:10 am
Location: U.S.A.
Contact:

Re: Traxx Java port (JTraxx)

Post by Jpez1432 »

Hey KMaster, not sure if you've seen this, here is Traxx2, I wrote it 5 or so years ago, full functional editor. https://github.com/jpez1432 its under Traxx2 if you wanna look at the code or how stuff works. Also I just recently started Traxx2.1 which is pretty far along. I'll post it as well. Kimiko has been asking about it so I was going to update it. It's 3d accelerated OpenGL and features animated models and textures, all features from MTM2 except a couple things, need to work on it some more. Good Luck with JTraxx.
Post Reply