Sidebar

Блокировка света

Scream

aw
Команда форуму
Модератор
29.10.05
6 858
38
83
48
Мордор
2 killstn:
Хотя бы один источник света должен быть на карте. Иначе компилятор выдаёт ошибку и всё высвечивается. Сделай гденить коробку и пихни туда лайт...
 

killstn

New member
25.03.10
71
0
0
BOMB@ сказав(ла):
2 killstn:
проверь карту на LEAK ошибки в скае!
Подробней можно?

Пару слов:
Создаю карту и для удобства на время сделал просто квадрат с текстурами неба.Я и солнце ставил и просто лампочку и в коробку запихивал, но всё равно светло везде особенно меня интересует в кибитках.

И вот лог


Код:
hlcsg v2.5.3 rel Custom Build 1.7 (Dec  9 2002)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to ([email protected])
-----  BEGIN  hlcsg -----
Command line: hlcsg.exe -estimate 444.map 
Entering 444.map

Current hlcsg Settings
Name                 |  Setting  |  Default
---------------------|-----------|-------------------------
threads               [       4 ] [  Varies ]
verbose               [     off ] [     off ]
log                   [      on ] [      on ]
developer             [       0 ] [       0 ]
chart                 [     off ] [     off ]
estimate              [      on ] [     off ]
max texture memory    [ 4194304 ] [ 4194304 ]
priority              [  Normal ] [  Normal ]

noclip                [     off ] [     off ]
null texture stripping[      on ] [      on ]
clipnode economy mode [      on ] [      on ]
onlyents              [     off ] [     off ]
wadtextures           [      on ] [      on ]
skyclip               [      on ] [      on ]
hullfile              [    None ] [    None ]
min surface area      [   0.500 ] [   0.500 ]
brush union threshold [   0.000 ] [   0.000 ]

Using mapfile wad configuration
Wadinclude list :
[zhlt.wad]

6 brushes (totalling 37 sides) discarded from clipping hulls
CreateBrush:
 (0.44 seconds)
SetModelCenters:
 (0.00 seconds)
CSGBrush:
 (6.34 seconds)

Using Wadfile: \123\cs1.6 by prodns clan\cstrike\finalrelease.wad
 - Warning: Larger than expected texture (272812 bytes): '{TK_PLANTLG'
 - Warning: Larger than expected texture (327212 bytes): '{TK_PLANTSM'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES1'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES2'
 - Warning: Larger than expected texture (240172 bytes): 'FINISHES3'
 - Warning: Larger than expected texture (207532 bytes): 'FURNISHINGS'
 - Warning: Larger than expected texture (338092 bytes): 'MASONRY'
 - Warning: Larger than expected texture (305452 bytes): 'THERMAL & MOIAA'
 - Warning: Larger than expected texture (305452 bytes): 'THERMAL & MOIAB'
 - Warning: Larger than expected texture (305452 bytes): 'THERMAL & MOIAC'
 - Warning: Larger than expected texture (240172 bytes): 'THERMAL & MOIAD'
 - Warning: Larger than expected texture (348972 bytes): 'THERMAL & MOIAE'
 - Warning: Larger than expected texture (348972 bytes): 'THERMAL & MOIAF'
 - Warning: Larger than expected texture (261932 bytes): 'THERMAL & MOIAG'
 - Warning: Larger than expected texture (261932 bytes): 'THERMAL & MOIAH'
 - Warning: Larger than expected texture (261932 bytes): 'THERMAL & MOIAI'
 - Warning: Larger than expected texture (316332 bytes): 'THERMAL & MOIAJ'
 - Warning: Larger than expected texture (283692 bytes): 'THERMAL & MOIAK'
 - Warning: Larger than expected texture (283692 bytes): 'THERMAL & MOIAM'
 - Warning: Larger than expected texture (261932 bytes): 'THERMAL & MOIAN'
 - Warning: Larger than expected texture (317012 bytes): 'THERMAL & MOIAO'
 - Warning: Larger than expected texture (317012 bytes): 'THERMAL & MOIAP'
 - Warning: Larger than expected texture (207532 bytes): 'THERMAL & MOIAQ'
 - Warning: Larger than expected texture (207532 bytes): 'THERMAL & MOIAR'
 - Warning: Larger than expected texture (327212 bytes): 'THERMAL & MOIAS'
 - Warning: Larger than expected texture (196652 bytes): 'THERMAL & MOIAT'
 - Warning: Larger than expected texture (196652 bytes): 'THERMAL & MOIAU'
 - Warning: Larger than expected texture (196652 bytes): 'THERMAL & MOIAV'
 - Warning: Larger than expected texture (305452 bytes): 'THERMAL & MOIST'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAG'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAH'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAI'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAJ'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAK'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAL'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAM'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAO'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAP'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAQ'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAR'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAS'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAT'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAU'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAV'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAW'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAX'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTAY'
 - Warning: Larger than expected texture (348972 bytes): 'WOODS & PLASTIC'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES4'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES5'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES6'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES7'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES8'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES9'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES10'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES11'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES12'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES13'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES14'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES15'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES16'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES17'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES18'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES19'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES20'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES21'
 - Warning: Larger than expected texture (316332 bytes): 'FINISHES22'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES24'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES25'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES26'
 - Warning: Larger than expected texture (229292 bytes): 'FINISHES28'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES29'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES30'
 - Warning: Larger than expected texture (240172 bytes): 'FINISHES31'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES32'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES34'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES35'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES36'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES37'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES38'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES39'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES40'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES41'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES42'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES43'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES44'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES45'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES46'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES47'
 - Warning: Larger than expected texture (338092 bytes): 'FINISHES48'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES49'
 - Warning: Larger than expected texture (348972 bytes): 'FINISHES51'
 - Warning: Larger than expected texture (348972 bytes): 'FURNISHINGSWER'
 - Warning: Larger than expected texture (272812 bytes): 'FURNISHINGSSS'
 - Warning: Larger than expected texture (294572 bytes): 'FURNISHINGSHG'
 - Warning: Larger than expected texture (207532 bytes): 'FURNISHINGSHGHG'
 - Contains 17 used textures, 100.00 percent of map (897 textures in wad)

