Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[NEED HELP] Custom Shader/Material not working ingame

#1
Hi all,

I am super new to Xonotic mapping and have an issue with using a custom texture. This is my setup, I tried setting it up with the help of ChatGPT...


/home/josch/Games/Xonotic/data/textures/garden:
 - grass_01.jpg
 - grass_01_normal.jpg


/home/josch/Games/Xonotic/data/scripts:
garden.shader
shaderlist.txt  -> only contains the word "garden"


the garde.shader contains:
textures/garden/grass_01
{
    qer_editorimage textures/garden/grass_01.jpg

    {
        map textures/garden/grass_01.jpg
    }

    normalmap textures/garden/grass_01_normal.jpg
}

In netradiant (working on linux) I see the garden directory in the texturebrowser, but it shows the diffuse AND the normal map. According to ChatGPT a sign of the shader not working.

I can assign the diffuse texture to a brush, but when I go ingame the texture is invisible (not showing at all).

Any help on what I am doing wrong would be highly appreciated Smile
Thansk!
Reply

#2
Just in case anyone stumbles over that post. I got support in the discord channel and the solution is that one here:

julius — Yesterday at 11:48 AM
don't put anything related to normal map in the shader
the normal map will be used automatically by the engine if we are talking of DarkPlaces (engine used by Xonotic)
julius — Yesterday at 11:56 AM
a basic lightmapped shader would be this:
textures/garden/grass_01
{
    qer_editorImage textures/garden/grass_01.tga

    {
        map textures/garden/grass_01.tga
        rgbGen identity
    }
    {
        map $lightmap
        rgbGen identity
        blendFunc filter
    }
}
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Updated Xonotic gamepacks for NetRadiant and NetRadiant-custom SpiKe 3 5,063 11-16-2024, 04:49 AM
Last Post: SpiKe
Rainbow NetRadiant-custom Garux 25 23,802 03-06-2024, 04:31 PM
Last Post: anoob
  [NEED HELP] Weapon shader isn't doing as I'm intending to do LegendGuard 0 2,732 04-04-2022, 07:23 AM
Last Post: LegendGuard
  [SOLVED] TDM spawn points not working Nyx 2 3,793 08-07-2021, 02:20 AM
Last Post: Nyx
  Xonotic custom icon for profile users - editing image tutorial LegendGuard 4 5,296 12-14-2020, 12:16 PM
Last Post: Julius
  [NEED HELP] NetRadiant Models Not Working 3agle427 7 9,183 06-26-2020, 11:40 AM
Last Post: DarkFox
Wink Custom made crosshairs Draena 4 5,881 04-21-2020, 02:36 PM
Last Post: Cortez666
  [NEED HELP] Custom Skins 3agle427 0 12,220 01-14-2019, 08:01 PM
Last Post: 3agle427
  [NEED HELP] Custom NetRadiant Textures / Textures Not Loading 3agle427 2 7,044 12-30-2018, 09:21 AM
Last Post: 3agle427
  Defining custom particle effect types Notavi 2 4,080 08-05-2018, 06:31 AM
Last Post: Notavi

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-