MXS Pixel Mapper for Track Makers

All about making tracks for MX Simulator
ddmx
Posts: 5267
Joined: Sun Apr 20, 2008 3:36 pm
Team: Epikmx.com
Location: Midland MI
Contact:

MXS Pixel Mapper for Track Makers

Postby ddmx » Wed Oct 19, 2011 3:56 am

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.
The MXS 1%

Mikey
Posts: 6972
Joined: Sat Nov 08, 2008 1:27 am
Location: Melbourne
Contact:

Re: MXS Pixel Mapper for Track Makers

Postby Mikey » Wed Oct 19, 2011 4:03 am

Good shit Dave, this myte give me motivation to finish up a few tracks!
My photography work
www.mikeowenphotographer.com

User avatar
DJ99X
Posts: 15468
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: MXS Pixel Mapper for Track Makers

Postby DJ99X » Wed Oct 19, 2011 4:21 am

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

User avatar
yzmxer608
Posts: 15267
Joined: Mon Dec 29, 2008 4:30 am
Team: Race Tech/SD
Location: Wisconsin, U.S.A

Re: MXS Pixel Mapper for Track Makers

Postby yzmxer608 » Wed Oct 19, 2011 4:53 am

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
Contact:

Re: MXS Pixel Mapper for Track Makers

Postby VMX_SKYmx99 » Wed Oct 19, 2011 12:21 pm

wow, thanks a lot DDMX. This will definitely come in handy.
Image

Sandhapper
Posts: 1242
Joined: Sat Jul 10, 2010 9:21 am
Team: MotoRAD
Location: The Nederlands

Re: MXS Pixel Mapper for Track Makers

Postby Sandhapper » Thu Oct 20, 2011 10:35 am

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: 5267
Joined: Sun Apr 20, 2008 3:36 pm
Team: Epikmx.com
Location: Midland MI
Contact:

Re: MXS Pixel Mapper for Track Makers

Postby ddmx » Thu Oct 20, 2011 11:45 am

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.
The MXS 1%

User avatar
stevoktm
Posts: 1067
Joined: Fri Dec 11, 2009 5:08 pm
Location: England

Re: MXS Pixel Mapper for Track Makers

Postby stevoktm » Thu Oct 20, 2011 12:17 pm

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: 1242
Joined: Sat Jul 10, 2010 9:21 am
Team: MotoRAD
Location: The Nederlands

Re: MXS Pixel Mapper for Track Makers

Postby Sandhapper » Thu Oct 20, 2011 1:40 pm

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: 5267
Joined: Sun Apr 20, 2008 3:36 pm
Team: Epikmx.com
Location: Midland MI
Contact:

Re: MXS Pixel Mapper for Track Makers

Postby ddmx » Thu Oct 20, 2011 1:59 pm

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.
The MXS 1%

ddmx
Posts: 5267
Joined: Sun Apr 20, 2008 3:36 pm
Team: Epikmx.com
Location: Midland MI
Contact:

Re: MXS Pixel Mapper for Track Makers

Postby ddmx » Thu Oct 20, 2011 2:02 pm

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
The MXS 1%

User avatar
wheels1758
Posts: 4121
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: MXS Pixel Mapper for Track Makers

Postby wheels1758 » Thu Oct 20, 2011 4:00 pm

David, what programming language did you use for this?

ddmx
Posts: 5267
Joined: Sun Apr 20, 2008 3:36 pm
Team: Epikmx.com
Location: Midland MI
Contact:

Re: MXS Pixel Mapper for Track Makers

Postby ddmx » Thu Oct 20, 2011 5:35 pm

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.
The MXS 1%

Sandhapper
Posts: 1242
Joined: Sat Jul 10, 2010 9:21 am
Team: MotoRAD
Location: The Nederlands

Re: MXS Pixel Mapper for Track Makers

Postby Sandhapper » Thu Oct 20, 2011 5:53 pm

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

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

Re: MXS Pixel Mapper for Track Makers

Postby haggqvist » Thu Oct 20, 2011 6:54 pm

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


Return to “Track Editing”

Who is online

Users browsing this forum: No registered users and 2 guests