Welcome, guest. You can be a Login или register
Author
Topic title
C.Z.R
Offline
114 posts
Karma 2
Map is default village1. Problem is in bers@wolf because with the same .lit there is sun shadows in older version of Bers, but in newest there is no sun shadow with the same .lit.
C.Z.R
Offline
114 posts
Karma 2
.lit file https://www.sendspace.com/file/79uru0
C.Z.R
Offline
114 posts
Karma 2
.lit file working good in version 2017.02.05 but when I'm put 2017.07.09 fix or newest there no sun in the map. When I try select sun then message appears "no sun on map" and when I try create sun then shows "sun exist on the map".
When I delete .lit and write "/selectsun" there is sun automatically but with no light. Raise intensity and radius dont change anything WTF?

https://youtu.be/1dqz94WWEIg
Берсеркер
Offline
Суровый челябинский программист
2258 posts
Karma 200
https://cloud.mail.ru/public/KZck/g8zvsu1kr
Очень мелкий фикс, написанный после озвучивания проблемы C.Z.R.
Проблема такая: новая сборка BersSP отбрасывает солнце, созданное C.Z.R.-ом,
но в консоли не было внятно указано на это, просто писалось что "1 lights rejected".
Проанализировал параметры отбрасываемого солнца...
Мягко говоря, такое солнце имеет очень неоптимальные параметры:

// light 210
{
"classname" "light"
"origin" "-17640 -72290 90887"
"color" "0.58 0.58 0.58"
"sun_far" "150000"
"sun_intensity" "15.000"
"sun_direction" "0.468 0.475 -0.745"
"sun_fov" "90"
"noCullBackFaces" "1"
}

Обратите внимание на пару параметров:
"sun_far" "150000"
Солнце имеет гигантский радиус, и как следствие, получаем низкую точность буфера глубины, что чревато ужасными артефактами, похожие на z-fighting.
Смотрим на другой параметр:
"sun_fov" "90"
Угол обзора солнца 90 градусов. В совокупности с дальностью солнца, мы понимаем, что "видит" солнце. А видит оно уровень, сосредоточенный в очень малом кусочке теневой карты. О четкости таких теней говорить не приходится.

Мои рекомендации: удалить это ужасное солнце и дать возможность загрузчику создать самому корректное солнце. Либо применить команду редактора: createsun.

For C.Z.R.: please, do:
1. update .EXE,
2. delete entity "light 210" from .lit-file
3. load the map. Map-loader will generate the correct sun-entity.
4. Change some sun parameters: color, intensity, etc...
5. Save lit.
Машина несла меня через неведомые районы Галактики сквозь пространство математической реальности быстрее скорости света. (C) Фред Саберхаген.
C.Z.R
Offline
114 posts
Karma 2
I do what you tell and still no sun light on map :/ I editing parameters like radius, color, intensity and still no light
C.Z.R
Offline
114 posts
Karma 2
Problem resolved: I had outdated .dll's and shaders.
C.Z.R
Offline
114 posts
Karma 2
Foliages didn't working when terrains blend together. ( I have propertly lines in .material) Can you make fix for this?


darmowy hosting serwerów
Берсеркер
Offline
Суровый челябинский программист
2258 posts
Karma 200
I just see on the picture - material have not foliages.

Engine works fine ))





Машина несла меня через неведомые районы Галактики сквозь пространство математической реальности быстрее скорости света. (C) Фред Саберхаген.
C.Z.R
Offline
114 posts
Karma 2
Material have foliages.. Can you send me your's material files for terrain and grass?
Берсеркер
Offline
Суровый челябинский программист
2258 posts
Karma 200
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
}
}
Машина несла меня через неведомые районы Галактики сквозь пространство математической реальности быстрее скорости света. (C) Фред Саберхаген.