Welcome to CMM

The CMM forum software was recently upgraded, some things may have changed and some things may be broken or not working. Please let me know by PM or on IRC if you have any problems using this forum.

Also, I've removed the skybox and shader links for now, the shader generator page was being abused and as we're moving towards a ue4 mapping base, they're redundant.

About Shaders

Having a problem with a shader or texture
KingPin
Posts: 5
Joined: Sat Jun 20, 2015 5:54 pm

About Shaders

Postby KingPin » Tue Jun 23, 2015 5:34 pm

Hello iam new here :)

I have some question about Shaders...

The last 2 Weeks i start mapping and and i have some Jumps ready to jump in a smal Map, all works fine under urt after compiling but now i want to tune my textures and brushes with Shaders. all about no hurt at some floors or slick at walls ... i try some Shaders on my own after tutors but some time i have no texture and slick or some texture and no slick ^^

at first how to sort them?
....

my folders are

king_t (t only for textures)
king_ts (ts for Textures with Shader)
king_test (test only for testing some textures at map)

- so i have some Textures stone1_t
- some Shader stone1_ts_nohurt
- and some Shader stone1_ts_slick

my shader for slick i make like this:

Code: Select all

textures/king_ts/stone1_ts_slick
{

map textures/king_ts/stone1_ts_slick.jpg
surfaceparm slick 

}


at shaderlist i named it also stone1_ts_slick

if there something wrong? i want to get the same texture with individuel effects like slick for no walljumps or slick and no hurt for some floors and normal texture for jumpable walls. it have to be only some simple things i hope *hrhr*

Lizart
Posts: 13
Joined: Fri Jan 25, 2013 8:24 pm
Location: Poland, Warsaw

Re: About Shaders

Postby Lizart » Tue Jun 23, 2015 10:37 pm

Hi KingPin!
nice to see you here.

1) you named the shader and gave the path exactly the same as the texture has. GTK doesnt know which of 2 options to choose so it gives no texture. It whould be different

2) surfaceparm key is the wrong place.

It should be like:

Code: Select all

textures/king_ts/stone1_ts_slick01
{
      surfaceparm slick
      {
       map textures/king_ts/stone1_ts_slick.jpg
      }
}


in the shader line: stone1_ts_slick01
in the map tex line: stone1_ts_slick.jpg

more or less it goes this way:

Code: Select all

textures/asd/asd1  // path (name) of the shader
{
      qer_editorimage/<path> // this one displays the texture icon in gtk only, in white or green frame i dont remember, it sometimes simplifies work :>
      // here parameters giving physical properties to the texture / global keys / surafeparms
      {
       map textures/<path>
        // here texture modifiers like turbulence, or blendfunc - transparency
      }
}


Do not copy any texture files to your textures/king_ts folder. Radiant doesn't need to have separate copy of a texture to give a parameter to it.
If you write a script for example: textures/king_ts/stone1_ts_slick01, it will exist only in radiant, not physically in the directory.
And will be equal to map textures/<path> + parameters (like slick,nohurt). If you need the same texture with different parameters you can use 1 texture file to make it.

For example:

Code: Select all

textures/king_ts/stone1_ts_ nohurt01
{
      surfaceparm nodamage
      {
       map textures/king_ts/stone1_ts_slick.jpg
      }
}


Code: Select all

textures/king_ts/stone1_ts_nomarks01
{
      surfaceparm nomarks
      {
       map textures/king_ts/stone1_ts_slick.jpg
      }
}

I'm not sure if i made it clear, it's late :>

KingPin
Posts: 5
Joined: Sat Jun 20, 2015 5:54 pm

Re: About Shaders

Postby KingPin » Wed Jun 24, 2015 4:04 pm

ahhhh ok i understand

so i need only 2 Folder, one for used textures in the map and one for testing new textures ... like king_map and king_test ... for Map i can use mapname so i have all textures i use for diferent maps but at first i will do king_map

Code: Select all

textures/king_map/stone1slick // Shadername ... so i know what texture and what effect only to show in radiant
{
      surfaceparm slick
      {
       map textures/king_map/stone1.jpg // only folder with texturename
      }
}


for now i only make new shaders with different names but same texture :D

Ty Liz *hrhr*


Edit .... it works!!! now i have translate all and make my first shader with tips in it and so on ... to remember after long time what to do :)
@ liz in new gtkradiant the program will show me the textur with shadername ;)

KingPin
Posts: 5
Joined: Sat Jun 20, 2015 5:54 pm

Re: About Shaders

Postby KingPin » Wed Jun 24, 2015 5:55 pm

wuhaha now the textures and name in gtk and urt work fine but the light effects are not work so ther have to be some more surefaceparms i think ... i hope u know what i mean xD

KingPin
Posts: 5
Joined: Sat Jun 20, 2015 5:54 pm

Re: About Shaders

Postby KingPin » Thu Jun 25, 2015 4:58 pm

here u can see it ... what i mean shader work with slick and texture but no light effects.

Image

KingPin
Posts: 5
Joined: Sat Jun 20, 2015 5:54 pm

Re: About Shaders

Postby KingPin » Fri Jun 26, 2015 1:38 pm

prob fixed ;)


Return to “Shaders / textures”

Who is online

Users browsing this forum: No registered users and 1 guest

cron