Clínica dental

SHADER – Photo Quality Road Surface

[título_original] – Nueva actualización 2023

Somos un pequeño grupo de apasionados profesionales de la odontología que han estado escribiendo artículos para el público durante más de 10 años. Nuestra misión es proporcionar información precisa y actualizada sobre la salud bucal para que las personas puedan tomar decisiones informadas sobre su atención dental.
Sabemos que una excelente salud bucal es esencial para la salud y el bienestar general, y estamos comprometidos a ayudar a nuestros lectores a lograr y mantener dientes y encías saludables.

Before anything, all credits for this guide go to @LilSKi , who took the time to share (<<thank you). If you are not familiar with him, his tracks (e.g. Bridgehampton Race Circuit) are one of the best modded tracks out there.

Back to our guide, this is what we aim to.. ahm no, what we WILL obtain by following the indications below.

road_sample_1.jpg

road_sample_2.jpg

The shader to use (the that Kunos also uses in official tracks) is ksMultilayer_fresnel_nm
Here are the settings from the SDK Editor.

shader_settings_1.jpg

shader_settings_2.jpg

Let’s go through all those textures and how to set them up to produce what you see above.

1/ the road diffuse.
This texture should be 1024×4096. You want as long a texture as possible to limit the amount of times it repeats. Shown below is the diffuse with the alpha channel next to it. Basically, the alpha channel here is your specular level. White is 100% and black is 0%. What I simply do is make the alpha channel a copy of the diffuse and adjust the levels how I want them to be. The format of the diffuse should be DXT5 and with about 4 mipmaps.

tex_diffuse.jpg

In general you only want to use one single diffuse for your entire road. You may ask “how do I get color variations and such?” The answer is in the detail textures which I will get to that in a later post.

2/ the mask.
My mask is fairly small at 128×512. It does not need to be as large as the diffuse. Mine looks like this and is in DXT3 format with 4 mipmaps.

tex_mask.jpg

The red is where the main road detail image is shown and the purple is where the main red channel detail is mixed with the blue channel crack texture. You can play with this bad boy all day long and even mix in the green channel if you want with another detail texture. I only used the two channels. You shouldn’t need to use the alpha channel with this so it should be 100% black if it is not used with a detail texture.

3/ txDetailR – the main detail image (in this example).
It should be 1024×1024 in DXT5 format with 4 mipmaps and it looks like this. The main texture is on the left and the alpha channel is on the right. This alpha channel is also specular so here you want it fairly dark with only some pebbles light to light up by the sun.

tex_detail.jpg

3.1/ txDetailG
If you are not using any of the color channels in the mask you can simply repeat the main detail image just to complete the form in the editor. In my case I don’t use green so it gets the main detail again.

3.2/ txdetailA is also not used in this case, so it can be set to the main detail like the green channel.

4/ txDetailB – The blue channel
Used in this example for the cracks texture. It should be 512×512 and DXT3 with 4 mipmaps. Again the alpha channel is specular. You will have to fine tune it so it matches the detail texture it blends with.

tex_cracks.jpg

5/ normal map.
It should be 1024×1024. No alpha is used on this and it can be DXT1 with 4 mip maps. You adjust the normal map resolution with the two numbers in “detailNMMult”

tex_NM.jpg

Final note from the author: I hope this helps clear up how to set the textures to make this shader work properly. I would suggest you use my settings to start and then you can play with the numbers to make them work for you.

..and a possibly useful note from NightEye: I found that Photoshop exports a full black alpha as full white somehow. Making the alpha #010101 fixes this. It doesn’t matter if you use a black detail texture, though. But it’s worth mentioning for people who experience weird results inside the Editor.

***
So there it is, asphalt in all its glory. If you get this to look right, it’s a huge step in bringing your track to “AC standards”.

***
PS: an alternative explanation, you can also find in this post from @Pixelchaser , should that “speak” better to you. Whichever you choose, good luck and let us know your results !

 

Lea más publicaciones relacionadas [título_original] en la misma categoría

Somos un pequeño grupo de personas apasionadas que han estado escribiendo artículos dentales durante los últimos años. Creemos que una buena salud oral es la clave para una vida feliz y saludable. Nuestro objetivo es proporcionar información precisa y actualizada sobre todos los aspectos de la odontología para que nuestros lectores puedan tomar decisiones informadas sobre su salud bucal.
Sabemos que elegir un dentista o un tratamiento dental puede ser abrumador, pero esperamos que nuestros artículos ayuden a que el proceso sea un poco más fácil.
Categorías principales

Related Articles

Leave a Reply

Your email address will not be published.

Back to top button