I tried now Irrlicht example 16 and 21 to load my quake3 map (pk3 zip file containing scripts, texture, bsp), but found some issues (I get no load errors )
See picture:
1) Transparent shaders are loaded as solid. See black text background, lack of transparency. (though some original transparent textures seem to get loaded properly (like
the lightbeam), some not)
2) Water is oscilating in sinus, but the wave grid is 10 times larger than it should be.
Some moving texture shaders like bubbles are moving in the opposite direction (down).
Water texture moves 10 times faster, oscilates like 10 times faster...
3) Some close planar surfaces intersect each other, causing vibration when the camera moves (no similar effect in game, honestly not a big problem just wondering why it
gets rendered uglier)
4) Unnecessary short mipmapping distance.
So the shaderscript file seem to get loaded since textures oscilate etc. Is it possible that irrlicht doesnt understand or misinterpretes some shadercodes.
Here are two shader examples for the bubbles, water and text:
Code: Select all
//--------- Shader for text ------------
textures/bkszt/aerob
{ surfaceparm nonsolid
surfaceparm nomarks
q3map_surfacelight 500
surfaceparm trans
qer_trans 1
{
map textures/bkszt/aerob.jpg
blendFunc blend
rgbGen identity
alphaGen const 0.1
}
{
map textures/bkszt/aerob.jpg
blendFunc add
alphaGen const 0.1
}
}
// ---------- shader for water ----------------
textures/bkszt/water3a
{
qer_editorimage textures/bkszt/water3a.jpg
qer_trans .3
q3map_globaltexture
surfaceparm trans
surfaceparm nonsolid
surfaceparm water
surfaceparm nolightmap
cull none
tesssize 32
deformVertexes wave 40 sin 2.5 2.5 2.5 2.5
{
map textures/bkszt/water3a.jpg
//blendFunc add
rgbgen identity
blendfunc blend
alphaGen const 0.5
tcmod scale -1 -1
tcmod transform 2.5 2.5 2.5 1 1 1
tcmod scroll -.11 .01
tcMod turb 0 .1 0 .1
}
{
tcgen lightmap
map $lightmap
blendfunc gl_dst_color gl_src_color
rgbGen identity
}
}
// ------------ shader for bubbles ---------------------
textures/bkszt/bubble
{
qer_editorimage textures/bkszt/bubble.jpg
qer_trans .3
q3map_globaltexture
surfaceparm trans
surfaceparm nonsolid
surfaceparm water
surfaceparm nolightmap
cull none
{
map textures/bkszt/bubble.jpg
//blendFunc add
rgbgen identity
blendfunc blend
alphaGen const 0.5
tcmod scale -1 -1
tcmod scroll 0.0 1
}
{
tcgen lightmap
map $lightmap
blendfunc gl_dst_color gl_src_color
rgbGen identity
}
}