2012-11-15 snapshot

Voir le sujet précédent Voir le sujet suivant Aller en bas

2012-11-15 snapshot

Message par Tomsiiix le Lun 19 Nov - 4:45

Jlv a écrit: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: [Vous devez être inscrit et connecté pour voir ce lien]

Updated 2012-11-16: fixed Shaders/Copy mode
Windows users: [Vous devez être inscrit et connecté pour voir ce lien]
Linux users: [Vous devez être inscrit et connecté pour voir ce lien]

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.

Amusez-vous bien et merci a toi Josh

_________________
[Vous devez être inscrit et connecté pour voir ce lien]
Mx un jour , Mx toujours !
avatar
Tomsiiix
administrateur
administrateur

Messages : 207
Points : 275
Date d'inscription : 12/02/2012
Age : 21
Localisation : Devant!:p (de preference)

Voir le profil de l'utilisateur http://zen-mxs.forumpro.fr/

Revenir en haut Aller en bas

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum