MXS Pixel Mapper for Track Makers

All about making tracks for MX Simulator
ddmx
Posts: 5373
Joined: Sun Apr 20, 2008 3:36 pm
Location: Midland MI

MXS Pixel Mapper for Track Makers

Post by ddmx »

I've been developing what I call a pixel mapper. I'll give a brief tutorial on how to use it, and leave it to you guys for feedback on ease of use and future features.

What it does:
The program steps through a "Pixel Map" and places a statues line every time it sees the color pixel that denotes your objects "Pixel Definition File".
Accepts any size terrain.png and any size Pixel Map.
Set the background color of your pixel map to transparent to see it overlayed on the terrain.

Possible uses:
Photoshop pen tool > stroke path with distance offset. Place AMA stakes accurately around the track with the click of a (few) buttons. :)
Photoshop brushes for random object placement across a map.
Many Many More!

Future Updates:
Ability to include multiple objects and pixel colors in 1 definition file.
Ability to place objects within the program. Eliminate third party software.
"Rotate towards nearest" feature for bales and banners and w/e else that needs aligned when placed.
Fancy GUI
3D view with .jm integration (hopefully) so you can see the models placed in real time
Ultimately, a long way down, a standalone editor, but doubtful.

Video Tutorial. Thanks Wheels!


Quick Rundown. In PS I placed a path and stroked it with a 1px pen 1000% spacing. Ran the program and exported ama stakes onto my track. Saved the definition file for future use.
Image

IT WILL PLACE AN OBJECT EVERY TIME IT SEES THE PIXEL IT'S LOOKING FOR! haha
Download (alert me of glitches, it's only been tested on win7)
Pixel Mapper 1.1 Update
Last edited by ddmx on Wed Sep 11, 2013 12:46 am, edited 3 times in total.
Mikey
Posts: 7018
Joined: Sat Nov 08, 2008 1:27 am
Location: Melbourne
Contact:

Re: MXS Pixel Mapper for Track Makers

Post by Mikey »

Good shit Dave, this myte give me motivation to finish up a few tracks!
My photography work
www.mikeowenphotographer.com
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: MXS Pixel Mapper for Track Makers

Post by DJ99X »

Sick idea dude. A couple of suggestions:

- A random/height rotation between two set numbers
- A billboard option (with random height/scale like above)
- When you allow the placement within the program, perhaps set up a spline system?
- Perhaps a "stand upright" check box that adds 2 pi to whatever the rotation is set to (not really a problem for people who know what pi is)

Thats all I got for now
yzmxer608
Posts: 15352
Joined: Mon Dec 29, 2008 4:30 am
Team: SYS
Location: Wisconsin, U.S.A

Re: MXS Pixel Mapper for Track Makers

Post by yzmxer608 »

I haven't tested it but that's a great idea!

Now I can't wait to test it, damn college.
TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
VMX_SKYmx99
Posts: 836
Joined: Sat Feb 09, 2008 9:51 pm
Team: BOMR
Location: San Francisco, CA

Re: MXS Pixel Mapper for Track Makers

Post by VMX_SKYmx99 »

wow, thanks a lot DDMX. This will definitely come in handy.
Image
Sandhapper
Posts: 1267
Joined: Sat Jul 10, 2010 9:21 am
Team: MotoRAD
Location: The Nederlands

Re: MXS Pixel Mapper for Track Makers

Post by Sandhapper »

Sick DDMX!, but I can't figure out how to get that red points with the pen tool, or do u just use the brush for that?
2013 EMF outdoors 2nd place overall
2013 MxSCentral outdoors 2nd place overall
2012 EMF outdoors 2nd overall
2012 SMA sx 2nd overall
2011 SMA outdoors champion

Image
ddmx
Posts: 5373
Joined: Sun Apr 20, 2008 3:36 pm
Location: Midland MI

Re: MXS Pixel Mapper for Track Makers

Post by ddmx »

Sandhapper wrote:Sick DDMX!, but I can't figure out how to get that red points with the pen tool, or do u just use the brush for that?
Use a red "Pencil". With the "Pen" tool, just stroke it with the pencil.
stevoktm
Posts: 1067
Joined: Fri Dec 11, 2009 5:08 pm
Location: England

Re: MXS Pixel Mapper for Track Makers

Post by stevoktm »

Sandhapper wrote:Sick DDMX!, but I can't figure out how to get that red points with the pen tool, or do u just use the brush for that?
create your path, set your pencil settings up on the right and right click with the path tool and select stroke path, then select pencil from the drop down menu and click ok.
Image
Sandhapper
Posts: 1267
Joined: Sat Jul 10, 2010 9:21 am
Team: MotoRAD
Location: The Nederlands

Re: MXS Pixel Mapper for Track Makers

Post by Sandhapper »

Thx for the help guys. I got the map and stuff but now when I start the track, I dont see any objects :S
2013 EMF outdoors 2nd place overall
2013 MxSCentral outdoors 2nd place overall
2012 EMF outdoors 2nd overall
2012 SMA sx 2nd overall
2011 SMA outdoors champion

Image
ddmx
Posts: 5373
Joined: Sun Apr 20, 2008 3:36 pm
Location: Midland MI

Re: MXS Pixel Mapper for Track Makers

Post by ddmx »

1. Select working track folder
2. create pixel definition with object, skin, colision (should all be in the track folder), height, rotation
3. load your pixel map (make sure to use red, ARGB(255, 255, 0, 0) or (ffff0000))
4. write to statues file

Let me know if you still can't get it.
ddmx
Posts: 5373
Joined: Sun Apr 20, 2008 3:36 pm
Location: Midland MI

Re: MXS Pixel Mapper for Track Makers

Post by ddmx »

As well, I'm working on making it a bit more user friendly right now. Also the ability for 16 or so different Pixel Definitions for a single pixel map.

Currently Working On:
More user friendly
16 or so pixel definitions for a single pixel map
billboard export with rnd height, alternating height, or set height
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: MXS Pixel Mapper for Track Makers

Post by wheels1758 »

David, what programming language did you use for this?
ddmx
Posts: 5373
Joined: Sun Apr 20, 2008 3:36 pm
Location: Midland MI

Re: MXS Pixel Mapper for Track Makers

Post by ddmx »

VB.net :mrgreen:

I almost started it in C# for the easier ability to morph it into an external 3d track editing program. i.e. Twisted Dirt's MVA Editor. There's no saying that I won't do that Later on. I just knew I could knock this out in VB much quicker right now.
Sandhapper
Posts: 1267
Joined: Sat Jul 10, 2010 9:21 am
Team: MotoRAD
Location: The Nederlands

Re: MXS Pixel Mapper for Track Makers

Post by Sandhapper »

I still can't see the objects ingame:/ Here is a video how I do it.

http://www.youtube.com/watch?v=jbsP0j9VC9Y
2013 EMF outdoors 2nd place overall
2013 MxSCentral outdoors 2nd place overall
2012 EMF outdoors 2nd overall
2012 SMA sx 2nd overall
2011 SMA outdoors champion

Image
haggqvist
Posts: 352
Joined: Sun Jan 31, 2010 11:44 am
Location: Sweden

Re: MXS Pixel Mapper for Track Makers

Post by haggqvist »

Brilliant stuff!
As for other possible uses I just have one thing to say; flaggers!
Placing flaggers is definitely on the top three list of the most mind-numbingly boring things I've done! :)
Image
Post Reply