#491
02 декабря 2017 в 19:36
part of terrain.shader, just for example:
///////////////// forest ////////////////////////
/////////////////////////////////////////////////
textures/terrain/mxterra3_0
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock0b.tga
rgbGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_1
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm gravelsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock1b.tga
rgbGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_2
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock2b.tga
tcmod scale 0.05 0.05
rgbGen vertex
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_3
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock3g.tga
tcmod scale 0.05 0.05
rgbGen vertex
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_4
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock4b.tga
tcmod scale 0.1 0.1
rgbGen vertex
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_0to1
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock0b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock1b.tga
tcmod scale 0.1 0.1
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_0to2
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock0b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock2b.tga
tcmod scale 0.05 0.05
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_0to3
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock0b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock3g.tga
tcmod scale 0.05 0.05
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_0to4
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock0b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock4b.tga
tcmod scale 0.1 0.1
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_1to2
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock1b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock2b.tga
tcmod scale 0.05 0.05
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_1to3
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm gravelsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock1b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock3g.tga
tcmod scale 0.05 0.05
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_1to4
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm gravelsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock1b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock4b.tga
tcmod scale 0.1 0.1
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_2to3
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock2b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.05 0.05
lightStage
}
{
map textures/stone/mxrock3g.tga
tcmod scale 0.05 0.05
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_2to4
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock2b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.05 0.05
lightStage
}
{
map textures/stone/mxrock4b.tga
tcmod scale 0.1 0.1
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_3to4
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock3g.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.05 0.05
lightStage
}
{
map textures/stone/mxrock4b.tga
tcmod scale 0.1 0.1
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
///////////////// forest ////////////////////////
/////////////////////////////////////////////////
textures/terrain/mxterra3_0
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock0b.tga
rgbGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_1
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm gravelsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock1b.tga
rgbGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_2
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock2b.tga
tcmod scale 0.05 0.05
rgbGen vertex
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_3
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock3g.tga
tcmod scale 0.05 0.05
rgbGen vertex
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_4
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock4b.tga
tcmod scale 0.1 0.1
rgbGen vertex
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_0to1
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock0b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock1b.tga
tcmod scale 0.1 0.1
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_0to2
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock0b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock2b.tga
tcmod scale 0.05 0.05
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_0to3
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock0b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock3g.tga
tcmod scale 0.05 0.05
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_0to4
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock0b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock4b.tga
tcmod scale 0.1 0.1
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_1to2
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock1b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock2b.tga
tcmod scale 0.05 0.05
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_1to3
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm gravelsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock1b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock3g.tga
tcmod scale 0.05 0.05
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_1to4
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm gravelsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock1b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.1 0.1
lightStage
}
{
map textures/stone/mxrock4b.tga
tcmod scale 0.1 0.1
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_2to3
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock2b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.05 0.05
lightStage
}
{
map textures/stone/mxrock3g.tga
tcmod scale 0.05 0.05
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_2to4
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm grasssteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock2b.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.05 0.05
lightStage
}
{
map textures/stone/mxrock4b.tga
tcmod scale 0.1 0.1
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
textures/terrain/mxterra3_3to4
{
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 0.9 64 0.1 2
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/mxrock3g.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.05 0.05
lightStage
}
{
map textures/stone/mxrock4b.tga
tcmod scale 0.1 0.1
rgbGen vertex
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
lightStage
}
{
map textures/skies2/clouds2.tga
blendfunc filter
tcmod scale 0.01 0.01
tcMod scroll -0.01 -0.05
}
}
#492
03 декабря 2017 в 21:22
Now it works. Thanks ;)
BTW. I found some bug. When I set gun position - cg_gunx(or y,z) in console or manualy in config and next go to map (for example /spdevmap escape1) then gun position reset to 0 :/
And another thing with PBR. When I have red 255 or red 1 there is no difference. The same hard bright lighting. I want a weaker reflection of light. darker
BTW. I found some bug. When I set gun position - cg_gunx(or y,z) in console or manualy in config and next go to map (for example /spdevmap escape1) then gun position reset to 0 :/
And another thing with PBR. When I have red 255 or red 1 there is no difference. The same hard bright lighting. I want a weaker reflection of light. darker
#493
30 января 2018 в 18:37
Привет я давно являюсь фанатом Rtcw и у меня возник такой вопрос-возможно ли адаптировать или портировать "стерео режимы" а именно sbs на Android версию игры,буду очень признателен за ответ.
#494
30 января 2018 в 18:52
кодом анаморф-стереопары поделюсь, но кто портирует?
#495
30 января 2018 в 19:08
Тот кто умеет в SDL2, OpenGL ES и Android NDK.
Но играть в RtCW на пальцетыкательном девайсе... современные люди знают толк в извращениях =))
Но играть в RtCW на пальцетыкательном девайсе... современные люди знают толк в извращениях =))
#496
30 января 2018 в 19:22
Обрисую суть,играть в очках Carboard или же подобных с джойстиком или мышью,порт игры есть на Android давно,то бишь нужно дописать или обьеденить эту часть кода той.
#497
30 января 2018 в 20:38
А что за порт RtCW для андроида, да ещё и с открытыми исходниками?
#498
31 января 2018 в 07:45
#499
31 января 2018 в 10:07
#500
31 января 2018 в 19:11
Посмотрел структуру проекта с гитхаба по второй ссылке, на выходных попробую собрать и запустить если соберётся.