• Welcome, Guest. Please login.
 
January 25, 2025, 10:37:19 AM

News:

Please read the FORUM RULES


Need help with shaders!

Started by SuperUgglan72, January 02, 2025, 11:34:45 PM

Previous topic - Next topic

SuperUgglan72

Could someone help me with shading and maybe teach me the basics? I have tried reading Pibosos track creation guide where there's multiple ways listed to achieve different shading effects but none of them has done me any good and I feel as clueless as I was when i started.

What I'm having trouble with is getting a metallic shine or reflection. Any help is much appreciated

LXS77

January 03, 2025, 02:35:26 PM #1 Last Edit: January 03, 2025, 02:36:59 PM by LXS77
Quote from: SuperUgglan72 on January 02, 2025, 11:34:45 PMWhat I'm having trouble with is getting a metallic shine or reflection. Any help is much appreciated
Hi, here are some tips for you.

The shininess is controlled via a specular map of a texture, so the brighter the map the shinier the texture. The specular map is placed in Alpha channel and it might be convenient to combine normal and specular maps in one file (where the normal map is the main image and the specular is in Alpha).

As for reflections, there are no-real time reflections for objects in KRP, but static cubic reflections still can be used and MapView can help with creating necessary cubic reflection files. For example, in MapView, position yourself in front of the object you wish to create reflections for and press F9, the viewer will create a set of files in ENV folder. Then you can follow PiBoSo's guide to integrate cubic reflections into the shader file.

If you wish, I can create a sample set of files for you, so you can play with values/brightness and see what they do. After all, this is all a trial and error process.

SuperUgglan72

A set of files would be appreciated if it's not too much work, i'll check with mapview also and see i can figure that out. And you're talking about the env folder in the effects.pkz?

LXS77

OK, I'll let you know when ready. MapView will create its own ENV subfolder in the location where the MAP file is stored.

LXS77

The files are ready, I've sent you a personal message with a link (just login to the forum and check 'My Messages' at the top of the screen).