Hello,
I'm trying to apply a normal map on a wall and an environment map on a floor, both of them don't work at all, I don't know if there's something additional to do.
Here is the setup :
I've ran the map then executed the command "envmap kf_test 512".
My env textures are located at ~/.xonotic/data/env, they are named
I'm using this code for the floor shader :
And the shader is correctly applied in NetRadiant, but it's still the same texture in the game
For the wall, I've used the GIMP with the normalmap plugin, I've saved the main texture as textures/Kafka/Brick08.tga and the result as textures/Kafka/Brick08_norm.tga, I've added a gloss texture for it too.
Here are the files I'd like to use :
Diffuse :
Gloss :
Normal :
It doesn't work, I wonder what's going on...
Has anyone got an idea please ?
Best regards.
I'm trying to apply a normal map on a wall and an environment map on a floor, both of them don't work at all, I don't know if there's something additional to do.
Here is the setup :
I've ran the map then executed the command "envmap kf_test 512".
My env textures are located at ~/.xonotic/data/env, they are named
Code:
kf_testbk.tga kf_testdn.tga kf_testft.tga kf_testlf.tga kf_testnx.tga kf_testny.tga kf_testnz.tga kf_testpx.tga kf_testpy.tga kf_testpz.tga kf_testrt.tga kf_testup.tga
I'm using this code for the floor shader :
Code:
textures/Kafka/Floor01_env
{
qer_editorimage textures/Kafka/Floor01
dpreflectcube env/kf_test
{
map textures/Kafka/Floor01
}
{
map $lightmap
rgbgen identity
tcgen lightmap
}
}
And the shader is correctly applied in NetRadiant, but it's still the same texture in the game
For the wall, I've used the GIMP with the normalmap plugin, I've saved the main texture as textures/Kafka/Brick08.tga and the result as textures/Kafka/Brick08_norm.tga, I've added a gloss texture for it too.
Here are the files I'd like to use :
Diffuse :
Gloss :
Normal :
It doesn't work, I wonder what's going on...
Has anyone got an idea please ?
Best regards.