Sidebar

[HL]Проблемы с шейдерной водой

HAWK0044

New member
25.01.09
890
7
0
[HL]Проблемы с шейдерной водой

Вот сделал шейдерную воду по тутору (не считать за рекламу ) в 2-ух частях:
http://detler.ucoz.ru/publ/shejdernaja_voda_chast1/10-1-0-197
http://detler.ucoz.ru/publ/shejdernaja_voda_chast_2/10-1-0-199

,но вылезает куча ошибок , вроде всё сделал правильно.
Вот собсно ошибки:
Код:
cg_shader.cpp
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2065: 'gEngfuncs' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2228: left of '.pfnGetCvarFloat' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(42) : error C2228: left of '.pfnGetCvarString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(43) : error C2228: left of '.pfnRegisterVariable' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2065: 'HSPRITE' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2433: 'SPR_Height' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2433: 'SPR_Width' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2143: syntax error : missing ';' before '*'
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2433: 'client_textmessage_t' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'client_textmessage_t' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'TextMessageGet' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2228: left of '.pfnTextMessageGet' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(89) : warning C4508: 'TextMessageGet' : function should return a value; 'void' return type assumed
c:\mymod\single-player source\cl_dll\cl_util.h(92) : error C2228: left of '.pfnDrawCharacter' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(97) : error C2228: left of '.pfnDrawConsoleString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(102) : error C2228: left of '.pfnDrawConsoleStringLen' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(114) : error C2228: left of '.pfnConsolePrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(119) : error C2228: left of '.pfnCenterPrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(126) : error C2228: left of '.pfnPlaySoundByName' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(127) : error C2228: left of '.pfnPlaySoundByIndex' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(146) : error C2146: syntax error : missing ';' before identifier 'vec3_origin'
c:\mymod\single-player source\cl_dll\cl_util.h(146) : fatal error C1004: unexpected end of file found
gl_bored.cpp
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2065: 'gEngfuncs' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2228: left of '.pfnGetCvarFloat' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(42) : error C2228: left of '.pfnGetCvarString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(43) : error C2228: left of '.pfnRegisterVariable' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2065: 'HSPRITE' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2433: 'SPR_Height' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2433: 'SPR_Width' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2143: syntax error : missing ';' before '*'
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2433: 'client_textmessage_t' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'client_textmessage_t' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'TextMessageGet' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2228: left of '.pfnTextMessageGet' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(89) : warning C4508: 'TextMessageGet' : function should return a value; 'void' return type assumed
c:\mymod\single-player source\cl_dll\cl_util.h(92) : error C2228: left of '.pfnDrawCharacter' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(97) : error C2228: left of '.pfnDrawConsoleString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(102) : error C2228: left of '.pfnDrawConsoleStringLen' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(114) : error C2228: left of '.pfnConsolePrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(119) : error C2228: left of '.pfnCenterPrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(126) : error C2228: left of '.pfnPlaySoundByName' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(127) : error C2228: left of '.pfnPlaySoundByIndex' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(146) : error C2146: syntax error : missing ';' before identifier 'vec3_origin'
c:\mymod\single-player source\cl_dll\cl_util.h(146) : fatal error C1004: unexpected end of file found
gl_pbuffer.cpp
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2065: 'gEngfuncs' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2228: left of '.pfnGetCvarFloat' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(42) : error C2228: left of '.pfnGetCvarString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(43) : error C2228: left of '.pfnRegisterVariable' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2065: 'HSPRITE' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2433: 'SPR_Height' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2433: 'SPR_Width' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2143: syntax error : missing ';' before '*'
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2433: 'client_textmessage_t' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'client_textmessage_t' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'TextMessageGet' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2228: left of '.pfnTextMessageGet' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(89) : warning C4508: 'TextMessageGet' : function should return a value; 'void' return type assumed
c:\mymod\single-player source\cl_dll\cl_util.h(92) : error C2228: left of '.pfnDrawCharacter' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(97) : error C2228: left of '.pfnDrawConsoleString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(102) : error C2228: left of '.pfnDrawConsoleStringLen' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(114) : error C2228: left of '.pfnConsolePrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(119) : error C2228: left of '.pfnCenterPrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(126) : error C2228: left of '.pfnPlaySoundByName' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(127) : error C2228: left of '.pfnPlaySoundByIndex' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(146) : error C2146: syntax error : missing ';' before identifier 'vec3_origin'
c:\mymod\single-player source\cl_dll\cl_util.h(146) : fatal error C1004: 
textures.cpp
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2065: 'gEngfuncs' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2228: left of '.pfnGetCvarFloat' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(42) : error C2228: left of '.pfnGetCvarString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(43) : error C2228: left of '.pfnRegisterVariable' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2065: 'HSPRITE' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2433: 'SPR_Height' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2433: 'SPR_Width' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2143: syntax error : missing ';' before '*'
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2433: 'client_textmessage_t' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'client_textmessage_t' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'TextMessageGet' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2228: left of '.pfnTextMessageGet' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(89) : warning C4508: 'TextMessageGet' : function should return a value; 'void' return type assumed
c:\mymod\single-player source\cl_dll\cl_util.h(92) : error C2228: left of '.pfnDrawCharacter' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(97) : error C2228: left of '.pfnDrawConsoleString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(102) : error C2228: left of '.pfnDrawConsoleStringLen' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(114) : error C2228: left of '.pfnConsolePrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(119) : error C2228: left of '.pfnCenterPrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(126) : error C2228: left of '.pfnPlaySoundByName' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(127) : error C2228: left of '.pfnPlaySoundByIndex' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(146) : error C2146: syntax error : missing ';' before identifier 'vec3_origin'
c:\mymod\single-player source\cl_dll\cl_util.h(146) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

client.dll - 116 error(s), 4 warning(s)

Кто нибудб еще знает туторы по шойдерной воде
 
Останнє редагування:

Pops

レズビアン
20.03.09
2 611
30
31
48
долб
мне кажет тут проблемма "single-player source" пробел убрать надо single-player_source :D попробуй вдруг поможет
 

HAWK0044

New member
25.01.09
890
7
0
нет , тут ошибка совершенно в другом!
Где XaeroX??
 

PoD-Stas

Lolwhat? 0.o
VIP
29.04.07
3 497
33
2 the_muddy: улыбнул)

Post automatically merged:

2 HAWK0044: у тебя куча всего не за декларировано, есть подозрение что тутор не полный/нужно делать ан спирите
 
Останнє редагування:

CrazyRussian

Устал...
14.01.10
619
32
66
28
Адрес
наверное надо подрубить hud.h чуть выше того места где cl_util.h инклюдиться
 

Alex_Gordon

Криворукий аниматор
30.06.09
186
35
0
0
Аааа, это мой тутор, в нем могут быть ерроры. на хлфх поищи, там Дядя Миша сорцы выкладывал.
 

HAWK0044

New member
25.01.09
890
7
0
Странно, но не нашел :(
МОжет кто нибудь теги кинет, искал по "шейдерная", "вода","шейдерная вода","shader"

Post automatically merged:

2 CrazyRussian:
точно! спасиб!
 
Останнє редагування:

HAWK0044

New member
25.01.09
890
7
0
Единственная проблемка:
Не на всех текстурах воды отображаеться шейдер :(
как исправить?
 

CrazyRussian

Устал...
14.01.10
619
32
66
28
Адрес
Делать воду из func_water и исключительно в форме паралеллипипеда(куба).
 

HAWK0044

New member
25.01.09
890
7
0
ну на карте lambda_bunker - вроде так и есть :)
 

Game Server

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

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