Online MTM2 truck viewer

Downloads: https://www.mtm2.com/~trucks/trucks.php
User avatar
Kmaster
Member
Posts: 1577
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Online MTM2 truck viewer

Post by Kmaster »

OG_RuDeE wrote: Sun Aug 30, 2026 11:04 am Got it. Works now. Left and right arrow keys are nice. Might as well add forward and back now too? ;)

I notice that transparency for the new material types is not being handled quite right by your engine.

On the GMC 1500, you can also see parts from inside the truck showing through faces with (modified) glass material type. Note, my faces use cutout (alphatest) transparency rather than blend, in case that makes a difference.
thanks for the heads up. I'll fix it and add forward/backward navigation.
User avatar
Kmaster
Member
Posts: 1577
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Online MTM2 truck viewer

Post by Kmaster »

added forward backwards navigation with up/down arrow keys and fixed the glass material bug. i also reworked the wireframe view to mimic JSPOD texture+wireframe rendering.
Captura de pantalla 2026-08-30 a la(s) 11.43.30 p.m..jpg
User avatar
Kmaster
Member
Posts: 1577
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Online MTM2 truck viewer

Post by Kmaster »

added MTM1 truck support
Captura de pantalla 2026-09-02 a la(s) 12.55.39 a.m..jpg
User avatar
Fila
Member
Posts: 2184
Joined: Mon Jul 02, 2001 2:01 pm
Location: Lost in Translation
Contact:

Re: Online MTM2 truck viewer

Post by Fila »

Oh nice!
User avatar
Kmaster
Member
Posts: 1577
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Online MTM2 truck viewer

Post by Kmaster »

Added Evo 1&2 vehicle support
Captura de pantalla 2026-09-10 a la(s) 2.51.25 a.m..jpg
User avatar
Kmaster
Member
Posts: 1577
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Online MTM2 truck viewer

Post by Kmaster »

JSTruckViewer v1.5.6 - Lights and Magic

Captura de pantalla 2026-09-26 a la(s) 4.30.53 a.m..jpg
Captura de pantalla 2026-09-26 a la(s) 4.30.53 a.m..jpg (53.42 KiB) Viewed 3534 times
  • Added full MTM2 truck-light rendering, including flare sprites and textured beam cones.
  • Added support for headlights, roof light bars, brake lights, reverse lights, spinning beacons, and timed blinkers.
  • Added individual controls for light types and beam visibility. Controls unavailable for the selected truck are disabled automatically.
  • Added generated fallback flare and beam textures when the original light artwork is unavailable.
Captura de pantalla 2026-09-26 a la(s) 4.32.56 a.m..jpg
Captura de pantalla 2026-09-26 a la(s) 4.32.56 a.m..jpg (54.95 KiB) Viewed 3534 times
  • Added support for the classic DirectX 5 tinted-window hack used by legacy MTM2 trucks.
  • Fixed the transparent windows using collapsed UV color-key filtering. <- the fancy name of the hack. See https://learn.microsoft.com/en-us/windo ... -filtering
  • Improved RAW color-key detection for custom palettes whose transparent entry is not pure RGB black.
  • Improved texture smoothing with mipmaps and anisotropic filtering, reducing distant texture shimmer.
  • Added smoothed BIN vertex normals while preserving sharp body edges.
User avatar
Kmaster
Member
Posts: 1577
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Online MTM2 truck viewer

Post by Kmaster »

v1.5.7 - Added CPR racecar support.
Captura de pantalla 2026-09-29 a la(s) 1.53.43 a.m..jpg
User avatar
Cale
Member
Posts: 695
Joined: Mon Oct 27, 2003 7:28 pm

Re: Online MTM2 truck viewer

Post by Cale »

Does this mean you've parsed the CPR car files then? I'd love to play around with them but figuring it out felt above my skill level.
User avatar
Kmaster
Member
Posts: 1577
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Online MTM2 truck viewer

Post by Kmaster »

Cale wrote: Tue Sep 29, 2026 6:58 pm Does this mean you've parsed the CPR car files then? I'd love to play around with them but figuring it out felt above my skill level.
yes, specifically the .CMD files which are just multipart 3D models defined in plain-text.

Here's a description of both .CAR and .CMD files: https://github.com/juanputrerasm/JSTruc ... _FORMAT.md
User avatar
Cale
Member
Posts: 695
Joined: Mon Oct 27, 2003 7:28 pm

Re: Online MTM2 truck viewer

Post by Cale »

Awesome! I'll have to play around with that when I have more time.
User avatar
Kmaster
Member
Posts: 1577
Joined: Fri Oct 10, 2003 6:19 pm
Location: Valparaíso, Chile.
Contact:

Re: Online MTM2 truck viewer

Post by Kmaster »

JSTruckViewer 1.5.8

JSTruckViewer assembles and displays complete trucks and cars from Monster Truck Madness 1 and 2, CART Precision Racing and 4x4 Evolution 1 and 2 archives, right in your browser.

This is a maintenance release. Trucks and cars look and load exactly as before; the changes are in how the files are read.

Fixes
  • Classic textures of 32x32 and 128x128 pixels are now accepted, not only the usual sizes.
  • Texture palettes follow the same rules as JSPod and JSTrackViewer. A texture with no palette of its own now also checks the palette its archive names for it. A CPR car texture with no palette of its own falls back to CART Precision Racing's palette instead of Monster Truck Madness's.
Under the hood
  • Archives, textures, models and vehicle manifests are now read through OpenPhotex 1.0, the shared format library also used by JSPod, JSTrackViewer and JSMTM2Converter.
Post Reply