2012-11-15 snapshot

Post anything about MX Simulator here. Please. I'm begging you.
Post Reply
jlv
Site Admin
Posts: 14951
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

2012-11-15 snapshot

Post by jlv »

Changes:
  • Ground mipmaps setting now honored in all terrain rendering modes.
  • Terrain rendering now uses shaders.
  • Texture links.
  • Adjustable near/far clip planes.
How to enable terrain shaders for users
To enable the terrain shaders, set the terrain rendering method to "Shaders/Copy" or "Shaders/Direct".

How to enable terrain shaders for track creators
To make your track use shaders, add "dynamic_lighting 1" to the lighting file. The normal and specular maps for the terrain decals are called texture_tnorm.png and texture_tspec.png, where texture is the name of your decal without the .png extension. The normal map is a regular normal map with an alpha channel. In the specular map, red is specular intensity, green is hardness, and blue is currently unused.

How to make texure links
Replace the image with a text file where the first four characters are "LINK" followed by a space and the full path to the texture you wish to link to. E.g. if "myfolder/mytexture1.png" and "myfolder/mytexture2.png" are identical, you can save some space by replacing the contents of "myfolder/mytexture2.png" with "LINK @myfolder/mytexture1.png". One thing to watch out for if you use this is that since the texture ID is shared, when you save the track all references to "@myfolder/mytexture2.png" will be replaced with "@myfolder/mytexture1.png". So if you're replacing something that's directly referenced from the track files you'll want to only change to links when the track is finished.

Near/far plane settings
Add "near_plane 0.25" or "far_plane 5000" to the lighting file, using whatever values you want. I wouldn't set these unless you have a huge track that has a genuine need to override the defaults.

Here are the 2012 supercross tracks updated for the terrain shaders: http://mxsimulator.com/sx2012/sx2012.zip

Updated 2012-11-16: fixed Shaders/Copy mode
Updated 2012-11-16-1131: fixed Software mode crash
Updated 2012-11-19-1132: fixed editor bug
Windows users: http://mxsimulator.com/snapshots/mx-2012-11-19-1132.exe
Linux users: http://mxsimulator.com/snapshots/mxbin-2012-11-19-1132

Replace mx.exe or mxbin with one of the above files. The default location for mx.exe should be "C:\Program Files\MX Simulator". I'd keep a backup of the originals since these aren't well tested.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Mikey
Posts: 7018
Joined: Sat Nov 08, 2008 1:27 am
Location: Melbourne
Contact:

Re: 2012-11-15 snapshot

Post by Mikey »

I cant wait to get home!!!!!
My photography work
www.mikeowenphotographer.com
Juan357
Posts: 647
Joined: Tue Apr 14, 2009 9:17 pm
Location: Brasil , Rio de Janeiro

Re: 2012-11-15 snapshot

Post by Juan357 »

woooho , thanks VanderJosh!!!
Track Comp 2010 Champion!
MX PRODIGY 17
Posts: 3275
Joined: Tue Apr 12, 2011 9:36 pm
Team: TBR
Location: New Jersey

Re: 2012-11-15 snapshot

Post by MX PRODIGY 17 »

JLV COMES THROUGH AGAIN! :lol:

<3
Image
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: 2012-11-15 snapshot

Post by DJ99X »

Image
m121c
Posts: 3056
Joined: Sun Feb 27, 2011 5:36 am
Location: Iowa

Re: 2012-11-15 snapshot

Post by m121c »

Of course this would be released when I don't have my computer. WHY? WHY???!!!! :cry:

Sick as though, thanks JLV!
Sweendoggy
Posts: 3649
Joined: Sat Feb 21, 2009 5:10 am
Team: Lone Wolf
Location: California, US

Re: 2012-11-15 snapshot

Post by Sweendoggy »

baha, I knew you came onto 02 for a reason! Wheels heard this rumor and I was gonna poke you about it, but looks like my suspicions were true! haha
jlv
Site Admin
Posts: 14951
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: 2012-11-15 snapshot

Post by jlv »

Would have raced tonight if I could have got everything uploaded soon enough! Figured I was still in time to watch another boring Tysen checkout...
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: 2012-11-15 snapshot

Post by DJ99X »

Image

Image

Image
jlv
Site Admin
Posts: 14951
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: 2012-11-15 snapshot

Post by jlv »

I was struggling with the supercross textures for weeks and DJ already has stuff in less than an hour...
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
ehm24
Posts: 1556
Joined: Wed Jan 26, 2011 2:12 am
Team: Used to be Factory
Location: San Diego, CA

Re: 2012-11-15 snapshot

Post by ehm24 »

You should have asked him for help!
Image
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: 2012-11-15 snapshot

Post by DJ99X »

I already had them all setup. Just needed to add the alpha channels and rename them. I was testing them on a model in game beforehand
Robert196
Posts: 3408
Joined: Fri Sep 23, 2011 2:50 pm
Location: 192.168. 1.1

Re: 2012-11-15 snapshot

Post by Robert196 »

Any tips on making the lag even out without a big difference in picture quality?
| 2013 MotoOption Supercross 250 Eastside Champion | #turnbarcrew |
tyskorn
Posts: 6491
Joined: Sun Jan 11, 2009 5:52 pm
Team: Adept MX Graphics
Location: Utah, USA

Re: 2012-11-15 snapshot

Post by tyskorn »

The shaders only work on Shaders/Direct, but I always used Hardware/Copy before. Is this an issue or no? The SX textures look pretty sweet though. Thanks JLV!
Uollie
Posts: 115
Joined: Sun Jun 05, 2011 5:16 am

Re: 2012-11-15 snapshot

Post by Uollie »

Anyone else's shaders not working? I of course, installed the new snapshot, the updated 2012 sx tracks, and played with the Shaders/Direct and Shaders/Copy settings and everything looks like the previous snapshot's shaders.

Most tracks load fine and only uses about 240 mb memory (but appear to have no shaders) while I noticed a few tracks for some reason take a long time to load and use about 850 mb of memory and it makes my game lag. I've never lagged in this game before, so I'm not sure what's going on.

Anyone? D:
Post Reply