How to add Custom GLSL Shaders for Texture Maps in FTEQW Engine?

Rev3n4nt

New member
Apr 21, 2023
6
0
1
Lithuania
Greetings,

I am working on a project using the FTEQW engine, and I am keen on implementing custom GLSL shaders for texture maps in my game. Specifically, I aim to use parallax mapping to enhance the texture details, similar to how normal mapping is currently implemented in the engine, or how it's already made for Darkplaces engine.

For instance, if there's a map called base1.bsp using a texture located at /textures/bricks.tga, and a corresponding normal map at /textures/bricks_norm.tga, I'd like to introduce a new image like /textures/bricks_bump.tga for parallax mapping using a custom GLSL shader.

While I can find some documentation for writing GLSL shaders, I am struggling to find the entry point in FTEQW to implement these custom shaders for texture maps. The documentation and community resources seem to have limited information regarding this.

Would anyone have experience or insights on how to implement custom GLSL shaders for texture maps in FTEQW? Any pointers or references to relevant documentation, tutorials, or examples would be greatly appreciated.

Thank you for your time and assistance!
 
I found that there is already Parallax mapping, it's just called Relief mapping, and I found it in After Quake package. Still not clear how to add custom GLSL shaders for map surfaces, if I want to make for Texture mode some mix of Nearest mapping (linear) and Trilinear mapping.
 
I've tinkered with FTE a bit but got so frustrated with the lack of good documentation that I gave up. Are you sure this is the right engine for your project? You might be better off with something with more support and better docs? Godot/Trenchbroom/Qodot seems like an interesting option.
 
Thanks, @Gambit! I totally get where you're coming from with the documentation woes.
I did give Godot a shot but somehow clicked better with SUI Template for FTEQW. It's a bit of a puzzle without clear instructions, isn't it?
If you ever come across anything shader-related in FTEQW, or have a sudden 'aha!' moment about it, I'd love to hear about it.
Cheers!