Track Files Explained

mxallan15
Posts: 104
Joined: Mon May 11, 2009 7:35 pm

Re: Track Files Explained

Post by mxallan15 »

it is possible to change the image of the guy over(runner)(30sec)
because it is not very nice: lol:.
and the guy on the finish line .
Image
jhdm17
Posts: 48
Joined: Sat Sep 06, 2008 9:14 am

Re: Track Files Explained

Post by jhdm17 »

hey im struggling to my a new tielmap, can you do it with paint? if so what numbers and stuff do you have to save
Mona
Posts: 1645
Joined: Thu Jul 31, 2008 6:46 pm
Team: MotoOption

Re: Track Files Explained

Post by Mona »

This is making me so mad, i cannot get the sky to work on any of my tracks. Here is the code for my Indy lighting file:

Code: Select all

sun_vector [ 1.00 0.30 1.00 ]
sun_color [ 1.00 1.00 0.50 ]
ambient [ 0.25 0.25 0.50 ]
sky_n @indy_2010/sky_north.png
sky_e @indy_2010/sky_east.png
sky_s @indy_2010/sky_south.png
sky_w @indy_2010/sky_west.png
sky_u @indy_2010/sky_up.png
flare_element [ 0.0 1.0 ] [ 0.5 0.5 0.5 ] 0.75 @glare.png
flare_element [ 0.0 -0.0 ] [ 0.0 0.0 0.125 ] 0.5 @glare.png
flare_element [ 0.0 -0.25 ] [ 0.0 0.125 0.0 ] 0.5 @glare.png
flare_element [ 0.0 -0.5 ] [ 0.125 0.0 0.0 ] 0.5 @glare.png
flare_element [ 0.0 -0.9 ] [ 0.0 0.0 0.0625 ] 0.4 @ring.png
flare_element [ 0.0 -0.95 ] [ 0.0 0.0625 0.0 ] 0.5 @ring.png
flare_element [ 0.0 -1.0 ] [ 0.0625 0.0 0.0 ] 0.6 @ring.png
flare_vector [ 1.0 1.414 1.0 ]
fog [ 0.0 0.0 0.0 ] .00055
I probably made a stupid mistake, but i can't find one myself, so i'm turning to you guys. I don't know if it matters, but i'm *trying* to use a test skybox, and the resolution of the png's are 256x256. In things like the shading file, resolution matters, but i dont know if it apply's here.
Also, no parts of the sky works, not one side, it just goes to the stock sky like the game wasn't told to load my sky.

Thanks for any help.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Track Files Explained

Post by DJ99X »

Is the folder name correct?
Mona
Posts: 1645
Joined: Thu Jul 31, 2008 6:46 pm
Team: MotoOption

Re: Track Files Explained

Post by Mona »

Yes sir
Indy_folder.jpg
:lol:
jlv
Site Admin
Posts: 14931
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Track Files Explained

Post by jlv »

Make sure your text editor can handle unix style line endings. Notepad will mess it up by putting carriage return characters on the end of each line. Notepad++ will handle it.
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.
Mona
Posts: 1645
Joined: Thu Jul 31, 2008 6:46 pm
Team: MotoOption

Re: Track Files Explained

Post by Mona »

I guess Wordpad doesn't handle that either, because i always use Wordpad when editing these types of files.

Thanks for the help!
Shadow
Posts: 2772
Joined: Sun Dec 02, 2007 5:10 pm
Team: FSK
Location: Finland

Re: Track Files Explained

Post by Shadow »

I can't get the sun flare to work on my track. The custom sky works so it shouldn't be because of not having unix style line endings. Any ideas?

Code: Select all

sun_vector [ -1 0.2309 0.766 ]
sun_color [ 0.92 0.7 0.30 ]
ambient [ 0.43 0.48 0.66 ]
sky_n @lavanko/sky_north.png
sky_e @lavanko/sky_east.png
sky_s @lavanko/sky_south.png
sky_w @lavanko/sky_west.png
sky_u @lavanko/sky_top.png
sky_env @saintjones/env.png
flare_element [ 0.0 1.0 ] [ 0.5 0.5 0.5 ] 0.75 @glare.png
flare_element [ 0.0 -0.0 ] [ 0.0 0.0 0.125 ] 0.5 @glare.png
flare_element [ 0.0 -0.25 ] [ 0.0 0.125 0.0 ] 0.5 @glare.png
flare_element [ 0.0 -0.5 ] [ 0.125 0.0 0.0 ] 0.5 @glare.png
flare_element [ 0.0 -0.9 ] [ 0.0 0.0 0.0625 ] 0.4 @ring.png
flare_element [ 0.0 -0.95 ] [ 0.0 0.0625 0.0 ] 0.5 @ring.png
flare_element [ 0.0 -1.0 ] [ 0.0625 0.0 0.0 ] 0.6 @ring.png
flare_vector [  -1 0.2309 0.766 ]
fog [ .353 .255 .223 ] .00025
Image
Those who possess strength have also known adversity.
jlv
Site Admin
Posts: 14931
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Track Files Explained

Post by jlv »

It won't draw the flare unless the pixel at the center of the flare is white. Make sure the flare vector points to a white area in the skybox.
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: Track Files Explained

Post by DJ99X »

Hey JLV. When I make skyboxes using terragen, I can easily get the sun vector from the co-ordinates I used. But when I use a skysphere to make a skybox, whats the best way to determine the sun vector?
jlv
Site Admin
Posts: 14931
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Track Files Explained

Post by jlv »

The easiest way is to just know it in advance. Otherwise you'll have to figure out the angles based on the position in the sphere map and make the vector from that.
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.
Shadow
Posts: 2772
Joined: Sun Dec 02, 2007 5:10 pm
Team: FSK
Location: Finland

Re: Track Files Explained

Post by Shadow »

Hey jlv, is there a way to add extra lighting sources into a track?
The terrain shading is not accurate enough with just the sun as a source of light and as a consequence, a bunch of ruts don't have any shading in them making a few straights look completely smooth when they're not.
Image
Those who possess strength have also known adversity.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Track Files Explained

Post by DJ99X »

Nah, its not possible. If its really a problem, just save the current shading, render a new one from a different light source, then do a bit of photoshopping until you get a desired result
yzmxer608
Posts: 15352
Joined: Mon Dec 29, 2008 4:30 am
Team: SYS
Location: Wisconsin, U.S.A

Re: Track Files Explained

Post by yzmxer608 »

Think the server moving screwed up the gate page. Does it work for anyone? It doesn't load for me.
TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
jlv
Site Admin
Posts: 14931
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Track Files Explained

Post by jlv »

I've reuploaded it.
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.
Post Reply