BSP maps and HLSL/GLSL shaders

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
pyrokar
Posts: 12
Joined: Tue Apr 03, 2007 7:05 am

BSP maps and HLSL/GLSL shaders

Post by pyrokar »

Hello

I want to use HLSL/GLSL shaders in a BSP map for specific bsp entities.
For example, you could read the shader-filename from one of those Bsp-Entity-Variables using the BspEntityReader which was postet once in this forum. But how to make Irrlicht display it?

Does anyone have any information on that?

Last Question:
Are there any good alternative file formats to BSP, which:
- can store custom ""data"" / ""parameters"" (for entities).
- has good editor/modelsoftware support (-> blender?)
If you put water into a cup, it becomes the cup. You put water into a bottle and it becomes the bottle. You put it in a teapot it becomes the teapot.
Now, water can flow or it can crash. Be water my friend.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Irrlicht 1.3 has BSP shader support, check example 16.
pyrokar
Posts: 12
Joined: Tue Apr 03, 2007 7:05 am

Post by pyrokar »

hybrid wrote:Irrlicht 1.3 has BSP shader support, check example 16.
But not support for HLSL/GLSL-Shaders in BSP-Maps.
I want to hack a BSP map that displays HLSL/GLSL-Shaders.
If you put water into a cup, it becomes the cup. You put water into a bottle and it becomes the bottle. You put it in a teapot it becomes the teapot.
Now, water can flow or it can crash. Be water my friend.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

If you want to extend the file format you also have to extend the loader. Simply add the shaders you encounter while reading the file. Check example 10 for ways to add shader files.
Post Reply