added 1 additional animating textures.
Texture usage is at 0.90 mb (of 4.00 mb MAX)
6.91 seconds elapsed

-----   END   hlcsg -----



hlbsp v2.5.3 rel Custom Build 1.7 (Dec  9 2002)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to ([email protected])
-----  BEGIN  hlbsp -----
Command line: hlbsp.exe -estimate 444.map 

Current hlbsp Settings
Name               |  Setting  |  Default
-------------------|-----------|-------------------------
threads             [       4 ] [  Varies ]
verbose             [     off ] [     off ]
log                 [      on ] [      on ]
developer           [       0 ] [       0 ]
chart               [     off ] [     off ]
estimate            [      on ] [     off ]
max texture memory  [ 4194304 ] [ 4194304 ]
priority            [  Normal ] [  Normal ]

noclip              [     off ] [     off ]
nofill              [     off ] [     off ]
null tex. stripping [      on ] [      on ]
notjunc             [     off ] [     off ]
subdivide size      [     240 ] [     240 ] (Min 64) (Max 512)
max node size       [    1024 ] [    1024 ] (Min 64) (Max 4096)


BSP generation successful, writing portal file '444.prt'
5.30 seconds elapsed

-----   END   hlbsp -----



hlvis v2.5.3 rel Custom Build 1.7 (Dec  9 2002)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to ([email protected])
-----  BEGIN  hlvis -----
Command line: hlvis.exe -estimate -full 444.map 
1802 portalleafs
5289 numportals

-= Current hlvis Settings =-
Name               |  Setting  |  Default
-------------------|-----------|-------------------------
threads             [       4 ] [  Varies ]
verbose             [     off ] [     off ]
log                 [      on ] [      on ]
developer           [       0 ] [       0 ]
chart               [     off ] [     off ]
estimate            [      on ] [     off ]
max texture memory  [ 4194304 ] [ 4194304 ]
max vis distance    [       0 ] [       0 ]
priority            [  Normal ] [  Normal ]

fast vis            [     off ] [     off ]
full vis            [      on ] [     off ]


BasePortalVis:
 (1.59 seconds)
LeafThread:
 (56.31 seconds)
Warning: Leaf portals saw into leaf
    Problem at portal between leaves 213 and 206:
       (3306.000 1600.000 -366.000)
    (3310.500 1600.000 -361.500)
    (3310.500 1797.750 -361.500)
    (3310.000 1798.000 -362.000)
    (3306.000 1799.333 -366.000)

average leafs visible: 159
g_visdatasize:166900  compressed from 407252
58.09 seconds elapsed

-----   END   hlvis -----



hlrad v2.5.3 rel Custom Build 1.7 (Dec  9 2002)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to ([email protected])
-----  BEGIN  hlrad -----
Command line: hlrad.exe -estimate -chart -extra -dscale 1 -bounce 4 -smooth 100 444.map 

-= Current hlrad Settings =-
Name                | Setting             | Default
--------------------|---------------------|-------------------------
threads              [                 4 ] [            Varies ]
verbose              [               off ] [               off ]
log                  [                on ] [                on ]
developer            [                 0 ] [                 0 ]
chart                [                on ] [               off ]
estimate             [                on ] [               off ]
max texture memory   [           4194304 ] [           4194304 ]
priority             [            Normal ] [            Normal ]

vismatrix algorithm  [          Original ] [          Original ]
oversampling (-extra)[                on ] [               off ]
bounces              [                 4 ] [                 1 ]
ambient light        [ 0.000 0.000 0.000 ] [ 0.000 0.000 0.000 ]
maximum light        [           255.000 ] [           256.000 ]
circus mode          [               off ] [               off ]

smoothing threshold  [           100.000 ] [            50.000 ]
direct threshold     [            25.000 ] [            25.000 ]
direct light scale   [             1.000 ] [             2.000 ]
coring threshold     [             1.000 ] [             1.000 ]
patch interpolation  [                on ] [                on ]

texscale             [                on ] [                on ]
patch subdividing    [                on ] [                on ]
chop value           [            64.000 ] [            64.000 ]
texchop value        [            32.000 ] [            32.000 ]

global fade          [             1.000 ] [             1.000 ]
global falloff       [                 2 ] [                 2 ]
global light scale   [ 1.000 1.000 1.000 ] [ 1.000 1.000 1.000 ]
global gamma         [ 0.500 0.500 0.500 ] [ 0.500 0.500 0.500 ]
global light scale   [             1.000 ] [             1.000 ]
global sky diffusion [             1.000 ] [             1.000 ]

opaque entities      [                on ] [                on ]
sky lighting fix     [                on ] [                on ]
incremental          [               off ] [               off ]
dump                 [               off ] [               off ]

colour jitter        [       0.0 0.0 0.0 ] [       0.0 0.0 0.0 ]
monochromatic jitter [       0.0 0.0 0.0 ] [       0.0 0.0 0.0 ]
softlight hack       [   0.0 0.0 0.0 0.0 ] [   0.0 0.0 0.0 0.0 ]
diffuse hack         [                on ] [                on ]
spotlight points     [                on ] [                on ]

custom shadows with bounce light
                     [               off ] [               off ]
rgb transfers        [               off ] [               off ]


12757 faces
Create Patches : 100763 base patches
0 opaque faces
1051002 square feet [151344320.00 square inches]
Error: Exceeded MAX_PATCHES
Description: The map has a problem which must be fixed
Howto Fix: Check the file ZHLTProblems.html for a detailed explanation of this problem


-----   END   hlrad -----
Предупреждение за игнорирование правил этого раздела. На первый раз устное. [slux]
 
Останнє редагування модератором:

BOMB@

New member
31.10.09
1 004
29
2 killstn:
есть ошибка Error: Exceeded MAX_PATCHES
Когда начинает работу компилятор HLRAD, обрабатывающий освещение на карте, он разбивает все видимые поверхности на небольшие участки, называемые патчами (patches). Существует ограничение на максимальное количество патчей — их не должно и не может быть больше 65535.

По умолчанию размер каждого патча составляет 64х64 юнита. Если масштаб (scale) текстуры больше или меньше (речь идет не о размере текстуры, а именно о масштабе), то это сказывается на количестве патчей. Это означает, что текстура с масштабом 2, будет иметь в 4 раза меньше патчей, нежели текстура с масштабом 1.

Когда Вы делаете вокруг карты небо в виде большой коробки, чтобы избежать ошибки LEAK (см. выше), компилятор HLVIS обрабатывает все поверхности снаружи карты, которые игрок в игре не видит (а значит зря он их обрабатывает :). На больших уровнях это может вызвать данную ошибку, т.к. количество патчей может превысить порог в 65535 штук.

Как исправить? В строку запуска компилятора HLRAD можно прописать параметр «-chop 96» или «-chop 128». Этот параметр устанавливает минимальный размер патча в юнитах. Напомним, что по умолчанию минимальный размер патча составляет 64 юнита. При установке размера патча более 96 юнитов, происходит заметное ухудшение качетсва освещения карты, может появиться эффект «лесенки» на тенях, отбрасываемых объектами.

Также для уменьшения числа патчей можно увеличить масштаб (scale) текстур, например, больших текстур на скалах или земле. Большие по масштабу текстуры создают гораздо меньше патчей. Ну, а если небо у Вас сделано большой коробкой вокруг карты — закрасьте все внешние стороны и дно карты текстурой SKY. При компиляции такие поверхности не просчитываются на освещение и не создают патчей.

Post automatically merged:

2 BOMB@:
а leak ошибка посмотри нет ли у тебя дырок в скай боксе)
 
Останнє редагування:

killstn

New member
25.03.10
71
0
0
я так понимаю можно все невидимые игроку места окрасить текстурой неба,для уменьшения MAX_PATCHES?
 

Devil

Dura lex, sed lex.
VIP
16.06.09
1 470
28
14
0
  • Серебряная медаль 311
2 killstn:
Лучше текстурой NULL, которая есть в zhlt.wad в папке с компиляторами.
 

killstn

New member
25.03.10
71
0
0
В общем запустил с параметром -chop 128 только так стало нормально, но свет точно как и было сказано лестницами, как этого избежать?
 

Scream

aw
Команда форуму
Модератор
29.10.05
6 858
38
83
48
Мордор
2 killstn:
Попробуй вместо -chop 128 пропиши -sparse
 

Game Server

Доноры Красавчики

Користувачі онлайн

Немає користувачів онлайн.